Skip to content

Commit 345e43b

Browse files
Fix warnings after Naming/PredicateName was renamed to Naming/PredicatePrefix (#216)
* chore: fix warnings about using deprecated `Naming/PredicateName` cop The cop was renamed to `Naming/PredicatePrefix` in `rubocop` `v1.76.0`, so we should use that one instead. Fixes #215. * build(deps): bump minimum required `rubocop` version to `~> 1.76` * docs: update `CHANGELOG.md` changes to be released
1 parent 5bcc9d3 commit 345e43b

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

rubocop-airbnb/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Unreleased
2+
* Fix warnings after `Naming/PredicateName` was renamed to `Naming/PredicatePrefix` in `rubocop` `v1.76.0`
3+
* Bump `rubocop` minimum required version from `~> 1.72` to `~> 1.76`
4+
15
# 8.0.0
26
* [#72](https://github.com/airbnb/ruby/pull/212) Adopt Rubocop's plugin system (thanks @koic!)
37
* Bump minimum gem versions:

rubocop-airbnb/config/rubocop-naming.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Naming/MethodName:
4747
- snake_case
4848
- camelCase
4949

50-
Naming/PredicateName:
50+
Naming/PredicatePrefix:
5151
Description: Check the names of predicate methods.
5252
StyleGuide: https://github.com/rubocop-hq/ruby-style-guide#bool-methods-qmark
5353
Enabled: false

rubocop-airbnb/rubocop-airbnb.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
2828
spec.metadata['default_lint_roller_plugin'] = 'RuboCop::Airbnb::Plugin'
2929

3030
spec.add_dependency('lint_roller', '~> 1.1')
31-
spec.add_dependency('rubocop', '~> 1.72')
31+
spec.add_dependency('rubocop', '~> 1.76')
3232
spec.add_dependency('rubocop-capybara', '~> 2.22')
3333
spec.add_dependency('rubocop-factory_bot', '~> 2.27')
3434
spec.add_dependency('rubocop-performance', '~> 1.24')

0 commit comments

Comments
 (0)