diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ae1da9..24e4408 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ Changelog === +2.2.1 +--- + +- Update `DEFAULT_ARGS` to use `-a` instead of `--auto-correct` to address the change of the argument name in newer versions of rubocop (1.30.0 and newer) while still supporting older versions of rubocop. master --- diff --git a/lib/rubocop_runner.rb b/lib/rubocop_runner.rb index e7fcf7f..2af921a 100644 --- a/lib/rubocop_runner.rb +++ b/lib/rubocop_runner.rb @@ -58,7 +58,7 @@ def staged_ruby_files end end - DEFAULT_ARGS = %w[--auto-correct + DEFAULT_ARGS = %w[-a --format fuubar --force-exclusion --fail-level autocorrect].freeze diff --git a/lib/rubocop_runner/version.rb b/lib/rubocop_runner/version.rb index 619c9b3..0cf0946 100644 --- a/lib/rubocop_runner/version.rb +++ b/lib/rubocop_runner/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module RubocopRunner - VERSION = '2.2.0' + VERSION = '2.2.1' end