Sha256: d7bb5c77e17f2551df20b45dde72a058144fd669a932a6d2c86012206214bd9d

Contents?: true

Size: 476 Bytes

Versions: 13

Compression:

Stored size: 476 Bytes

Contents

require "govuk/lint"
require "govuk/lint/diff"
require "govuk/lint/config_file"

require "rubocop"

module Govuk
  module Lint
    class CLI < RuboCop::CLI
      def run(args = ARGV)
        args += [
          "--config",
          ConfigFile.new.config_file_path,
          "--display-cop-names",
          "--extra-details",
          "--display-style-guide",
        ]

        Diff.enable!(args) if args.include? "--diff"

        super(args)
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
govuk-lint-3.9.0 lib/govuk/lint/cli.rb
govuk-lint-3.8.0 lib/govuk/lint/cli.rb
govuk-lint-3.7.0 lib/govuk/lint/cli.rb
govuk-lint-3.6.0 lib/govuk/lint/cli.rb
govuk-lint-3.5.0 lib/govuk/lint/cli.rb
govuk-lint-3.4.0 lib/govuk/lint/cli.rb
govuk-lint-3.3.1 lib/govuk/lint/cli.rb
govuk-lint-3.3.0 lib/govuk/lint/cli.rb
govuk-lint-3.2.0 lib/govuk/lint/cli.rb
govuk-lint-3.1.0 lib/govuk/lint/cli.rb
govuk-lint-3.0.0 lib/govuk/lint/cli.rb
govuk-lint-2.1.0 lib/govuk/lint/cli.rb
govuk-lint-2.0.0 lib/govuk/lint/cli.rb