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: 1.4.2 → 1.5.2 (minor) #10535

Merged
merged 3 commits into from
Dec 7, 2020

Conversation

depfu[bot]
Copy link
Contributor

@depfu depfu bot commented Dec 5, 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 (1.4.2 → 1.5.2) · Repo · Changelog

Release Notes

1.5.2

Bug fixes

  • #9152: Fix an incorrect auto-correct for Style/SoleNestedConditional when nested || operator modifier condition. (@koic)
  • #9161: Fix a false positive for Layout/HeredocArgumentClosingParenthesis when using subsequence closing parentheses in the same line. (@koic)
  • #9151: Fix SuggestExtensions to not suggest extensions that are installed but not direct dependencies. (@dvandersluis)
  • #8985: Fix Style/StringConcatenation autocorrect generating invalid ruby. (@tejasbubane)
  • #9155: Fix a false positive for Layout/MultilineMethodCallIndentation when multiline method chain has expected indent width and the method is preceded by splat for EnforcedStyle: indented_relative_to_receiver. (@koic)

Changes

1.5.1

Bug fixes

  • #8684: Fix an error for Lint/InterpolationCheck cop. (@tejasbubane)
  • #9145: Fix issues with SuggestExtensions when bundler is not available, or when there is no gemfile. (@dvandersluis)
  • #9140: Fix an error for Layout/EmptyLinesAroundArguments when multiline style argument for method call without selector. (@koic)
  • #9136: Fix AllowedIdentifiers in Naming/VariableNumber to include variable assignments. (@PhilCoggins)

1.5.0

New features

  • #9112: Add new cop Lint/UnexpectedBlockArity. (@dvandersluis)
  • #9010: Metrics/ParameterLists supports MaxOptionalParameters config parameter. (@fatkodima)
  • #9114: Support auto-correction for Style/SoleNestedConditional. (@koic)
  • #8564: Metrics/AbcSize: Add optional discount for repeated "attributes". (@marcandre)

Bug fixes

  • #8820: Fixes IfWithSemicolon autocorrection when elsif is present. (@adrian-rivera, @dvandersluis)
  • #9113: Fix a false positive for Style/MethodCallWithoutArgsParentheses when assigning to a default argument with the same name. (@koic)
  • #9115: Fix a false positive for Style/FirstArgumentIndentation when argument has expected indent width and the method is preceded by splat for EnforcedStyle: consistent_relative_to_receiver. (@koic)
  • #9128: Fix an incorrect auto-correct for Style/ClassAndModuleChildren when namespace is defined as a class in the same file. (@koic)
  • #9105: Fix an incorrect auto-correct for Style/RedundantCondition when using operator method in else. (@koic)
  • #9096: Fix #9095 use merged_config instead of config for pending new cop check. (@ThomasKoppensteiner)
  • #8053: Fix an incorrect auto-correct for Style/AndOr when or precedes and. (@koic)
  • #9097: Fix a false positive for Layout/EmptyLinesAroundArguments when blank line is inserted between method with arguments and receiver. (@koic)

Changes

  • #9122: Added tip message if any gems are loaded that have RuboCop extensions. (@dvandersluis)
  • #9104: Preset some stdlib method names for Naming/VariableNumber. (@koic)
  • #9127: Update Style/SymbolProc to be aware of numblocks. (@dvandersluis)
  • #9102: Upgrade regexp_parser to 2.0. (@knu)
  • #9100: Update ConfigObsoletion so that parameters can be deprecated but still accepted. (@dvandersluis)
  • #9108: Update Lint/UnmodifiedReduceAccumulator to handle numblocks and more than 2 arguments. (@dvandersluis)
  • #9098: Update Metrics/BlockLength and Metrics/MethodLength to use IgnoredMethods instead of ExcludedMethods in configuration. The previous key is retained for backwards compatibility. (@dvandersluis)
  • #9098: Update IgnoredMethods so that every cop that uses it will accept both strings and regexes in the configuration. (@dvandersluis)

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

Commits

See the full diff on Github. The new version differs by 56 commits:


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 Dec 5, 2020
@@ -1377,6 +1378,7 @@ Style/OptionalBooleanParameter:
- 'lib/xpath_engine.rb'

# Offense count: 54
# Cop supports --auto-correct.
Copy link
Member

Choose a reason for hiding this comment

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

Trying to fix these offenses with --auto-correct resulted in hitting this issue: rubocop/rubocop#9160

Therefore, we don't correct these offenses with --auto-correct, yet.

@codecov
Copy link

codecov bot commented Dec 7, 2020

Codecov Report

Merging #10535 (075e097) into master (2352364) will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #10535      +/-   ##
==========================================
+ Coverage   91.04%   91.08%   +0.03%     
==========================================
  Files         581      581              
  Lines       21452    21452              
==========================================
+ Hits        19532    19539       +7     
+ Misses       1920     1913       -7     

@dmarcoux dmarcoux merged commit 1134601 into master Dec 7, 2020
@dmarcoux dmarcoux deleted the depfu/update/srcapi/rubocop-1.5.2 branch December 7, 2020 10:48
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