Sha256: 0fca628b2d09ff993e2444fe48ca20310fb65b658a9e16d50d8960ab8ab7f644

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

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

require "rubocop"

module Govuk
  module Lint
    class CLI < RuboCop::CLI
      def run(args = ARGV)
        args += ["--config",
                 File.join(Govuk::Lint::CONFIG_PATH, "rubocop/all.yml")]

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

        super(args)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
govuk-lint-0.3.0 lib/govuk/lint/cli.rb
govuk-lint-0.2.0 lib/govuk/lint/cli.rb
govuk-lint-0.1.2 lib/govuk/lint/cli.rb
govuk-lint-0.1.1 lib/govuk/lint/cli.rb