Skip to content

dep-dev: bump rubocop from 1.30.1 to 1.31.0

George Koltsov requested to merge dependabot-bundler-rubocop-1.31.0 into main

Bumps rubocop from 1.30.1 to 1.31.0.

Release notes

Sourced from rubocop's releases.

RuboCop 1.31

New features

Bug fixes

  • #10700: Update Style/EmptyMethod to not correct if the correction would exceed the configuration for Layout/LineLength. (@​dvandersluis)
  • #10698: Enhance Style/HashExcept to support array inclusion checks. (@​nobuyo)
  • #10734: Handle ClobberingError in Style/NestedTernaryOperator when there are multiple nested ternaries. (@​dvandersluis)
  • #10689: Fix autocorrect for Layout/FirstHashElementIndentation and Layout/FirstArrayElementIndentation. (@​j-miyake)
  • Fix rubocop -V not displaying the version information for rubocop-graphql, rubocop-md and rubocop-thread_safety. (@​Darhazer)
  • #10711: Fix an error for Style/MultilineTernaryOperator when the false branch is on a separate line. (@​koic)
  • #10719: Fix a false positive for Lint/ParenthesesAsGroupedExpression when using safe navigation operator. (@​koic)
  • #10736: Fix Layout/SpaceInsideBlockBraces for blocks with numbered arguments. (@​gsamokovarov)
  • #10749: Fix Style/BlockDelimiters for blocks with numbered arguments. (@​gsamokovarov)
  • #10737: Fix crash in Style/ConditionalAssignment with EnforcedStyle: assign_inside_condition when op-assigning a variable inside a resbody. (@​dvandersluis)
  • #7900: Fix Style/FormatStringToken false positive with formatted input and template style enforced, and add autocorrection. (@​FnControlOption)

Changes

  • #10730: Change output timing of GitHubActionsFormatter. (@​r7kamura)
  • #10709: Deprecate rubocop:auto_correct custom rake task and newly split rubocop:autocorrect and rubocop:autocorrect-all custom rake tasks. (@​koic)
  • #9760: Change RangeHelp#range_with_surrounding_space to allow passing the range as a positional argument. (@​pirj)
  • #10693: Add ignore case for Style/EmptyLinesAroundAttributeAccessor when there is a comment line on the next line. (@​ydah)
  • #10245: (Breaking) integrate Gemspec/DateAssignment into Gemspec/DeprecatedAttributeAssignment. (@​kaitielth)
  • #10697: Restore Lint/UselessElseWithoutRescue cop. (@​koic)
  • #10740: Make Style/GuardClause a bit more lenient when the replacement would make the code more verbose. (@​dvandersluis)
Changelog

Sourced from rubocop's changelog.

1.31.0 (2022-06-27)

New features

Bug fixes

  • #10700: Update Style/EmptyMethod to not correct if the correction would exceed the configuration for Layout/LineLength. ([@​dvandersluis][])
  • #10698: Enhance Style/HashExcept to support array inclusion checks. ([@​nobuyo][])
  • #10734: Handle ClobberingError in Style/NestedTernaryOperator when there are multiple nested ternaries. ([@​dvandersluis][])
  • #10689: Fix autocorrect for Layout/FirstHashElementIndentation and Layout/FirstArrayElementIndentation. ([@​j-miyake][])
  • Fix rubocop -V not displaying the version information for rubocop-graphql, rubocop-md and rubocop-thread_safety. ([@​Darhazer][])
  • #10711: Fix an error for Style/MultilineTernaryOperator when the false branch is on a separate line. ([@​koic][])
  • #10719: Fix a false positive for Lint/ParenthesesAsGroupedExpression when using safe navigation operator. ([@​koic][])
  • #10736: Fix Layout/SpaceInsideBlockBraces for blocks with numbered arguments. ([@​gsamokovarov][])
  • #10749: Fix Style/BlockDelimiters for blocks with numbered arguments. ([@​gsamokovarov][])
  • #10737: Fix crash in Style/ConditionalAssignment with EnforcedStyle: assign_inside_condition when op-assigning a variable inside a resbody. ([@​dvandersluis][])
  • #7900: Fix Style/FormatStringToken false positive with formatted input and template style enforced, and add autocorrection. ([@​FnControlOption][])

Changes

  • #10730: Change output timing of GitHubActionsFormatter. ([@​r7kamura][])
  • #10709: Deprecate rubocop:auto_correct custom rake task and newly split rubocop:autocorrect and rubocop:autocorrect-all custom rake tasks. ([@​koic][])
  • #9760: Change RangeHelp#range_with_surrounding_space to allow passing the range as a positional argument. ([@​pirj][])
  • #10693: Add ignore case for Style/EmptyLinesAroundAttributeAccessor when there is a comment line on the next line. ([@​ydah][])
  • #10245: (Breaking) integrate Gemspec/DateAssignment into Gemspec/DeprecatedAttributeAssignment. ([@​kaitielth][])
  • #10697: Restore Lint/UselessElseWithoutRescue cop. ([@​koic][])
  • #10740: Make Style/GuardClause a bit more lenient when the replacement would make the code more verbose. ([@​dvandersluis][])
Commits
  • f94048d Cut 1.31
  • d4d590f Update Changelog
  • f9febbe Add new Lint/NonAtomicFileOperation cop
  • ae3dec3 Merge pull request #10749 from gsamokovarov/numblock-delimiters
  • 199c4b7 Fix Style/BlockDelimiters for blocks with numbered arguments
  • 9e286a0 Pass range as a positional arg to RangeHelp#range_with_surrounding_space
  • bdd1d1f #9760 Allow positional range arg in range_with_surrounding_space
  • 4998f9e Merge pull request #10747 from dvandersluis/doc/style/empty-method
  • c912ade Add note to Style/EmptyMethod documentation about autocorrection re: `Layou...
  • 83d500f [Fix #10734] Handle ClobberingError in Style/NestedTernaryOperator when t...
  • 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: test report for 4b2dc144

+------------------------------------------------------------------+
|                        behaviors summary                         |
+-------------+--------+--------+---------+-------+-------+--------+
|             | passed | failed | skipped | flaky | total | result |
+-------------+--------+--------+---------+-------+-------+--------+
| jobs        | 14     | 0      | 0       | 0     | 14    | ✅     |
| services    | 174    | 0      | 0       | 0     | 174   | ✅     |
| controllers | 25     | 0      | 0       | 0     | 25    | ✅     |
| models      | 3      | 0      | 0       | 0     | 3     | ✅     |
| system      | 10     | 0      | 0       | 0     | 10    | ✅     |
| tasks       | 8      | 0      | 0       | 0     | 8     | ✅     |
+-------------+--------+--------+---------+-------+-------+--------+
| Total       | 234    | 0      | 0       | 0     | 234   | ✅     |
+-------------+--------+--------+---------+-------+-------+--------+
Edited by George Koltsov

Merge request reports

Loading