Skip to content

Commit

Permalink
Make Style/CollectionMethods aware of params
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Jun 25, 2024
1 parent bb1d373 commit 100881e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#1302](https://github.com/rubocop/rubocop-rails/pull/1302): Make `Style/CollectionMethods` aware of `params`. ([@koic][])
4 changes: 4 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1234,6 +1234,10 @@ Rails/WhereRange:
Style/AndOr:
EnforcedStyle: conditionals

Style/CollectionCompact:
AllowedReceivers:
- params

Style/FormatStringToken:
AllowedMethods:
- redirect
Expand Down
2 changes: 1 addition & 1 deletion rubocop-rails.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ Gem::Specification.new do |s|
# Rack::Utils::SYMBOL_TO_STATUS_CODE, which is used by HttpStatus cop, was
# introduced in rack 1.1
s.add_runtime_dependency 'rack', '>= 1.1'
s.add_runtime_dependency 'rubocop', '>= 1.33.0', '< 2.0'
s.add_runtime_dependency 'rubocop', '>= 1.52.0', '< 2.0'
s.add_runtime_dependency 'rubocop-ast', '>= 1.31.1', '< 2.0'
end

0 comments on commit 100881e

Please sign in to comment.