#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 major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the rubocop group with 1 update: rubocop-rails.
Updates
rubocop-rails
from 2.25.1 to 2.26.0Release notes
Sourced from rubocop-rails's releases.
Changelog
Sourced from rubocop-rails's changelog.
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