Skip to content

Commit

Permalink
Update DEFAULT_ARGS to replace deprecated value with current supporte…
Browse files Browse the repository at this point in the history
…d value (#7)

* Update DEFAULT_ARGS to replace deprecated value with current supported value

* Address reviewer feedback and update change to be backwards compatible
  • Loading branch information
Greg Fletcher authored Oct 7, 2022
1 parent f39eb2e commit 18c61c6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
---
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop_runner/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RubocopRunner
VERSION = '2.2.0'
VERSION = '2.2.1'
end

0 comments on commit 18c61c6

Please sign in to comment.