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

Update rubocop requirement from = 1.38.0 to = 1.40.0 #2650

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 8, 2022

Updates the requirements on rubocop to permit the latest version.

Release notes

Sourced from rubocop's releases.

RuboCop 1.40

New features

Bug fixes

  • #5251: Fix loading of configuration in multi-file edge case. (@​NobodysNightmare)
  • #11192: Fix a false positive for Lint/ParenthesesAsGroupedExpression when using a block argument. (@​ydah)
  • #11143: Fix RedundantCopDisableDirective errors when encountering several department comments. (@​isarcasm)
  • #11230: Fix an incorrect autocorrect for Lint/SafeNavigationChain when using safe navigation with [] operator followed by method chain. (@​koic)
  • #11181: Fix pattern to match .tool-versions files that specify multiple runtimes. (@​noelblaschke)
  • #11239: Fix an incorrect autocorrect for Style/GuardClause when using heredoc as an argument of raise in branch body. (@​koic)
  • #11182: Fix an incorrect autocorrect for EnforcedShorthandSyntax: always of Style/HashSyntax with Style/IfUnlessModifier when using Ruby 3.1. (@​koic)
  • #11184: Fix an error for Lint/ShadowingOuterLocalVariable when a block local variable has same name as an outer until scope variable. (@​koic)
  • #11198: Fix an error for Lint/EmptyConditionalBody when one using line if/;/end without then boby. (@​koic)
  • #11196: Fix a false positive for Style/GuardClause when using raise in then body of if..elsif..end form. (@​koic)
  • #11213: Support redundant department disable in scope of Lint/RedundantCopDisableDirective cop. (@​isarcasm)
  • #11200: Fix an incorrect autocorrect for Layout/MultilineMethodCallBraceLayout when using method chain for heredoc argument in multiline literal brace layout. (@​koic)
  • #11190: Fix an error for Style/IfWithSemicolon when using one line if/;/end without then boby. (@​koic)
  • #11244: Fix a false negative for Style/RedundantReturn when dynamic define methods. (@​ydah)

Changes

  • #11218: Update severity of Bundler/DuplicatedGem, Bundler/InsecureProtocolSource, Gemspec/DeprecatedAttributeAssignment, Gemspec/DuplicatedAssignment, Gemspec/RequireMFA, Gemspec/RequiredRubyVersion, and Gemspec/RubyVersionGlobalsUsage cops to warning. (@​koic)
  • #11222: Make Style/RedundantArgument aware of Array#sum. (@​koic)
  • #11070: Add ability to count method calls as one line to code length related Metric cops. (@​fatkodima)
  • #11226: Make Lint/Void aware of used lambda and proc in void context. (@​koic)
  • #11205: Change Lint/InterpolationCheck from Safe: false to SafeAutoCorrect: false. (@​r7kamura)
  • #11212: Make Lint/DeprecatedConstants aware of deprecated Struct::Group and Struct::Passwd classes. (@​koic)
  • #11236: Remove respond_to from default value of AllowedMethods for Style/SymbolProc. (@​koic)
  • #11185: Make Style/HashSyntax aware of without parentheses call expr follows. (@​koic)
  • #11203: Support multiple arguments on Lint/SendWithMixinArgument. (@​r7kamura)
  • #11229: Add cc to AllowedNames of MethodParameterName cop. (@​tjschuck)
  • #11116: Handle ternaries in Style/SafeNavigation. (@​fatkodima)

... (truncated)

Changelog

Sourced from rubocop's changelog.

1.40.0 (2022-12-08)

New features

  • #11179: Add Style/RedundantConstantBase cop. ([@​r7kamura][])
  • #11205: Add --[no-]auto-gen-enforced-style CLI option. ([@​ydah][])
  • #11224: Add Style/RequireOrder cop. ([@​r7kamura][])
  • #11219: Make Style/SelectByRegexp aware of !~ method. ([@​koic][])
  • #11224: Add new cop Style/ArrayIntersect which replaces (array1 & array2).any? with array1.intersect?(array2), method Array#intersect? was added in ruby 3.1. ([@​KirIgor][])
  • #11211: Add autocorrect for Lint/AssignmentInCondition. ([@​r7kamura][])

Bug fixes

  • #5251: Fix loading of configuration in multi-file edge case. ([@​NobodysNightmare][])
  • #11192: Fix a false positive for Lint/ParenthesesAsGroupedExpression when using a block argument. ([@​ydah][])
  • #11143: Fix RedundantCopDisableDirective errors when encountering several department comments. ([@​isarcasm][])
  • #11230: Fix an incorrect autocorrect for Lint/SafeNavigationChain when using safe navigation with [] operator followed by method chain. ([@​koic][])
  • #11181: Fix pattern to match .tool-versions files that specify multiple runtimes. ([@​noelblaschke][])
  • #11239: Fix an incorrect autocorrect for Style/GuardClause when using heredoc as an argument of raise in branch body. ([@​koic][])
  • #11182: Fix an incorrect autocorrect for EnforcedShorthandSyntax: always of Style/HashSyntax with Style/IfUnlessModifier when using Ruby 3.1. ([@​koic][])
  • #11184: Fix an error for Lint/ShadowingOuterLocalVariable when a block local variable has same name as an outer until scope variable. ([@​koic][])
  • #11198: Fix an error for Lint/EmptyConditionalBody when one using line if/;/end without then boby. ([@​koic][])
  • #11196: Fix a false positive for Style/GuardClause when using raise in then body of if..elsif..end form. ([@​koic][])
  • #11213: Support redundant department disable in scope of Lint/RedundantCopDisableDirective cop. ([@​isarcasm][])
  • #11200: Fix an incorrect autocorrect for Layout/MultilineMethodCallBraceLayout when using method chain for heredoc argument in multiline literal brace layout. ([@​koic][])
  • #11190: Fix an error for Style/IfWithSemicolon when using one line if/;/end without then boby. ([@​koic][])
  • #11244: Fix a false negative for Style/RedundantReturn when dynamic define methods. ([@​ydah][])

Changes

  • #11218: Update severity of Bundler/DuplicatedGem, Bundler/InsecureProtocolSource, Gemspec/DeprecatedAttributeAssignment, Gemspec/DuplicatedAssignment, Gemspec/RequireMFA, Gemspec/RequiredRubyVersion, and Gemspec/RubyVersionGlobalsUsage cops to warning. ([@​koic][])
  • #11222: Make Style/RedundantArgument aware of Array#sum. ([@​koic][])
  • #11070: Add ability to count method calls as one line to code length related Metric cops. ([@​fatkodima][])
  • #11226: Make Lint/Void aware of used lambda and proc in void context. ([@​koic][])
  • #11205: Change Lint/InterpolationCheck from Safe: false to SafeAutoCorrect: false. ([@​r7kamura][])
  • #11212: Make Lint/DeprecatedConstants aware of deprecated Struct::Group and Struct::Passwd classes. ([@​koic][])
  • #11236: Remove respond_to from default value of AllowedMethods for Style/SymbolProc. ([@​koic][])
  • #11185: Make Style/HashSyntax aware of without parentheses call expr follows. ([@​koic][])
  • #11203: Support multiple arguments on Lint/SendWithMixinArgument. ([@​r7kamura][])
  • #11229: Add cc to AllowedNames of MethodParameterName cop. ([@​tjschuck][])
  • #11116: Handle ternaries in Style/SafeNavigation. ([@​fatkodima][])

1.39.0 (2022-11-14)

New features

Bug fixes

... (truncated)

Commits

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 update a dependency file label Dec 8, 2022
Updates the requirements on [rubocop](https://github.com/rubocop/rubocop) to permit the latest version.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.38.0...v1.40.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/bundler/rubocop-1.40.0 branch from 76bbe10 to d78aedc Compare December 15, 2022 00:31
@stefannibrasil
Copy link
Contributor

Closing this to fix the issues manually.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 15, 2022

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@stefannibrasil stefannibrasil deleted the dependabot/bundler/rubocop-1.40.0 branch December 15, 2022 03:47
stefannibrasil pushed a commit to hexdevs/faker that referenced this pull request Dec 15, 2022
[dependabot opened a PR](faker-ruby#2650)
to bump rubocop's version but it failed CI because there were some
test files that needed to be corrected.
stefannibrasil pushed a commit that referenced this pull request Dec 20, 2022
…fense (#2656)

* BUmp rubocop to 1.40.0

* Fix Style/RedundantRegexpEscape RuboCop offense

[dependabot opened a PR](#2650)
to bump rubocop's version but it failed CI because there were some
test files that needed to be corrected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant