dep: bump rubocop from 1.36.0 to 1.37.0
Bumps rubocop from 1.36.0 to 1.37.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.37
New features
- #11043: Add new
Lint/DuplicateMagicComment
cop. (@koic
)- #10409: Add
--no-exclude-limit
CLI option. (@r7kamura
)- #10986: Add autocorrect for
Style/StaticClass
. (@FnControlOption
)- #11018: Add
AllowedMethods
andAllowedPatterns
forLint/NestedMethodDefinition
. (@koic
)- #11055: Implement
Lint/DuplicateMethods
for object singleton class. ([@tdeo
][])- #10997: Make
rubocop
command aware of--server
option from .rubocop and RUBOCOP_OPTS. (@koic
)- #11079: Add new
Style/OperatorMethodCall
cop. (@koic
)- #10439: Add new
Style/RedundantStringEscape
cop. ([@owst
][])Bug fixes
- #11034: Fix server mode behavior when using
--stderr
. ([@tdeo
][])- #11028: Fix a false positive for
Lint/RequireParentheses
when using ternary operator in square bracksts. (@koic
)- #11051: Preserve comments on
Style/AccessModifierDeclarations
autocorrection. (@r7kamura
)- #9116: Support
super
method inLayout/FirstArgumentIndentation
. ([@tdeo
][])- #11068: Fix a false positive for
Style/RedundantRegexpCharacterClass
when using starting with "\0" number. (@koic
)- #11082: Fix an incorrect autocorrect for
Lint/SafeNavigationChain
when safe navigation on the right-hand side of the arithmetic operator. ([@ydah
][])- #10982: Do not autocorrect parentheses for calls in assignments in conditional branches for
Style/MethodCallWithArgsParentheses
withomit_parentheses
. ([@gsamokovarov
][])- #11084: Fix an error for
Style/ParallelAssignment
when using parallel assignment in singleton method. (@koic
)- #11078: Fix a false positive for
Style/RedundantBegin
when using endless method definition forbegin
with multiple statements. (@koic
)- #11074: Fix a false positive for
Lint/RedundantDirGlobSort
when usingDir.glob
with multiple arguments. (@koic
)- #11025: Check comments for disables in
RedundantInitialize
cop. ([@HeroProtagonist
][])- #11003: Fix clobbering exception in EmptyConditionalBody cop when if branch is empty but else is not. ([
@srcoley
][])- #11026: Fix an error occurred for
Style/SymbolArray
andStyle/WordArray
when empty percent array. ([@ydah
][])- #11022: Fix an incorrect autocorrect for
Style/RedundantCondition
when using redundant brackets access condition. (@koic
)- #11037: Fix a false positive for
Style/CollectionCompact
when usingto_enum.reject
orlazy.reject
methods with Ruby 3.0 or lower. (@koic
)- #11017: Fix an autocorrect for
Lint/EmptyConditionalBody
that causes a SyntaxError when missingif
andelse
body. ([@ydah
][])- #11047: Fix an incorrect autocorrect for
Style/SafeNavigationChain
when using+@
and-@
methods. (@koic
)- #11015: Fix a false positive for
Style/HashSyntax
when without parentheses call expr follows after nested method call. (@koic
)- #11067: Fix a false positive for
Lint/DuplicateRegexpCharacterClassElement
when using regexp character starts with escaped zero number. (@koic
)- #11030: Fix an incorrect autocorrect for
Lint/UnusedMethodArgument
andStyle::ExplicitBlockArgument
when autocorrection conflicts for&block
argument. (@koic
)- #11069: Fix an incorrect autocorrect for
Lint/RedundantCopDisableDirective
when disable directive contains free comment. (@koic
)- #11063: Preserve comments on
Style/AccessorGrouping
autocorrection. (@r7kamura
)- #10994: Fix an error when running 3rd party gem that does not require server. (
@koic
)Changes
- #11054: Implement correct behavior for compact mode for
Layout/SpaceInsideArrayLiteralBrackets
. ([@tdeo
][])- #10924:
Style/NegatedIfElseCondition
also checks negative conditions inside parentheses. ([@tsugimoto
][])- #11042: Mark
Lint/OrderedMagicComments
as unsafe autocorrection. (@koic
)- #11057: Make
Lint/RedundantRequireStatement
aware ofpp
,ruby2_keywords
, andfiber
. (@koic
)- #10988: Raise error when both safe and unsafe autocorrect options are specified. (
@koic
)- #11032: Detect empty Hash literal braces containing only newlines and spaces on
Layout/SpaceInsideHashLiteralBraces
. (@r7kamura
)
... (truncated)
Changelog
Sourced from rubocop's changelog.
1.37.0 (2022-10-20)
New features
- #11043: Add new
Lint/DuplicateMagicComment
cop. ([@koic
][])- #10409: Add
--no-exclude-limit
CLI option. ([@r7kamura
][])- #10986: Add autocorrect for
Style/StaticClass
. ([@FnControlOption
][])- #11018: Add
AllowedMethods
andAllowedPatterns
forLint/NestedMethodDefinition
. ([@koic
][])- #11055: Implement
Lint/DuplicateMethods
for object singleton class. ([@tdeo
][])- #10997: Make
rubocop
command aware of--server
option from .rubocop and RUBOCOP_OPTS. ([@koic
][])- #11079: Add new
Style/OperatorMethodCall
cop. ([@koic
][])- #10439: Add new
Style/RedundantStringEscape
cop. ([@owst
][])Bug fixes
- #11034: Fix server mode behavior when using
--stderr
. ([@tdeo
][])- #11028: Fix a false positive for
Lint/RequireParentheses
when using ternary operator in square bracksts. ([@koic
][])- #11051: Preserve comments on
Style/AccessModifierDeclarations
autocorrection. ([@r7kamura
][])- #9116: Support
super
method inLayout/FirstArgumentIndentation
. ([@tdeo
][])- #11068: Fix a false positive for
Style/RedundantRegexpCharacterClass
when using starting with "\0" number. ([@koic
][])- #11082: Fix an incorrect autocorrect for
Lint/SafeNavigationChain
when safe navigation on the right-hand side of the arithmetic operator. ([@ydah
][])- #10982: Do not autocorrect parentheses for calls in assignments in conditional branches for
Style/MethodCallWithArgsParentheses
withomit_parentheses
. ([@gsamokovarov
][])- #11084: Fix an error for
Style/ParallelAssignment
when using parallel assignment in singleton method. ([@koic
][])- #11078: Fix a false positive for
Style/RedundantBegin
when using endless method definition forbegin
with multiple statements. ([@koic
][])- #11074: Fix a false positive for
Lint/RedundantDirGlobSort
when usingDir.glob
with multiple arguments. ([@koic
][])- #11025: Check comments for disables in
RedundantInitialize
cop. ([@HeroProtagonist
][])- #11003: Fix clobbering exception in EmptyConditionalBody cop when if branch is empty but else is not. ([
@srcoley
][])- #11026: Fix an error occurred for
Style/SymbolArray
andStyle/WordArray
when empty percent array. ([@ydah
][])- #11022: Fix an incorrect autocorrect for
Style/RedundantCondition
when using redundant brackets access condition. ([@koic
][])- #11037: Fix a false positive for
Style/CollectionCompact
when usingto_enum.reject
orlazy.reject
methods with Ruby 3.0 or lower. ([@koic
][])- #11017: Fix an autocorrect for
Lint/EmptyConditionalBody
that causes a SyntaxError when missingif
andelse
body. ([@ydah
][])- #11047: Fix an incorrect autocorrect for
Style/SafeNavigationChain
when using+@
and-@
methods. ([@koic
][])- #11015: Fix a false positive for
Style/HashSyntax
when without parentheses call expr follows after nested method call. ([@koic
][])- #11067: Fix a false positive for
Lint/DuplicateRegexpCharacterClassElement
when using regexp character starts with escaped zero number. ([@koic
][])- #11030: Fix an incorrect autocorrect for
Lint/UnusedMethodArgument
andStyle::ExplicitBlockArgument
when autocorrection conflicts for&block
argument. ([@koic
][])- #11069: Fix an incorrect autocorrect for
Lint/RedundantCopDisableDirective
when disable directive contains free comment. ([@koic
][])- #11063: Preserve comments on
Style/AccessorGrouping
autocorrection. ([@r7kamura
][])- #10994: Fix an error when running 3rd party gem that does not require server. ([
@koic
][])Changes
- #11054: Implement correct behavior for compact mode for
Layout/SpaceInsideArrayLiteralBrackets
. ([@tdeo
][])- #10924:
Style/NegatedIfElseCondition
also checks negative conditions inside parentheses. ([@tsugimoto
][])- #11042: Mark
Lint/OrderedMagicComments
as unsafe autocorrection. ([@koic
][])- #11057: Make
Lint/RedundantRequireStatement
aware ofpp
,ruby2_keywords
, andfiber
. ([@koic
][])- #10988: Raise error when both safe and unsafe autocorrect options are specified. ([
@koic
][])- #11032: Detect empty Hash literal braces containing only newlines and spaces on
Layout/SpaceInsideHashLiteralBraces
. ([@r7kamura
][])
Commits
-
8b36d32
Cut 1.37 -
0280bbb
Update Changelog -
2989944
Fix a build error -
351291b
Add autocorrect forStyle/StaticClass
-
80bd66c
Detect empty Hash literal braces containing only newlines and spaces -
449a421
[Fix #10409] Add--no-exclude-limit
CLI option -
a182157
Implement correct behavior for compact mode for SpaceInsideArrayLiteralBrackets -
50e4c26
Fix a false positive forStyle/RedundantRegexpCharacterClass
-
27bd6ec
[Fix #11067] Fix a false positive for `Lint/DuplicateRegexpCharacterClassElem... -
da444bb
Merge pull request #11087 from srcoley/fix_clobbering_in_empty_conditional_body - 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 -
@dependabot-bot recreate
will recreate this MR rewriting all the manual changes and resolving conflicts
Allure report
allure-report-publisher
generated test report!
rspec:
+------------------------------------------------------------------+
| behaviors summary |
+-------------+--------+--------+---------+-------+-------+--------+
| | passed | failed | skipped | flaky | total | result |
+-------------+--------+--------+---------+-------+-------+--------+
| services | 180 | 0 | 0 | 0 | 180 | ✅ |
| models | 4 | 0 | 0 | 0 | 4 | ✅ |
| controllers | 25 | 0 | 0 | 0 | 25 | ✅ |
| jobs | 14 | 0 | 0 | 0 | 14 | ✅ |
| tasks | 9 | 0 | 0 | 0 | 9 | ✅ |
| system | 10 | 0 | 0 | 0 | 10 | ✅ |
+-------------+--------+--------+---------+-------+-------+--------+
| Total | 242 | 0 | 0 | 0 | 242 | ✅ |
+-------------+--------+--------+---------+-------+-------+--------+
Edited by George Koltsov