class Quality::Tools::Shellcheck

Adds ‘ShellCheck’ tool support to quality gem

Public Instance Methods

quality_shellcheck() click to toggle source
# File lib/quality/tools/shellcheck.rb, line 11
def quality_shellcheck
  ratchet_quality_cmd('shellcheck',
                      args: shellcheck_args,
                      gives_error_code_on_no_relevant_code: true,
                      gives_error_code_on_violations: true)
end
shellcheck_args() click to toggle source
# File lib/quality/tools/shellcheck.rb, line 7
def shellcheck_args
  "-fgcc -sbash #{shell_files.join(' ')}"
end