New features
- #1238: Add new
Rails/EnumSyntax
cop. (@maxprokopiev, @koic) - #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 forchange_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 usingcollection.reject!
. (@koic) - #1319: Fix a false positive for
Rails/RedundantPresenceValidationOnBelongsTo
when removingpresence
would leave other non-validation options likeallow_blank
without validations. (@earlopain) - #1306: Make
Rails/PluralizationGrammar
aware of byte methods. (@earlopain) - #1302: Allow
params
receiver by default forStyle/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 handleselect(&:present?)
. (@fatkodima) - #1303: Change
Rails/IgnoredSkipActionFilterOption
to handle multiple callbacks. (@fatkodima) - #1199: Make
Rails/WhereEquals
aware ofwhere.not(...)
. (@earlopain) - #1003: Change
Rails/RootPathnameMethods
to detect offenses onDir.[]
. (@r7kamura)