Bump rubocop-rails from 2.34.3 to 2.35.3
Closed
Number: #71
Type: Pull Request
State: Closed
Type: Pull Request
State: Closed
Author:
dependabot[bot]
Association: Unknown
Comments: 3
Association: Unknown
Comments: 3
Created:
May 28, 2026 at 12:51 AM UTC
(22 days ago)
(22 days ago)
Updated:
June 08, 2026 at 11:55 PM UTC
(10 days ago)
(10 days ago)
Closed:
June 08, 2026 at 11:55 PM UTC
(10 days ago)
(10 days ago)
Time to Close:
12 days
Labels:
dependencies ruby
dependencies ruby
Description:
Bumps rubocop-rails from 2.34.3 to 2.35.3.
Release notes
Sourced from rubocop-rails's releases.
RuboCop Rails v2.35.3
Bug fixes
- #1630: Fix a false positive in
Rails/StrongParametersExpectwhen negatingparams[:key]with!, such as!params[:key]. (@koic)- #1629: Fix false positives in
Rails/StrongParametersExpectwhen using the safe navigation operator (&.) onparams[:key]. Autocorrectingparams[:key]&.downcasetoparams.expect(:key).downcasesilently changes behavior — a missing param goes from returningnilto raisingActionController::ParameterMissing. (@lucasmazza)RuboCop Rails v2.35.2
Bug fixes
- #1625: Fix false positives in
Rails/StrongParametersExpectwhen using collection methods (such asdelete,keys,merge,slice,dig,fetch, ortransform_values) onparams[:key], as well as block-style calls such asparams[:key].each { ... }orparams[:key].map(&:to_s). (@koic)- #1627: Fix false positives in
Rails/StrongParametersExpectfor usages likeparams[:key].try(:method)andparams[:key].try!(:method). (@nicholasdower)RuboCop Rails v2.35.1
Bug fixes
- #1616: Fix false positives in
Rails/StrongParametersExpectwhen using nil-safe conversion methods such asto_i,to_s,to_a,to_f, andto_honparams[:key]. (@koic)- #1622: Fix false positives in
Rails/StrongParametersExpectwhen using key-check methods such askey?,has_key?,include?, andmember?onparams[:key]. (@koic)- #1620: Fix false positives in
Rails/StrongParametersExpectwhen using type-check methods such asis_a?,kind_of?, andinstance_of?onparams[:key]. (@koic)RuboCop Rails v2.35.0
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][])
... (truncated)
Changelog
Sourced from rubocop-rails's changelog.
2.35.3 (2026-05-27)
Bug fixes
- #1630: Fix a false positive in
Rails/StrongParametersExpectwhen negatingparams[:key]with!, such as!params[:key]. ([@koic][])- #1629: Fix false positives in
Rails/StrongParametersExpectwhen using the safe navigation operator (&.) onparams[:key]. Autocorrectingparams[:key]&.downcasetoparams.expect(:key).downcasesilently changes behavior — a missing param goes from returningnilto raisingActionController::ParameterMissing. ([@lucasmazza][])2.35.2 (2026-05-19)
Bug fixes
- #1625: Fix false positives in
Rails/StrongParametersExpectwhen using collection methods (such asdelete,keys,merge,slice,dig,fetch, ortransform_values) onparams[:key], as well as block-style calls such asparams[:key].each { ... }orparams[:key].map(&:to_s). ([@koic][])- #1627: Fix false positives in
Rails/StrongParametersExpectfor usages likeparams[:key].try(:method)andparams[:key].try!(:method). ([@nicholasdower][])2.35.1 (2026-05-17)
Bug fixes
- #1616: Fix false positives in
Rails/StrongParametersExpectwhen using nil-safe conversion methods such asto_i,to_s,to_a,to_f, andto_honparams[:key]. ([@koic][])- #1622: Fix false positives in
Rails/StrongParametersExpectwhen using key-check methods such askey?,has_key?,include?, andmember?onparams[:key]. ([@koic][])- #1620: Fix false positives in
Rails/StrongParametersExpectwhen using type-check methods such asis_a?,kind_of?, andinstance_of?onparams[:key]. ([@koic][])2.35.0 (2026-05-09)
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][])
Commits
944f6f5Cut 2.35.37f93b76Update Changelog3e9d4a5Merge pull request #1631 from koic/fix_false_positive_for_rails_strong_parame...3529b8d[Fix #1630] Fix a false positive inRails/StrongParametersExpectdbb2e27Merge pull request #1629 from lucasmazza/fix/strong-parameters-expect-safe-na...0ea9fbcFix Rails/StrongParametersExpect to allow safe navigation operator on optiona...5d4154dReset the docs version26f1034Cut 2.35.265841f0Update Changeloge89ab8eMerge pull request #1626 from koic/fix_false_positives_for_rails_strong_param...- Additional commits viewable in compare view
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Package Dependencies
Technical Details
| ID: | 16022146 |
| UUID: | 4536806237 |
| Node ID: | PR_kwDOR-g9jc7gDFKE |
| Host: | GitHub |
| Repository: | ruby-benchmark/errbit |