Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump rubocop from 1.18.4 to 1.35.1 #4921

Merged
merged 5 commits into from
Oct 19, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 24, 2022

Bumps rubocop from 1.18.4 to 1.35.1.

Release notes

Sourced from rubocop's releases.

RuboCop 1.35.1

Bug fixes

  • #10926: Make Style/SafeNavigation aware of a redundant nil check. (@​koic)
  • #10944: Fix an incorrect autocorrect for Lint/LiteralInInterpolation when using "#{nil}". (@​koic)
  • #10921: Fix an error when ERB pre-processing of the configuration file. (@​koic)
  • #10936: Fix an error for Lint/NonAtomicFileOperation when using FileTest.exist? as a condition for elsif. (@​koic)
  • #10920: Fix an incorrect autocorrect for Style/SoleNestedConditional when using nested conditional and branch contains a comment. (@​koic)
  • #10939: Fix an error for Style/Next when line break before condition. (@​koic)

RuboCop 1.35

New features

Bug fixes

  • #10899: Fix an error for Lint/ShadowingOuterLocalVariable when the same variable name as a block variable is used in return value assignment of if. (@​koic)
  • #10916: Fix an error when .rubocop.yml is empty. (@​koic)
  • #10915: Fix numblock support to Layout/BlockAlignment, Layout/BlockEndNewline, Layout/EmptyLinesAroundAccessModifier, Layout/EmptyLinesAroundBlockBody, Layout/IndentationWidth, Layout/LineLength, Layout/MultilineBlockLayout, Layout/SpaceBeforeBlockBraces, Lint/NextWithoutAccumulator, Lint/NonDeterministicRequireOrder, Lint/RedundantWithIndex, Lint/RedundantWithObject, Lint/UnreachableLoop, Lint/UselessAccessModifier, Lint/Void, Metrics/AbcSize, Metrics/CyclomaticComplexity, Style/CollectionMethods, Style/CombinableLoops, Style/EachWithObject, Style/For, Style/HashEachMethods, Style/InverseMethods, Style/MethodCalledOnDoEndBlock, Style/MultilineBlockChain, Style/Next, Style/ObjectThen, Style/Proc, Style/RedundantBegin, Style/RedundantSelf, Style/RedundantSortBy and Style/TopLevelMethodDefinition. (@​gsamokovarov)
  • #10895: Fix incorrect autocomplete in Style/RedundantParentheses when a heredoc is used in an array. (@​dvandersluis)
  • #10909: Fix loading behavior on running without bundle exec. (@​r7kamura)
  • #10913: Make Style/ArgumentsForwarding aware of anonymous block argument. (@​koic)
  • #10911: Fix Style/ClassMethodsDefinitions for non-self receivers. (@​sambostock)

Changes

RuboCop 1.34.1

Bug fixes

  • #10893: Fix an error when running rubocop without bundle exec. (@​koic)

RuboCop 1.34

New features

... (truncated)

Changelog

Sourced from rubocop's changelog.

1.35.1 (2022-08-22)

Bug fixes

  • #10926: Make Style/SafeNavigation aware of a redundant nil check. ([@​koic][])
  • #10944: Fix an incorrect autocorrect for Lint/LiteralInInterpolation when using "#{nil}". ([@​koic][])
  • #10921: Fix an error when ERB pre-processing of the configuration file. ([@​koic][])
  • #10936: Fix an error for Lint/NonAtomicFileOperation when using FileTest.exist? as a condition for elsif. ([@​koic][])
  • #10920: Fix an incorrect autocorrect for Style/SoleNestedConditional when using nested conditional and branch contains a comment. ([@​koic][])
  • #10939: Fix an error for Style/Next when line break before condition. ([@​koic][])

1.35.0 (2022-08-12)

New features

Bug fixes

  • #10899: Fix an error for Lint/ShadowingOuterLocalVariable when the same variable name as a block variable is used in return value assignment of if. ([@​koic][])
  • #10916: Fix an error when .rubocop.yml is empty. ([@​koic][])
  • #10915: Fix numblock support to Layout/BlockAlignment, Layout/BlockEndNewline, Layout/EmptyLinesAroundAccessModifier, Layout/EmptyLinesAroundBlockBody, Layout/IndentationWidth, Layout/LineLength, Layout/MultilineBlockLayout, Layout/SpaceBeforeBlockBraces, Lint/NextWithoutAccumulator, Lint/NonDeterministicRequireOrder, Lint/RedundantWithIndex, Lint/RedundantWithObject, Lint/UnreachableLoop, Lint/UselessAccessModifier, Lint/Void, Metrics/AbcSize, Metrics/CyclomaticComplexity, Style/CollectionMethods, Style/CombinableLoops, Style/EachWithObject, Style/For, Style/HashEachMethods, Style/InverseMethods, Style/MethodCalledOnDoEndBlock, Style/MultilineBlockChain, Style/Next, Style/ObjectThen, Style/Proc, Style/RedundantBegin, Style/RedundantSelf, Style/RedundantSortBy and Style/TopLevelMethodDefinition. ([@​gsamokovarov][])
  • #10895: Fix incorrect autocomplete in Style/RedundantParentheses when a heredoc is used in an array. ([@​dvandersluis][])
  • #10909: Fix loading behavior on running without bundle exec. ([@​r7kamura][])
  • #10913: Make Style/ArgumentsForwarding aware of anonymous block argument. ([@​koic][])
  • #10911: Fix Style/ClassMethodsDefinitions for non-self receivers. ([@​sambostock][])

Changes

1.34.1 (2022-08-09)

Bug fixes

  • #10893: Fix an error when running rubocop without bundle exec. ([@​koic][])

1.34.0 (2022-08-09)

New features

Bug fixes

  • #10552: Require RuboCop AST 1.20.0+ to fix a false positive for Lint/OutOfRangeRegexpRef when using fixed-encoding regopt. ([@​koic][])
  • #10512: Fix a false positive for Lint/ShadowingOuterLocalVariable conditional statement and block variable. ([@​ydah][])
  • #10864: min and max results in false positives for Style/SymbolProc similarly to select and reject. ([@​mollerhoj][])
  • #10846: Fix a false negative for Style/DoubleNegation when there is a hash or an array at return location of method. ([@​nobuyo][])

... (truncated)

Commits
  • 9439334 Cut 1.35.1
  • a06806d Update Changelog
  • 1597468 [Fix #10939] Fix an error for Style/Next
  • e99bc6c Merge pull request #10945 from koic/fix_an_incorrect_autocorrect_for_lint_lit...
  • 0048f70 Merge pull request #10946 from fatkodima/safe-navigation-negated
  • 1c0e98d Fix Style/SafeNavigation for negated method call with a safe navigation
  • b69ca43 [Fix #10944] Fix an incorrect autocorrect for Lint/LiteralInInterpolation
  • dc09aae Make InternalAffairs/SingleLineComparison aware of negative comparison
  • 23a3924 Merge pull request #10941 from fatkodima/fix-prof-slow_cops
  • bd8a7ca Fix rake prof:slow_cops to return correct results
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added the dependencies Pull requests that updates a dependency label Aug 24, 2022
@javierm javierm self-assigned this Aug 25, 2022
@javierm javierm force-pushed the dependabot/bundler/master/rubocop-1.35.1 branch 2 times, most recently from a91b691 to 2452d4a Compare August 25, 2022 21:16
@@ -2,23 +2,23 @@
Geozone.create!(name: I18n.t("seeds.geozones.north_district"),
external_code: "001", census_code: "01",
html_map_coordinates: "30,139,45,153,77,148,107,165,138,201,146,218,186,198,216,"\
"196,233,203,240,215,283,194,329,185,377,184,388,165,369,126,333,113,334,84,320,"\
"66,286,73,258,65,265,57,249,47,207,58,159,84,108,85,72,101,51,114")
"196,233,203,240,215,283,194,329,185,377,184,388,165,369,126,333,113,334,84,320,"\

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [122/110] (https://rubystyle.guide#max-line-length)

"31,372,52,396,64,432,89,453,116,432,149,419,162,412,165,377,172,357,189,352,228,"\
"327,246,313,262,297,234,291,210,284,193,284,176,294,158,303,154,310,146,289,140,"\
"268,138,246,135,236,139,222,151,214,136,197,120,179,99,159,85,149,65,149,56,149")
"31,372,52,396,64,432,89,453,116,432,149,419,162,412,165,377,172,357,189,352,228,"\

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [123/110] (https://rubystyle.guide#max-line-length)

"327,246,313,262,297,234,291,210,284,193,284,176,294,158,303,154,310,146,289,140,"\
"268,138,246,135,236,139,222,151,214,136,197,120,179,99,159,85,149,65,149,56,149")
"31,372,52,396,64,432,89,453,116,432,149,419,162,412,165,377,172,357,189,352,228,"\
"327,246,313,262,297,234,291,210,284,193,284,176,294,158,303,154,310,146,289,140,"\

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [123/110] (https://rubystyle.guide#max-line-length)

"268,138,246,135,236,139,222,151,214,136,197,120,179,99,159,85,149,65,149,56,149")
"31,372,52,396,64,432,89,453,116,432,149,419,162,412,165,377,172,357,189,352,228,"\
"327,246,313,262,297,234,291,210,284,193,284,176,294,158,303,154,310,146,289,140,"\
"268,138,246,135,236,139,222,151,214,136,197,120,179,99,159,85,149,65,149,56,149")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [122/110] (https://rubystyle.guide#max-line-length)

"250,409,283,390,298,369,344,363,351,334,356,296,361,267,376,245,378,185,327,188,"\
"281,195,239,216,245,221,245,232,261,244,281,238,300,242,304,251,285,262,278,277,"\
"267,294,249,312,219,333,198,346,184,353")
"250,409,283,390,298,369,344,363,351,334,356,296,361,267,376,245,378,185,327,188,"\

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [123/110] (https://rubystyle.guide#max-line-length)

"281,195,239,216,245,221,245,232,261,244,281,238,300,242,304,251,285,262,278,277,"\
"267,294,249,312,219,333,198,346,184,353")
"250,409,283,390,298,369,344,363,351,334,356,296,361,267,376,245,378,185,327,188,"\
"281,195,239,216,245,221,245,232,261,244,281,238,300,242,304,251,285,262,278,277,"\

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [123/110] (https://rubystyle.guide#max-line-length)

Geozone.create!(name: I18n.t("seeds.geozones.central_district"),
external_code: "004", census_code: "04",
html_map_coordinates: "152,308,137,258,133,235,147,216,152,214,186,194,210,196,"\
"228,202,240,216,241,232,263,243,293,241,301,245,302,254,286,265,274,278,267,296,"\
"243,293,226,289,209,285,195,283,177,297")
"228,202,240,216,241,232,263,243,293,241,301,245,302,254,286,265,274,278,267,296,"\

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Layout/LineLength: Line is too long. [123/110] (https://rubystyle.guide#max-line-length)

@javierm javierm changed the base branch from master to reversible_migration_cop August 25, 2022 21:51
Base automatically changed from reversible_migration_cop to master August 26, 2022 12:58
@javierm javierm removed their assignment Aug 26, 2022
@javierm javierm self-assigned this Sep 9, 2022
@javierm javierm force-pushed the dependabot/bundler/master/rubocop-1.35.1 branch from 2452d4a to dac4826 Compare September 9, 2022 01:30
@javierm javierm force-pushed the dependabot/bundler/master/rubocop-1.35.1 branch from dac4826 to 236019a Compare October 19, 2022 00:16
@taitus taitus self-assigned this Oct 19, 2022
dependabot bot and others added 5 commits October 19, 2022 14:26
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.18.4 to 1.35.1.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.18.4...v1.35.1)

---
updated-dependencies:
- dependency-name: rubocop
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
This rule was added in Rubocop 1.18.0, but we didn't add it back then.
Since we're applying it most of the time, we might as well be consistent
and apply it everywhere.
They were added in Rubocop 1.24.0.

Even if we were already applying FileRead everywhere, this is something
we've manually fixed in the past. Another reason to add it is that these
rules are deeply related.
This rule was added in Rubocop 1.24.0. Applying it slightly simplifies
the code.
This rule was added in Rubocop 1.31.0; it follows the principles
mentioned in the Ruby Style Guide [1].

https://rubystyle.guide/#atomic-file-operations
@javierm javierm force-pushed the dependabot/bundler/master/rubocop-1.35.1 branch from 236019a to 0d4a032 Compare October 19, 2022 12:27
@javierm javierm merged commit f0badb8 into master Oct 19, 2022
@javierm javierm deleted the dependabot/bundler/master/rubocop-1.35.1 branch October 19, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that updates a dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants