Loading
Upgrade rubocop to version 0.56.0
Created by: depfu[bot]
We've upgraded a dependency and all tests pass. \o/
| name | version specification | new version |
|---|---|---|
| rubocop | ~> 0.55.0 | 0.56.0 |
You should probably take a good look at this before merging this pull request, of course.
What changed?
✳️ rubocop ( → 0.56.0) · Repo · Changelog
Release Notes
From the Github release:
New features
-
#5848: Add new
Performance/InefficientHashSearchcop. (@JacobEvelyn) -
#5801: Add new
Rails/RefuteMethodscop. (@koic) -
#5805: Add new
Rails/AssertNotcop. (@composerinteralia) -
#4136: Allow more robust
Layout/ClosingParenthesisIndentationdetection including method chaining. (@jfelchner) -
#5699: Add
consistent_relative_to_receiverstyle option toLayout/FirstParameterIndentation. (@jfelchner) -
#5821: Support
AR::Migration#up_onlyforRails/ReversibleMigrationcop. (@koic) - #5800: Don't show a stracktrace for invalid command-line params. (@shanecav84)
-
#5845: Add new
Lint/ErbNewArgumentscop. (@koic) -
#5871: Add new
Lint/SplatKeywordArgumentscop. (@koic) -
#4247: Remove hard-coded file patterns and use only
Include,Excludeand the newRubyInterpretersparameters for file selection. (@jonas054)
Bug fixes
- Fix bug in
Style/EmptyMethodwhich concatenated the method name and first argument if no method def parentheses are used. (@thomasbrus) -
#5819: Fix
Rails/SaveBangwhen using negated if. (@Edouard-chin) -
#5286: Fix
Lint/SafeNavigationChainnot detecting chained operators after block. (@Darhazer) - Fix bug where
Lint/SafeNavigationConsistencyregisters multiple offenses for the same method call. (@rrosenblum) -
#5713: Fix
Style/CommentAnnotationreporting only the first of multiple consecutive offending lines. (@svendittmer) -
#5791: Fix exception in
Lint/SafeNavigationConsistencywhen there is code around the condition. (@rrosenblum) -
#5784: Fix a false positive for
Rails/HasManyOrHasOneDependentwhen using nestedwith_options. (@koic) -
#4666:
--stdinalways treats input as Ruby source irregardless of filename. (@PointlessOne) - Fix auto-correction for
Style/MethodCallWithArgsParenthesesadding extra parentheses if the method argument was already parenthesized. (@dvandersluis) -
#5668: Fix an issue where files with unknown extensions, listed in
AllCops/Includewere not inspected when passing the file name as an option. (@drenmi) -
#5809: Fix exception
Lint/PercentStringArrayandLint/PercentSymbolArraywhen the inspected file is binary encoded. (@akhramov) -
#5840: Do not register an offense for methods that
nilresponds to inLint/SafeNavigationConsistency. (@rrosenblum) -
#5862: Fix an incorrect auto-correct for
Lint/LiteralInInterpolationif contains numbers. (@koic) -
#5868: Fix
Rails/CreateTableWithTimestampswhen using hash options. (@wata727) -
#5708: Fix exception in
Lint/UnneededCopEnableDirectivefor instruction '# rubocop:enable all'. (@balbesina) - Fix auto-correction of
Rails/HttpPositionalArgumnetsto usesessioninstead ofheader. (@rrosenblum)
Changes
- Split
Style/MethodMissinginto two cops,Style/MethodMissingSuperandStyle/MissingRespondToMissing. (@rrosenblum) -
#5757: Add
AllowInMultilineConditionsoption toStyle/ParenthesesAroundConditioncop. (@Darhazer) -
#5806: Fix
Layout/SpaceInsideReferenceBracketswhen assigning a reference bracket to a reference bracket. (@joshuapinter) -
#5082: Allow caching together with
--auto-correct. (@jonas054) - Add
try!to the list of whitelisted methods forLint/SafeNavigationChainandStyle/SafeNavigation. (@rrosenblum) -
#5886: Move
Style/EmptyLineAfterGuardClausecop toLayoutdepartment. (@koic)
Commits
See the full diff on Github. The new version differs by 60 commits:
Cut 0.56Fix `Rails/CreateTableWithTimestamps` when using hash options (#5868)[Fix #5708] Handle comment `rubocop:enable all` bug (#5810)Fix Style/MethodCallWithArgsParentheses autocorrect adding extra parens (#5825)Move `Style/EmptyLineAfterGuardClause` cop to `Layout`Add consistent_relative_to_receiver to FirstParameterIndentation (#5699)Fix Style/CommandLiteral autocorrection when %x is not configuredCleanup HttpPositionalArguments testsFix auto-correction of HttpPositionalArgs to use session instead of headerAdd new `Lint/SplatKeywordArguments` cop (#5871)Add spec for JSONLoad autocorrectFix bug in the examples of NodePattern documentationMake it easier to find writing custom cops guideAdd more tests for Lint/DuplicateMethodsRemove unused method from NestedPercentLiteralRemove unneeded `comment_on_line?` check[Fix #4247] Make all file inclusion lists configurableClarify GitHub account displayed by `rake new_cop`Correct Layout/EmptyLineBetweenDefs docs (#5852)Fix documentation for Rails/Present cop[Fix #5862] Fix incorrect autocorrect `Lint/LiteralInInterpolation`Move some cop options to config/default.ymlDon't concatenate method name and arguments in empty methods without method def parentheses[Fix #5082] Allow --auto-correct to use the cache when possible (#5857)Whitelist try! from safe navigation cops[Fix #5840] ignore methods that nil responds to in SafeNavigationConsistencyAdd Performance/InefficientHashSearch cop (#5848)[Fix #5800] Replace backtrace with --help suggestion for invalid options (#5816)Fix documentation typo[Fix #5809] Encoding bug in Lint/PercentStringArrayAdd new `Lint/ErbNewArguments` cop[Fix #5668] Fix an issue where included files weren't inspectedFix issue when reference brackets are assigned by reference brackets.Use expect_offense helpersRemove duplicate specsReduce line length (rubocop failure)Use faster string concatenationMemoize Dir.pwdUse incremental digesterUse shorter config string in digest[Fix #5819] Handle negated conditions in Rails/SaveBang (#5820)[Fix #5821] Support `AR::Migration#up_only` for `Rails/ReversibleMigration`CI against JRuby 9.1.17.0[Fix #5757] Add option to allow parentheses around multiline conditions[Fix #5789][Fix #4666] Fix STDIN filename handlingSplit Style/MethodMissing into Style/MethodMissingSuper and Style/MissingRespondToMissing (#5811)Add new `Rails/AssertNot` cop (#5805)Style: Make whitespace changesChange ClosingParenthesisIndentation error messages to be more preciseChange ClosingParenthesisIndentation to be relative to parameters[Fix #5713] Make `Style/CommentAnnotation` aware of inline comments (#5780)Add new `Rails/RefuteMethods` copFix broken link in Node Pattern docFix "No newline at end of file" of relnotesUpdate the copyright years in the manual[Fix #5784] Fix false positive for `Rails/HasManyOrHasOneDependent`[Fix #5791] Fix NoMethodError in SafeNavigationConsistency when there is code around the conditionRegister a single offense per method in SafeNavigationConsistency[Fix #5286] `Lint/SafeNavigationChain` not detecting chained operators after block.Improve description and examples of Performance/UnneededSort
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.