Module: Rubocop::Stylecheck::Cli

Defined in:
lib/rubocop/stylecheck/cli.rb

Class Method Summary collapse

Class Method Details

.optionsObject



5
6
7
8
9
# File 'lib/rubocop/stylecheck/cli.rb', line 5

def options
  options = ["--fail-level", "refactor"]
  options += ["--rails"] if defined?(Rails)
  options
end

.options_with_auto_correctObject



11
12
13
# File 'lib/rubocop/stylecheck/cli.rb', line 11

def options_with_auto_correct
  options + ["--auto-correct"]
end

.options_with_copObject



15
16
17
# File 'lib/rubocop/stylecheck/cli.rb', line 15

def options_with_cop
  options + ["--display-cop-names"]
end