Sha256: 595b36cc5e6f75d097f70efab8e1481bfd2ee4907bd45acebc7148adb1f1b072

Contents?: true

Size: 434 Bytes

Versions: 7

Compression:

Stored size: 434 Bytes

Contents

module Checker
  module Results
    class Javascript < Default
      def success?
        case exitstatus
        when 0 then true
        when 1 then
          Checker::Options.prevent_commit_on_warning ? false : true
        else
          false
        end
      end

      def status
        case exitstatus
        when 0 then :ok
        when 1 then :warning
        else
          :fail
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
checker-0.8.0.beta2 lib/checker/results/javascript.rb
checker-0.8.0.beta lib/checker/results/javascript.rb
checker-0.7.0 lib/checker/results/javascript.rb
checker-0.6.6 lib/checker/results/javascript.rb
checker-0.6.5 lib/checker/results/javascript.rb
checker-0.6.5.rc2 lib/checker/results/javascript.rb
checker-0.6.5.rc1 lib/checker/results/javascript.rb