Class: QuietQuality::Tools::Standardrb::Runner
Constant Summary
RelevantRunner::MAX_FILES
Constants inherited
from BaseRunner
BaseRunner::MAX_FILES
Instance Method Summary
collapse
#command, #exec_command, #invoke!
Methods inherited from BaseRunner
#command, #exec_command, #failure_status?, #initialize, #invoke!, #success_status?
Methods included from Logging
#debug, #info, #warn
Instance Method Details
#base_command ⇒ Object
13
14
15
|
# File 'lib/quiet_quality/tools/standardrb/runner.rb', line 13
def base_command
["standardrb", "-f", "json"]
end
|
#base_exec_command ⇒ Object
17
18
19
|
# File 'lib/quiet_quality/tools/standardrb/runner.rb', line 17
def base_exec_command
["standardrb"]
end
|
#no_files_output ⇒ Object
9
10
11
|
# File 'lib/quiet_quality/tools/standardrb/runner.rb', line 9
def no_files_output
'{"files": [], "summary": {"offense_count": 0}}'
end
|
#relevant_path?(path) ⇒ Boolean
21
22
23
|
# File 'lib/quiet_quality/tools/standardrb/runner.rb', line 21
def relevant_path?(path)
path.end_with?(".rb")
end
|
5
6
7
|
# File 'lib/quiet_quality/tools/standardrb/runner.rb', line 5
def tool_name
TOOL_NAME
end
|