Class: QuietQuality::Tools::MarkdownLint::Runner

Inherits:
RelevantRunner show all
Defined in:
lib/quiet_quality/tools/markdown_lint/runner.rb

Constant Summary

Constants inherited from RelevantRunner

RelevantRunner::MAX_FILES

Constants inherited from BaseRunner

BaseRunner::MAX_FILES

Instance Method Summary collapse

Methods inherited from RelevantRunner

#base_command, #base_exec_command, #invoke!

Methods inherited from BaseRunner

#failure_status?, #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

#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_commandObject



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_outputObject



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

def no_files_output
  "[]"
end

#relevant_path?(path) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/quiet_quality/tools/markdown_lint/runner.rb', line 23

def relevant_path?(path)
  path.end_with?(".md")
end

#tool_nameObject



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

def tool_name
  TOOL_NAME
end