Class: Govuk::Lint::CLI
- Inherits:
-
RuboCop::CLI
- Object
- RuboCop::CLI
- Govuk::Lint::CLI
- Defined in:
- lib/govuk/lint/cli.rb
Instance Method Summary collapse
Instance Method Details
#run(args = ARGV) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/govuk/lint/cli.rb', line 10 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 |