Sha256: 0b2f45f990ae52f635a0f1abcf6ac255984e3976c824bbf9556dce005dafb125

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 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)
        warn "[DEPRECATION] `govuk-lint-ruby` is deprecated.  Please use `rubocop` with `rubocop-govuk` instead."
        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

1 entries across 1 versions & 1 rubygems

Version Path
govuk-lint-4.3.0 lib/govuk/lint/cli.rb