Upgrade rubocop to version 0.55.0
Created by: depfu[bot]
We've upgraded a dependency and all tests pass. \o/
| name | version specification | new version |
|---|---|---|
| rubocop | ~> 0.54.0 | 0.55.0 |
You should probably take a good look at this before merging this pull request, of course.
What changed?
✳ ️ rubocop ( → 0.55.0) · Repo · Changelog
Release Notes
From the Github release:
New features
-
#5753: Add new
Performance/UnneededSortcop. (@parkerfinch) - Add new
Lint/SafeNavigationConsistencycop. (@rrosenblum)
Bug fixes
-
#5759: Fix
Performance/RegexpMatchcop not correcting negated match operator. (@bdewater) -
#5726: Fix false positive for
:class_nameoption in Rails/InverseOf cop. (@bdewater) -
#5686: Fix a regression for
Style/SymbolArrayandStyle/WordArrayfor multiline Arrays. (@istateside) -
#5730: Stop
Rails/InverseOfcop allowinginverse_of: nilto opt-out. (@bdewater) -
#5561: Fix
Lint/ShadowedArgumentfalse positive with shorthand assignments. (@akhramov) -
#5403: Fix
Naming/HeredocDelimiterNamingblacklist patterns. (@mcfisch) -
#4298: Fix auto-correction of
Performance/RegexpMatchto produce code that safe guards against the receiver beingnil. (@rrosenblum) -
#5738: Make
Rails/HttpStatusignoring hash order to fix false negative. (@pocke) -
#5720: Fix false positive for
Style/EmptyLineAfterGuardClausewhen guard clause is after heredoc. (@koic) -
#5760: Fix incorrect offense location for
Style/EmptyLineAfterGuardClausewhen guard clause is after heredoc argument. (@koic) -
#5764: Fix
Style/Unpackfirstfalse positive ofunpack('h*').take(1). (@parkerfinch) -
#5766: Update
Style/FrozenStringLiteralCommentauto-correction to insert a new line between the comment and the code. (@rrosenblum) -
#5551: Fix
Lint/Voidnot detecting void context in blocks with single expression. (@Darhazer)
Changes
-
#5752: Add
String#delete_{prefix,suffix}to Lint/Void cop. (@bdewater) -
#5734: Add
by,on,inandatto allowed names ofNaming/UncommunicativeMethodParamNamecop in default config. (@AlexWayfer) -
#5666: Add spaces as an
EnforcedStyleoption toLayout/SpaceInsideParens, allowing you to enforce spaces inside of parentheses. (@joshuapinter) -
#4257: Allow specifying module name in
Metrics/BlockLength'sExcludedMethodsconfiguration option. (@akhramov) -
#4753: Add
IgnoredMethodsoption toStyle/MethodCallWithoutArgsParenthesescop. (@Darhazer) - #4517: Add option to allow trailing whitespaces inside heredoc strings. (@Darhazer)
-
#5652: Make
Style/OptionHashaware of implicit parameter passing to super. (@Wei-LiangChew) - #5451: When using --auto-gen-config, do not ouput offenses unless the --output-offenses flag is also passed. (@drewpterry)
Commits
See the full diff on Github. The new version differs by 53 commits:
Cut 0.55Fix the changelog[Fix #5451] When using --auto-gen-config, do not ouput offenses (#5727)Add new cop Performance/UnneededSort (#5753)New cop Lint/SafeNavigationConsistencyKill a redundant blank line[Fix #4517] Add `AllowInHeredoc` option to `TrailingWhitespace` cop (#5777)Address some small problems in SpaceInsideParensAdd spaces as EnforcedStyle to SpaceInsideParens (#5672)[Fix #5601] Improve the description of Style/ClassVars[Fix #5652] Make `Style/OptionHash` aware of implicit parameter passing to super[Fix #4257] Allow specifying modules in BlockLength's ExcludedMethods (#5544)Refactor checks to use the #heredoc? method[#4910] Add examples to Style/SingleLineBlockParams[#4910] Add examples to NestedTernaryOperator and OneLineConditional (#5774)[Fix #4753] Add IgnoredMethods option to `Style/MethodCallWithoutArgsParentheses` cop (#5779)[Fix #5551] `Lint/Void` not checking single expression blocks (#5778)[Fix #5766] Add a new line between the frozen string literal comment and code[Fix #5706] Fix a typo[Fix #5403] Make the heredoc delimiter pattern more precise (#5712)[Fix #5686] Fix first line spacing for symbol and word arrays with partial newlines (#5735)Fix `Performance/RegexpMatch` cop not correcting negated match operator[#4910] Add examples for `Layout/EndOfLine` copRemove backticks from EnforcedStyle of document[Fix #5763] Replace `nil` with `nil?` in NodePattern docRemove `take` check from Style/UnpackFirst cop (#5764)Move section of PR #5720 written in CHANGELOG.md[#4910] Add examples to Style/NegatedWhile (#5751)Revert "[Fix #5426] Make `Rails/InverseOf` accept `inverse_of: nil` to opt-out (#5430)"[#4910] Add examples for `Style/SpecialGlobalVars`Add `String#delete_{prefix,suffix}` to Lint/Void copFix incorrect offense for `Style/EmptyLineAfterGuardClause`CI against Ruby 2.4 and 2.5 on Appveyor[Fix #5685] Add information on Rails version to READMEFix false positive for `Style/EmptyLineAfterGuardClause`Teach Performance/{Start, End}With cops to look for `Regexp#match?`Extend docs for Rails/ReadWriteAttribute (#5731)[Fix #5738] Make `Rails/HttpStatus` ignoring hash order to fix false negative[Fix #5725] Add a heredoc example for Style/MutableConstant (#5732)Refine spec of `Bundler/OrderedGems`Remove `spec/support_cop_helper.rb` from the gemspecSimplify dynamic callbacks creation in Cop::Commissioner (#5723)Allow `on`, `in` and `at` as method parameters in default configAllow `by` as method parameter in default config[Fix #4298] Safe guard against nil receiver when correcting RegexpMatchModify tests to be easier to runFix false positive for `:class_name` option in Rails/InverseOf cop (#5726)Reduce test-queue workers in Travis CI to optimize build speedUse the latest Rubies on Travis CIRemove a duplicate entry in the CHANGELOGFix rack-version related flaky test[Fix #5561] Lint/ShadowedArgument shorthand assignment false positiveFix misspelling of Integer
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.