Class: QuietQuality::Tools::Brakeman::Runner

Inherits:
QuietQuality::Tools::BaseRunner show all
Defined in:
lib/quiet_quality/tools/brakeman/runner.rb

Constant Summary

Constants inherited from QuietQuality::Tools::BaseRunner

QuietQuality::Tools::BaseRunner::MAX_FILES

Instance Method Summary collapse

Methods inherited from QuietQuality::Tools::BaseRunner

#initialize, #invoke!, #success_status?

Methods included from Logging

#debug, #info, #warn

Constructor Details

This class inherits a constructor from QuietQuality::Tools::BaseRunner

Instance Method Details

#commandObject



9
10
11
# File 'lib/quiet_quality/tools/brakeman/runner.rb', line 9

def command
  command_override || ["brakeman", "-f", "json"]
end

#exec_commandObject



13
14
15
# File 'lib/quiet_quality/tools/brakeman/runner.rb', line 13

def exec_command
  exec_override || ["brakeman"]
end

#failure_status?(stat) ⇒ Boolean

These are specified in constants at the top of brakeman.rb:

https://github.com/presidentbeef/brakeman/blob/main/lib/brakeman.rb#L6-L25

Returns:

  • (Boolean)


19
20
21
# File 'lib/quiet_quality/tools/brakeman/runner.rb', line 19

def failure_status?(stat)
  [3, 4, 5, 6, 7, 8].include?(stat.exitstatus)
end

#tool_nameObject



5
6
7
# File 'lib/quiet_quality/tools/brakeman/runner.rb', line 5

def tool_name
  TOOL_NAME
end