Sha256: fb80e759c4e2cb97d6282c48f62599af1fa872b6ab1163016320a80702344cb7

Contents?: true

Size: 404 Bytes

Versions: 7

Compression:

Stored size: 404 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)
        config = ConfigFile.new

        args += [
          "--config",
          config.config_file_path,
        ]

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

        super(args)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
govuk-lint-4.2.0 lib/govuk/lint/cli.rb
govuk-lint-4.1.0 lib/govuk/lint/cli.rb
govuk-lint-4.0.1 lib/govuk/lint/cli.rb
govuk-lint-4.0.0 lib/govuk/lint/cli.rb
govuk-lint-3.11.5 lib/govuk/lint/cli.rb
govuk-lint-3.11.4 lib/govuk/lint/cli.rb
govuk-lint-3.11.3 lib/govuk/lint/cli.rb