Class: QuietQuality::Tools::MarkdownLint::Runner
Constant Summary
RelevantRunner::MAX_FILES
Constants inherited
from BaseRunner
BaseRunner::MAX_FILES
Instance Method Summary
collapse
#base_command, #base_exec_command, #invoke!
Methods inherited from BaseRunner
#failure_status?, #initialize, #invoke!, #success_status?
Methods included from Logging
#debug, #info, #warn
Instance Method Details
#command(json: true) ⇒ Object
13
14
15
16
|
# File 'lib/quiet_quality/tools/markdown_lint/runner.rb', line 13
def command(json: true)
return nil if skip_execution?
(command_override || ["mdl", "--json"]) + command_targets
end
|
#exec_command ⇒ Object
18
19
20
21
|
# File 'lib/quiet_quality/tools/markdown_lint/runner.rb', line 18
def exec_command
return nil if skip_execution?
(exec_override || ["mdl"]) + command_targets
end
|
#no_files_output ⇒ Object
9
10
11
|
# File 'lib/quiet_quality/tools/markdown_lint/runner.rb', line 9
def no_files_output
"[]"
end
|
#relevant_path?(path) ⇒ Boolean
23
24
25
|
# File 'lib/quiet_quality/tools/markdown_lint/runner.rb', line 23
def relevant_path?(path)
path.end_with?(".md")
end
|
5
6
7
|
# File 'lib/quiet_quality/tools/markdown_lint/runner.rb', line 5
def tool_name
TOOL_NAME
end
|