Bump rubocop from 1.51.0 to 1.52.0
Bumps rubocop from 1.51.0 to 1.52.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.52
New features
- #11873: Add
ComparisonsThreshold
config option toStyle/MultipleComparison
. (@fatkodima
)- #11886: Add new
Style/RedundantArrayConstructor
cop. (@koic
)- #11873: Add new
Style/RedundantRegexpConstructor
cop. (@koic
)- #11841: Add new
Style/RedundantFilterChain
cop. (@fatkodima
)- #11908: Support
AllowedReceivers
forStyle/CollectionMethods
. (@koic
)Bug fixes
- #11890: Fix a false negative for
Lint/RedundantSafeNavigation
when&.
is used forto_d
. (@koic
)- #11880: Fix a false positive for
Style/ExactRegexpMatch
when using literal with quantifier in regexp. (@koic
)- #11902: Fix a false positive for
Style/RequireOrder
when single-quoted string and double-quoted string are mixed. (@koic
)- #11879: Fix a false positive for
Style/SelectByRegexp
when Ruby 2.2 or lower analysis. (@koic
)- #11891: Fix
Style/AccessorGrouping
to accept macros separated from accessors by space. (@fatkodima
)- #11905: Fix an error for
Lint/UselessAssignment
when a variable is assigned with rest assignment and unreferenced. (@koic
)- #11899: Fix an incorrect autocorrect for
Style/SingleLineMethods
when using Ruby 3.0 andStyle/EndlessMethod
is disabled. (@koic
)- #11884: Make
rubocop -V
display rubocop-factory_bot version when using it. (@koic
)- #11893: Fix a false positive for
Lint/InheritException
when inheritingException
with omitted namespace. (@koic
)- #11898: Fix offences in calls inside blocks with braces for
Style/MethodCallWithArgsParentheses
withomit_parentheses
enforced style. (@gsamokovarov
)- #11857: Server mode: only read $stdin when -s or --stdin argument provided. (
@naveg
)
Changelog
Sourced from rubocop's changelog.
1.52.0 (2023-06-02)
New features
- #11873: Add
ComparisonsThreshold
config option toStyle/MultipleComparison
. ([@fatkodima
][])- #11886: Add new
Style/RedundantArrayConstructor
cop. ([@koic
][])- #11873: Add new
Style/RedundantRegexpConstructor
cop. ([@koic
][])- #11841: Add new
Style/RedundantFilterChain
cop. ([@fatkodima
][])- #11908: Support
AllowedReceivers
forStyle/CollectionMethods
. ([@koic
][])Bug fixes
- #11890: Fix a false negative for
Lint/RedundantSafeNavigation
when&.
is used forto_d
. ([@koic
][])- #11880: Fix a false positive for
Style/ExactRegexpMatch
when using literal with quantifier in regexp. ([@koic
][])- #11902: Fix a false positive for
Style/RequireOrder
when single-quoted string and double-quoted string are mixed. ([@koic
][])- #11879: Fix a false positive for
Style/SelectByRegexp
when Ruby 2.2 or lower analysis. ([@koic
][])- #11891: Fix
Style/AccessorGrouping
to accept macros separated from accessors by space. ([@fatkodima
][])- #11905: Fix an error for
Lint/UselessAssignment
when a variable is assigned with rest assignment and unreferenced. ([@koic
][])- #11899: Fix an incorrect autocorrect for
Style/SingleLineMethods
when using Ruby 3.0 andStyle/EndlessMethod
is disabled. ([@koic
][])- #11884: Make
rubocop -V
display rubocop-factory_bot version when using it. ([@koic
][])- #11893: Fix a false positive for
Lint/InheritException
when inheritingException
with omitted namespace. ([@koic
][])- #11898: Fix offences in calls inside blocks with braces for
Style/MethodCallWithArgsParentheses
withomit_parentheses
enforced style. ([@gsamokovarov
][])- #11857: Server mode: only read $stdin when -s or --stdin argument provided. ([
@naveg
][])
Commits
-
93a3783
Cut 1.52 -
727967f
Update Changelog -
41fa2aa
Server mode: only read $stdin when -s or --stdin argument provided -
a01fd9c
Add newStyle/RedundantArrayConstructor
cop -
356fc46
[Fix #11908] SupportAllowedReceivers
forStyle/CollectionMethods
-
713e7da
Remove a redundantSafeAutoCorrect: false
config -
172cc75
Merge pull request #11907 from koic/fix_an_error_for_lint_useless_assignment -
63ede93
[Fix #11905] Fix an error forLint/UselessAssignment
-
1884a46
Merge pull request #11902 from koic/fix_a_false_positive_for_style_require_order -
db9e469
Fix a false positive forStyle/RequireOrder
- Additional commits viewable in compare view
Dependabot commands
You can trigger Dependabot actions by commenting on this MR
-
@dependabot-bot rebase
will rebase this MR. Deprecated, use GitLab's native /rebase instead -
@dependabot-bot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts