Class: Checker::Results::Javascript
- Defined in:
- lib/checker/results/javascript.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Default
Instance Method Summary collapse
Instance Method Details
#status ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/checker/results/javascript.rb', line 14 def status case exitstatus when 0 then :ok when 1 then :warning else :fail end end |
#success? ⇒ Boolean
4 5 6 7 8 9 10 11 12 |
# File 'lib/checker/results/javascript.rb', line 4 def success? case exitstatus when 0 then true when 1 then Checker::Options.prevent_commit_on_warning ? false : true else false end end |