Class: Checker::Results::Javascript

Inherits:
Default
  • Object
show all
Defined in:
lib/checker/results/javascript.rb

Direct Known Subclasses

Rubocop

Instance Attribute Summary

Attributes inherited from Default

#exitstatus

Instance Method Summary collapse

Instance Method Details

#statusObject



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

Returns:

  • (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