Class: QuietQuality::Tools::Brakeman::Runner
- Inherits:
-
QuietQuality::Tools::BaseRunner
- Object
- QuietQuality::Tools::BaseRunner
- QuietQuality::Tools::Brakeman::Runner
- 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
- #command ⇒ Object
- #exec_command ⇒ Object
-
#failure_status?(stat) ⇒ Boolean
These are specified in constants at the top of brakeman.rb: github.com/presidentbeef/brakeman/blob/main/lib/brakeman.rb#L6-L25.
- #tool_name ⇒ Object
Methods inherited from QuietQuality::Tools::BaseRunner
#initialize, #invoke!, #success_status?
Methods included from Logging
Constructor Details
This class inherits a constructor from QuietQuality::Tools::BaseRunner
Instance Method Details
#command ⇒ Object
9 10 11 |
# File 'lib/quiet_quality/tools/brakeman/runner.rb', line 9 def command command_override || ["brakeman", "-f", "json"] end |
#exec_command ⇒ Object
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
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_name ⇒ Object
5 6 7 |
# File 'lib/quiet_quality/tools/brakeman/runner.rb', line 5 def tool_name TOOL_NAME end |