lib/govuk/lint/cli.rb in govuk-lint-0.3.0 vs lib/govuk/lint/cli.rb in govuk-lint-0.4.0
- old
+ new
@@ -1,15 +1,16 @@
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",
- File.join(Govuk::Lint::CONFIG_PATH, "rubocop/all.yml")]
+ ConfigFile.new.config_file_path]
Diff.enable!(args) if args.include? "--diff"
super(args)
end