Sha256: 0e775bb5beaa656907cfe4bdb1c76cc8b2b4af329a733f61c79985cd0bd96a61

Contents?: true

Size: 307 Bytes

Versions: 1

Compression:

Stored size: 307 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

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