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.35.1 to 1.36.0 #441

Merged
merged 3 commits into from Sep 6, 2022

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Sep 5, 2022

Bumps rubocop from 1.35.1 to 1.36.0.

Release notes

Sourced from rubocop's releases.

RuboCop 1.36

New features

Bug fixes

  • #10958: Fix an infinite loop for Layout/SpaceInsideBlockBraces when EnforcedStyle is no_space and using multiline block. (@​ydah)
  • #10903: Skip forking off extra processes for parallel inspection when only a single file needs to be inspected. (@​wjwh)
  • #10919: Fix a huge performance regression between 1.32.0 and 1.33.0. (@​ydah)
  • #10951: Fix an autocorrection error for Lint/EmptyConditionalBody when some conditional branch is empty. (@​ydah)
  • #10927: Fix a false positive for Style/HashTransformKeys and Style/HashTransformValues when not using transformed block argument. (@​koic)
  • #10979: Fix a false positive for Style/RedundantParentheses when using parentheses with pin operator except for variables. (@​Tietew)
  • #10962: Fix a false positive for Lint/ShadowingOuterLocalVariable when conditional with if/elsif/else branches. (@​ydah)
  • #10969: Fix a false negative for AllowedPatterns of Lint/AmbiguousBlockAssociation when using a method chain. (@​jcalvert)
  • #10963: Fix a false positive for Layout/IndentationWidth when using aligned empty else in pattern matching. (@​koic)
  • #10975: Fix possible wrong autocorrection in namespace on Style/PerlBackrefs. (@​r7kamura)

Changes

  • #10928: Add more autocorrect support on Style/EachForSimpleLoop. (@​r7kamura)
  • #10960: Add as to AllowedNames in default configuration for Naming/MethodParameterName cop. (@​koic)
  • #10966: Add autocorrect support to Style/AccessModifierDeclarations. (@​r7kamura)
  • #10940: Add server mode status to -V option. (@​koic)
Changelog

Sourced from rubocop's changelog.

1.36.0 (2022-09-01)

New features

Bug fixes

  • #10958: Fix an infinite loop for Layout/SpaceInsideBlockBraces when EnforcedStyle is no_space and using multiline block. ([@​ydah][])
  • #10903: Skip forking off extra processes for parallel inspection when only a single file needs to be inspected. ([@​wjwh][])
  • #10919: Fix a huge performance regression between 1.32.0 and 1.33.0. ([@​ydah][])
  • #10951: Fix an autocorrection error for Lint/EmptyConditionalBody when some conditional branch is empty. ([@​ydah][])
  • #10927: Fix a false positive for Style/HashTransformKeys and Style/HashTransformValues when not using transformed block argument. ([@​koic][])
  • #10979: Fix a false positive for Style/RedundantParentheses when using parentheses with pin operator except for variables. ([@​Tietew][])
  • #10962: Fix a false positive for Lint/ShadowingOuterLocalVariable when conditional with if/elsif/else branches. ([@​ydah][])
  • #10969: Fix a false negative for AllowedPatterns of Lint/AmbiguousBlockAssociation when using a method chain. ([@​jcalvert][])
  • #10963: Fix a false positive for Layout/IndentationWidth when using aligned empty else in pattern matching. ([@​koic][])
  • #10975: Fix possible wrong autocorrection in namespace on Style/PerlBackrefs. ([@​r7kamura][])

Changes

  • #10928: Add more autocorrect support on Style/EachForSimpleLoop. ([@​r7kamura][])
  • #10960: Add as to AllowedNames in default configuration for Naming/MethodParameterName cop. ([@​koic][])
  • #10966: Add autocorrect support to Style/AccessModifierDeclarations. ([@​r7kamura][])
  • #10940: Add server mode status to -V option. ([@​koic][])
Commits
  • 3b3c5f5 Cut 1.36
  • ac98c75 Update Changelog
  • 78eb21e Add a spec for server mode
  • ca5b3c3 Merge pull request #10984 from r7kamura/feature/modifier-example
  • aad6aaa Improve singleton method example on Lint/UselessAccessModifier cop
  • 2fb4c3c Fix an error for rake prof:slow_cops
  • 65cec7c Merge pull request #10928 from r7kamura/feature/each
  • 3088078 Merge pull request #10981 from Tietew/fix_a_false_positive_for_style_redundan...
  • 0780cb5 Merge pull request #10932 from koic/use_official_jruby_image
  • 45403e3 [Fix #10979] Fix a false positive for Style/Style/RedundantParentheses
  • 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)

Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.35.1 to 1.36.0.
- [Release notes](https://github.com/rubocop/rubocop/releases)
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md)
- [Commits](rubocop/rubocop@v1.35.1...v1.36.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot requested a review from a team as a code owner September 5, 2022 17:12
@dependabot dependabot bot force-pushed the dependabot/bundler/rubocop-1.36.0 branch from 9cb1e43 to ae342e0 Compare September 5, 2022 17:12
@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Sep 5, 2022
@sambostock
Copy link
Contributor

@rafaelfranca we already have Style/CaseEquality enabled. What do you think about enabling the new AllowOnSelfClass option?

    bundle exec rake config:dump
@@ -2355,6 +2357,7 @@ Style/CaseEquality:
VersionAdded: '0.9'
VersionChanged: '0.89'
AllowOnConstant: true
AllowOnSelfClass: false
Copy link
Contributor

Choose a reason for hiding this comment

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

  • AllowOnConstant, which is enabled above, permits

    SomeConstant === object
  • AllowOnSelfClass if enabled, would permit

    self.class === object

@rafaelfranca
Copy link
Member

@rafaelfranca we already have Style/CaseEquality enabled. What do you think about enabling the new AllowOnSelfClass option?

Let's enable it.

@sambostock sambostock merged commit 81a80b3 into main Sep 6, 2022
@sambostock sambostock deleted the dependabot/bundler/rubocop-1.36.0 branch September 6, 2022 19:00
@shopify-shipit shopify-shipit bot temporarily deployed to rubygems September 12, 2022 21:54 Inactive
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 ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants