Sha256: 7bfd91202d814b53df098941c8b6596fdaf1542ec27c358ceb8004fbddb2a4a6

Contents?: true

Size: 425 Bytes

Versions: 2

Compression:

Stored size: 425 Bytes

Contents

module Rubocop
  module Stylecheck
    module Cli
      class << self
        def options
          options = ["--fail-level", "refactor"]
          options += ["--rails"] if defined?(Rails)
          options
        end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rubocop-stylecheck-0.1.1 lib/rubocop/stylecheck/cli.rb
rubocop-stylecheck-0.1.0 lib/rubocop/stylecheck/cli.rb