Skip to content

Commit

Permalink
Require RuboCop 1.61 to use AutoCorrect: Contextual
Browse files Browse the repository at this point in the history
Follow up #302 (comment).

This PR updates the dependency version to RuboCop 1.61, which supports `AutoCorrect: contextual`,
and updates `Minitest/Focus`'s config.
https://github.com/rubocop/rubocop/releases/tag/v1.61.0
  • Loading branch information
koic committed Mar 1, 2024
1 parent e0eccab commit 60d5caa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ jobs:
run: |
sed -e "/gem 'rubocop', github: 'rubocop\/rubocop'/d" -i Gemfile
cat << EOF > Gemfile.local
gem 'rubocop', '1.39.0' # Specify the oldest supported RuboCop version
gem 'rubocop', '1.61.0' # Specify the oldest supported RuboCop version
EOF
- name: set up Ruby
uses: ruby/setup-ruby@v1
Expand Down
1 change: 1 addition & 0 deletions changelog/change_require_rubocop_1_61.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#303](https://github.com/rubocop/rubocop-minitest/pull/303): Require RuboCop 1.61 to use `AutoCorrect: Contextual`. ([@koic][])
1 change: 1 addition & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ Minitest/EmptyLineBeforeAssertionMethods:
Minitest/Focus:
Description: 'Checks for focused tests.'
Enabled: pending
AutoCorrect: contextual
VersionAdded: '<<next>>'

Minitest/GlobalExpectations:
Expand Down
2 changes: 1 addition & 1 deletion rubocop-minitest.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_runtime_dependency 'rubocop', '>= 1.39', '< 2.0'
spec.add_runtime_dependency 'rubocop', '>= 1.61', '< 2.0'
spec.add_runtime_dependency 'rubocop-ast', '>= 1.30.0', '< 2.0'
end

0 comments on commit 60d5caa

Please sign in to comment.