Bug fixes
- #1595: Fix a false negative for
Rails/I18nLocaleTextswhen usingredirect_back_or_towith a flash message. (@55728) - #1587: Fix false positives for
Rails/Presencewith operator methods like<<,=~, and others. (@eugeneius) - #1586: Don't add unnecessary parentheses in
Rails/Presence. (@eugeneius) - #1602: Fix an error in
Rails/SelectMapwhen.selectappears inside a subquery in an argument. (@koic) - #1604: Allow
DatabaseTypeResolvableto fall back to anadapterconfiguration specified in asharedkey. (@codergeek121) - #1582: Fix a false negative where
localwas incorrectly treated as a known environment name when using==comparison inRails/UnknownEnv. (@lovro-bikic)
Changes
- #1571: Add more detection patterns on
Rails/ResponseParsedBody. (@r7kamura) - #1583: Extend
Rails/StrongParametersExpectto detectparams[:key]in method calls and raising finder methods. (@koic) - #1584: Add support for
casestatements toRails/UnknownEnv. (@lovro-bikic) - #1592: Fix false negative for
!=comparison inRails/UnknownEnv. (@lovro-bikic) - #1598: Use glob patterns compatible with Engine or Packwerk for cops targeting
spec/andtest/directories. (@y-yagi)