Sha256: c4245ec9d8980ff63ee26805b0614e9f9aaaec45bc5750d626f435dda65e1b3a

Contents?: true

Size: 501 Bytes

Versions: 13

Compression:

Stored size: 501 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-1.2.1 lib/govuk/lint/cli.rb
govuk-lint-1.2.0 lib/govuk/lint/cli.rb
govuk-lint-1.1.0 lib/govuk/lint/cli.rb
govuk-lint-1.0.0 lib/govuk/lint/cli.rb
govuk-lint-0.8.1 lib/govuk/lint/cli.rb
govuk-lint-0.8.0 lib/govuk/lint/cli.rb
govuk-lint-0.7.0 lib/govuk/lint/cli.rb
govuk-lint-0.6.2 lib/govuk/lint/cli.rb
govuk-lint-0.6.1 lib/govuk/lint/cli.rb
govuk-lint-0.6.0 lib/govuk/lint/cli.rb
govuk-lint-0.5.3 lib/govuk/lint/cli.rb
govuk-lint-0.5.2 lib/govuk/lint/cli.rb
govuk-lint-0.5.1 lib/govuk/lint/cli.rb