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

[src/api] Update rubocop: 0.90.0 → 0.91.0 (major) #10157

Merged
merged 4 commits into from Sep 16, 2020

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Sep 16, 2020

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ rubocop (0.90.0 → 0.91.0) · Repo · Changelog

Release Notes

0.91.0

New features

  • New option --cache-root and support for the RUBOCOP_CACHE_ROOT environment variable. Both can be used to override the AllCops: CacheRootDirectory config, especially in a CI setting. (@sascha-wolf)
  • #8582: Add new Layout/BeginEndAlignment cop. (@koic)
  • #8699: Add new Lint/IdentityComparison cop. (@koic)
  • Add new Lint/UselessTimes cop. (@dvandersluis)
  • #8707: Add new Lint/ConstantDefinitionInBlock cop. (@eugeneius)

Bug fixes

  • #8627: Fix a false positive for Lint/DuplicateRequire when same feature argument but different require method. (@koic)
  • #8674: Fix an error for Layout/EmptyLineAfterMultilineCondition when conditional is at the top level. (@fatkodima)
  • #8658: Fix a false positive for Style/RedundantSelfAssignment when calling coercion methods. (@fatkodima)
  • #8669: Fix an offense creation for Lint/EmptyFile. (@fatkodima)
  • #8607: Fix a false positive for Lint/UnreachableLoop when conditional branch includes continue statement preceding break statement. (@fatkodima)
  • #8572: Fix a false positive for Style/RedundantParentheses when parentheses are used like method argument parentheses. (@koic)
  • #8630: Fix some false positives for Style/HashTransformKeys and Style/HashTransformValues when the receiver is an array. (@eugeneius)
  • #8653: Fix a false positive for Layout/DefEndAlignment when using refinements and private def. (@koic)
  • #8655: Fix a false positive for Style/ClassAndModuleChildren when using cbase class name. (@koic)
  • #8654: Fix a false positive for Style/SafeNavigation when checking foo&.empty? in a conditional. (@koic)
  • #8660: Fix a false positive for Style/ClassAndModuleChildren when using cbase module name. (@koic)
  • #8664: Fix a false positive for Naming/BinaryOperatorParameterName when naming multibyte character method name. (@koic)
  • #8604: Fix a false positive for Bundler/DuplicatedGem when gem is duplciated in condition. (@tejasbubane)
  • #8671: Fix an error for Style/ExplicitBlockArgument when using safe navigation method call. (@koic)
  • #8681: Fix an error for Style/HashAsLastArrayItem with no_braces for empty hash. (@fsateler)
  • #8682: Fix a positive for Style/HashTransformKeys and Style/HashTransformValues when the each_with_object hash is used in the transformed key or value. (@eugeneius)
  • #8688: Mark Style/GlobalStdStream as unsafe autocorrection. (@marcandre)
  • #8642: Fix a false negative for Style/SpaceInsideHashLiteralBraces when a correct empty hash precedes the incorrect hash. (@dvandersluis)
  • #8683: Make naming cops work with non-ascii characters. (@tejasbubane)
  • #8626: Fix false negatives for Lint/UselessMethodDefinition. (@marcandre)
  • #8698: Fix cache to avoid encoding exception. (@marcandre)
  • #8704: Fix an error for Lint/AmbiguousOperator when using safe navigation operator with a unary operator. (@koic)
  • #8661: Fix an incorrect auto-correct for Style/MultilineTernaryOperator when returning a multiline ternary operator expression. (@koic)
  • #8526: Fix a false positive for Style/CaseEquality cop when the receiver is not a camel cased constant. (@koic)
  • #8673: Fix the JSON parse error when specifying --format=json and --stdin options. (@koic)

Changes

  • #8470: Do not autocorrect Style/StringConcatenation when parts of the expression are too complex. (@dvandersluis)
  • #8561: Fix Lint/UselessMethodDefinition to not register an offense when method definition includes optional arguments. (@fatkodima)
  • #8617: Fix Style/HashAsLastArrayItem to not register an offense when all items in an array are hashes. (@dvandersluis)
  • #8500: Add in? to AllowedMethods for Lint/SafeNavigationChain cop. (@tejasbubane)
  • #8629: Fix the cache being reusable in CI by using crc32 to calculate file hashes rather than mtime, which changes each CI build. (@dvandersluis)
  • #8663: Fix multiple autocorrection bugs with Style/ClassMethodsDefinitions. (@dvandersluis)
  • #8621: Add helpful Infinite Loop error message. (@iSarCasm)

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu bot added the depfu PRs from our dependency update bot label Sep 16, 2020
@dmarcoux dmarcoux self-assigned this Sep 16, 2020
@dmarcoux
Copy link
Contributor

dmarcoux commented Sep 16, 2020

We hit two bugs in RuboCop. I filed an issue upstream:

The bug with Rails/UniqueValidationWithoutIndex was already addressed upstream. We just need to update rubocop-rails. We can rebase this PR once rubocop-rails is updated.

@dmarcoux dmarcoux force-pushed the depfu/update/srcapi/rubocop-0.91.0 branch from 4beafed to 3f424b1 Compare September 16, 2020 13:08
@dmarcoux
Copy link
Contributor

Rebased on master to have the rubocop-rails update.

@codecov
Copy link

codecov bot commented Sep 16, 2020

Codecov Report

Merging #10157 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #10157   +/-   ##
=======================================
  Coverage   90.96%   90.96%           
=======================================
  Files         570      570           
  Lines       21090    21090           
=======================================
  Hits        19184    19184           
  Misses       1906     1906           

@dmarcoux dmarcoux merged commit 84cda97 into master Sep 16, 2020
@dmarcoux dmarcoux deleted the depfu/update/srcapi/rubocop-0.91.0 branch September 16, 2020 14:04
@dmarcoux dmarcoux removed their assignment Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depfu PRs from our dependency update bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants