#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][])
2.25.1 (2024-06-29)
Bug fixes
#1280: Look for change_column_null for Rails/BulkChangeTable. ([@ccutrer][])
#1299: Fix an error for Rails/NotNullColumn when the block for change_table is empty. ([@earlopain][])
#1281: Fix Rails/WhereRange autocorrect for complex expressions. ([@fatkodima][])
#1282: Fix Rails/WhereRange to correctly handle template strings with extra spaces. ([@fatkodima][])
Changes
#1295: Cover validates_comparison_of in Rails/Validation. ([@ChaelCodes][])
#1288: Let Rails/LinkToBlank look into link_to_if and link_to_unless, too. ([@fwolfst][])
#1286: Mark Rails/SkipsModelValidations as unsafe. ([@koic][])
#1283: Mark Rails/WhereRange as unsafe autocorrect. ([@fatkodima][])
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)
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
334861e
Cut 2.26.091c0f30
Update Changelog6bc9b1c
Merge pull request #1337 from Earlopain/validation-erroraa2bf3e
Merge pull request #1336 from koic/add_new_rails_enum_syntax_copd17c7b5
Merge pull request #1309 from ytjmt/support-new-enum-syntax-for-enum-hash-cop2201bd8
[Fix #1238] Add newRails/EnumSyntax
copebd652f
Merge pull request #1335 from Earlopain/error-bulk-change-table5e2237a
Fix an error forRails/Validation
when passing no argumentsa9db5f5
UpdateRails/Validation
specs to modern style75be327
Merge pull request #1334 from Earlopain/cop-registry-deprecatedDependabot 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