Skip to content

Commit

Permalink
Merge pull request #303 from koic/require_rubocop_1_61
Browse files Browse the repository at this point in the history
Require RuboCop 1.61 to use `AutoCorrect: Contextual`
  • Loading branch information
koic committed Mar 2, 2024
2 parents e0eccab + 60d5caa commit 0faaa25
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 0faaa25

Please sign in to comment.