#1309: Support Rails 7 syntax for Rails/EnumHash cop. (@ytjmt)
#1298: Support Rails 7 syntax for Rails/EnumUniqueness cop. (@ytjmt)
Bug fixes
#1335: Fix an error for Rails/BulkChangeTable when the block for change_table is empty. (@earlopain)
#1325: Fix an error for Rails/RenderPlainText when the content type is passed as a constant. (@earlopain)
#1337: Fix an error for Rails/Validation when passing no arguments. (@earlopain)
#1330: Fix an error for Rails/WhereNot when using placeholder without second argument. (@earlopain)
#1311: Fix false negatives for Rails/ActionControllerFlashBeforeRender when using implicit render or rescue blocks. (@tldn0718)
#1313: Fix false positives for Rails/CompactBlank when using collection.reject!. (@koic)
#1319: Fix a false positive for Rails/RedundantPresenceValidationOnBelongsTo when removing presence would leave other non-validation options like allow_blank without validations. (@earlopain)
#1306: Make Rails/PluralizationGrammar aware of byte methods. (@earlopain)
#1302: Allow params receiver by default for Style/CollectionMethods. (@koic)
#1321: Fix an error for Rails/WhereEquals when the second argument is not yet typed (where("foo = ?", )). (@earlopain)
Changes
#1308: Change Rails/CompactBlank to handle select(&:present?). (@fatkodima)
#1303: Change Rails/IgnoredSkipActionFilterOption to handle multiple callbacks. (@fatkodima)
#1199: Make Rails/WhereEquals aware of where.not(...). (@earlopain)
#1003: Change Rails/RootPathnameMethods to detect offenses on Dir.[]. (@r7kamura)
#1309: Support Rails 7 syntax for Rails/EnumHash cop. ([@ytjmt][])
#1298: Support Rails 7 syntax for Rails/EnumUniqueness cop. ([@ytjmt][])
Bug fixes
#1335: Fix an error for Rails/BulkChangeTable when the block for change_table is empty. ([@earlopain][])
#1325: Fix an error for Rails/RenderPlainText when the content type is passed as a constant. ([@earlopain][])
#1337: Fix an error for Rails/Validation when passing no arguments. ([@earlopain][])
#1330: Fix an error for Rails/WhereNot when using placeholder without second argument. ([@earlopain][])
#1311: Fix false negatives for Rails/ActionControllerFlashBeforeRender when using implicit render or rescue blocks. ([@tldn0718][])
#1313: Fix false positives for Rails/CompactBlank when using collection.reject!. ([@koic][])
#1319: Fix a false positive for Rails/RedundantPresenceValidationOnBelongsTo when removing presence would leave other non-validation options like allow_blank without validations. ([@earlopain][])
#1306: Make Rails/PluralizationGrammar aware of byte methods. ([@earlopain][])
#1302: Allow params receiver by default for Style/CollectionMethods. ([@koic][])
#1321: Fix an error for Rails/WhereEquals when the second argument is not yet typed (where("foo = ?", )). ([@earlopain][])
Changes
#1308: Change Rails/CompactBlank to handle select(&:present?). ([@fatkodima][])
#1303: Change Rails/IgnoredSkipActionFilterOption to handle multiple callbacks. ([@fatkodima][])
#1199: Make Rails/WhereEquals aware of where.not(...). ([@earlopain][])
#1003: Change Rails/RootPathnameMethods to detect offenses on Dir.[]. ([@r7kamura][])
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps rubocop-rails from 2.25.1 to 2.26.1.
Release notes
Sourced from rubocop-rails's releases.
Changelog
Sourced from rubocop-rails's changelog.
Commits
6d6fca2
Cut 2.26.122bc59e
Update Changelog16b7f21
Merge pull request #1357 from masato-bkn/add-tests-for-rails-compact-blank027db53
Add missing tests forRails/CompactBlank
when receiver is a hash93f9a89
Merge pull request #1349 from fatkodima/application_record_ignore-migrations9138f7b
Merge pull request #1352 from masato-bkn/fix/rails-pluralization-grammar-example5a0a69a
Fix example inRails/PluralizationGrammar
ff07593
ChangeRails/ApplicationRecord
to ignore migrationsed33413
Merge pull request #1350 from fatkodima/change-enum_syntax-to-autocorrect-und...0a80131
ChangeRails/EnumSyntax
to autocorrect underscored optionsDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show