rubocop/rubocop-rails (rubocop-rails)
### [`v2.26.0`](https://togithub.com/rubocop/rubocop-rails/blob/HEAD/CHANGELOG.md#2260-2024-08-24)
[Compare Source](https://togithub.com/rubocop/rubocop-rails/compare/v2.25.1...v2.26.0)
##### New features
- [#1238](https://togithub.com/rubocop/rubocop-rails/issues/1238): Add new `Rails/EnumSyntax` cop. (\[[@maxprokopiev](https://togithub.com/maxprokopiev)]\[], \[[@koic](https://togithub.com/koic)]\[])
- [#1309](https://togithub.com/rubocop/rubocop-rails/pull/1309): Support Rails 7 syntax for `Rails/EnumHash` cop. (\[[@ytjmt](https://togithub.com/ytjmt)]\[])
- [#1298](https://togithub.com/rubocop/rubocop-rails/pull/1298): Support Rails 7 syntax for `Rails/EnumUniqueness` cop. (\[[@ytjmt](https://togithub.com/ytjmt)]\[])
##### Bug fixes
- [#1335](https://togithub.com/rubocop/rubocop-rails/pull/1335): Fix an error for `Rails/BulkChangeTable` when the block for `change_table` is empty. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#1325](https://togithub.com/rubocop/rubocop-rails/pull/1325): Fix an error for `Rails/RenderPlainText` when the content type is passed as a constant. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#1337](https://togithub.com/rubocop/rubocop-rails/pull/1337): Fix an error for `Rails/Validation` when passing no arguments. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#1330](https://togithub.com/rubocop/rubocop-rails/pull/1330): Fix an error for `Rails/WhereNot` when using placeholder without second argument. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#1311](https://togithub.com/rubocop/rubocop-rails/pull/1311): Fix false negatives for `Rails/ActionControllerFlashBeforeRender` when using implicit render or rescue blocks. (\[[@tldn0718](https://togithub.com/tldn0718)]\[])
- [#1313](https://togithub.com/rubocop/rubocop-rails/pull/1313): Fix false positives for `Rails/CompactBlank` when using `collection.reject!`. (\[[@koic](https://togithub.com/koic)]\[])
- [#1319](https://togithub.com/rubocop/rubocop-rails/issues/1319): Fix a false positive for `Rails/RedundantPresenceValidationOnBelongsTo` when removing `presence` would leave other non-validation options like `allow_blank` without validations. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#1306](https://togithub.com/rubocop/rubocop-rails/pull/1306): Make `Rails/PluralizationGrammar` aware of byte methods. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#1302](https://togithub.com/rubocop/rubocop-rails/pull/1302): Allow `params` receiver by default for `Style/CollectionMethods`. (\[[@koic](https://togithub.com/koic)]\[])
- [#1321](https://togithub.com/rubocop/rubocop-rails/pull/1321): Fix an error for `Rails/WhereEquals` when the second argument is not yet typed (`where("foo = ?", )`). (\[[@earlopain](https://togithub.com/earlopain)]\[])
##### Changes
- [#1308](https://togithub.com/rubocop/rubocop-rails/issues/1308): Change `Rails/CompactBlank` to handle `select(&:present?)`. (\[[@fatkodima](https://togithub.com/fatkodima)]\[])
- [#1303](https://togithub.com/rubocop/rubocop-rails/pull/1303): Change `Rails/IgnoredSkipActionFilterOption` to handle multiple callbacks. (\[[@fatkodima](https://togithub.com/fatkodima)]\[])
- [#1199](https://togithub.com/rubocop/rubocop-rails/issues/1199): Make `Rails/WhereEquals` aware of `where.not(...)`. (\[[@earlopain](https://togithub.com/earlopain)]\[])
- [#1003](https://togithub.com/rubocop/rubocop-rails/pull/1003): Change `Rails/RootPathnameMethods` to detect offenses on `Dir.[]`. (\[[@r7kamura](https://togithub.com/r7kamura)]\[])
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
'~> 2.25.0'
->'~> 2.26.0'
Release Notes
rubocop/rubocop-rails (rubocop-rails)
### [`v2.26.0`](https://togithub.com/rubocop/rubocop-rails/blob/HEAD/CHANGELOG.md#2260-2024-08-24) [Compare Source](https://togithub.com/rubocop/rubocop-rails/compare/v2.25.1...v2.26.0) ##### New features - [#1238](https://togithub.com/rubocop/rubocop-rails/issues/1238): Add new `Rails/EnumSyntax` cop. (\[[@maxprokopiev](https://togithub.com/maxprokopiev)]\[], \[[@koic](https://togithub.com/koic)]\[]) - [#1309](https://togithub.com/rubocop/rubocop-rails/pull/1309): Support Rails 7 syntax for `Rails/EnumHash` cop. (\[[@ytjmt](https://togithub.com/ytjmt)]\[]) - [#1298](https://togithub.com/rubocop/rubocop-rails/pull/1298): Support Rails 7 syntax for `Rails/EnumUniqueness` cop. (\[[@ytjmt](https://togithub.com/ytjmt)]\[]) ##### Bug fixes - [#1335](https://togithub.com/rubocop/rubocop-rails/pull/1335): Fix an error for `Rails/BulkChangeTable` when the block for `change_table` is empty. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#1325](https://togithub.com/rubocop/rubocop-rails/pull/1325): Fix an error for `Rails/RenderPlainText` when the content type is passed as a constant. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#1337](https://togithub.com/rubocop/rubocop-rails/pull/1337): Fix an error for `Rails/Validation` when passing no arguments. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#1330](https://togithub.com/rubocop/rubocop-rails/pull/1330): Fix an error for `Rails/WhereNot` when using placeholder without second argument. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#1311](https://togithub.com/rubocop/rubocop-rails/pull/1311): Fix false negatives for `Rails/ActionControllerFlashBeforeRender` when using implicit render or rescue blocks. (\[[@tldn0718](https://togithub.com/tldn0718)]\[]) - [#1313](https://togithub.com/rubocop/rubocop-rails/pull/1313): Fix false positives for `Rails/CompactBlank` when using `collection.reject!`. (\[[@koic](https://togithub.com/koic)]\[]) - [#1319](https://togithub.com/rubocop/rubocop-rails/issues/1319): Fix a false positive for `Rails/RedundantPresenceValidationOnBelongsTo` when removing `presence` would leave other non-validation options like `allow_blank` without validations. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#1306](https://togithub.com/rubocop/rubocop-rails/pull/1306): Make `Rails/PluralizationGrammar` aware of byte methods. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#1302](https://togithub.com/rubocop/rubocop-rails/pull/1302): Allow `params` receiver by default for `Style/CollectionMethods`. (\[[@koic](https://togithub.com/koic)]\[]) - [#1321](https://togithub.com/rubocop/rubocop-rails/pull/1321): Fix an error for `Rails/WhereEquals` when the second argument is not yet typed (`where("foo = ?", )`). (\[[@earlopain](https://togithub.com/earlopain)]\[]) ##### Changes - [#1308](https://togithub.com/rubocop/rubocop-rails/issues/1308): Change `Rails/CompactBlank` to handle `select(&:present?)`. (\[[@fatkodima](https://togithub.com/fatkodima)]\[]) - [#1303](https://togithub.com/rubocop/rubocop-rails/pull/1303): Change `Rails/IgnoredSkipActionFilterOption` to handle multiple callbacks. (\[[@fatkodima](https://togithub.com/fatkodima)]\[]) - [#1199](https://togithub.com/rubocop/rubocop-rails/issues/1199): Make `Rails/WhereEquals` aware of `where.not(...)`. (\[[@earlopain](https://togithub.com/earlopain)]\[]) - [#1003](https://togithub.com/rubocop/rubocop-rails/pull/1003): Change `Rails/RootPathnameMethods` to detect offenses on `Dir.[]`. (\[[@r7kamura](https://togithub.com/r7kamura)]\[])Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
â™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.