#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][])
You can trigger a rebase of this PR 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)
Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.
Updates the requirements on rubocop-rails to permit the latest version.
Release notes
Sourced from rubocop-rails's releases.
Changelog
Sourced from rubocop-rails's changelog.
... (truncated)
Commits
f646d6e
Cut 2.26.2a451135
Update Changelogf935a0b
Suppress new RuboCop offenses4a00257
Merge pull request #1326 from Earlopain/wrong-autocorrect-for-rails-file-path38cec18
[Doc] Sync the Rails configuration tip with the README5dc42d5
Merge pull request #1363 from koic/fix_false_positives_for_rails_enum_syntax50fe9a7
[Fix #1362] Fix false positives forRails/EnumSyntax
210f42e
Merge pull request #1344 from Earlopain/revert-13115e66785
Merge pull request #1361 from masato-bkn/fix-rails-compact-blankf4f3bf1
FixRails/CompactBlank
to avoid reporting offense forfilter
in Ruby vers...You can trigger a rebase of this PR 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