chore(deps): update dependency rubocop to v1.91.0 - #239
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.90.0→1.91.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
rubocop/rubocop (rubocop)
v1.91.0Compare Source
New features
AllCops: FailLevel, the configuration equivalent of--fail-level. ([@bbatsov][])AllowedDirectivesoption toStyle/DisableCopsWithinSourceCodeDirective, exempting directive kinds such as generatedrubocop:todocomments. ([@bbatsov][])--changedto inspect only the files git says changed. ([@bbatsov][])--diffto preview autocorrection without writing files. ([@bbatsov][])Lint/MisplacedMagicCommentcop to flag magic comments in positions where Ruby ignores them. ([@bbatsov][])rubocop:enable-nextdirective to re-enable cops for the next statement only. ([@bbatsov][])rubocop:nextdirective, combiningpush-style+/-arguments withdisable-next's statement scope. ([@bbatsov][])Previewsection with the defaults it is expected to adopt in the next major release, applied underPreview. ([@bbatsov][])Bug fixes
Style/RedundantRegexpCharacterClasswith\8/\9. ([@bbatsov][])Layout/ElseAlignmentwhenelseis used withrescuein aclass,module, or singleton class body. ([@viralpraxis][])Layout/HashAlignmentwhen a hash value starts on the line below its key. ([@viralpraxis][])Layout/HashAlignmentwhen the first pair of a hash omits its value, and an incorrect autocorrection when a later pair does. ([@viralpraxis][])Layout/IndentationWidthon under-indented code with tab indentation. ([@Starlexxx][])Lint/RedundantCopDisableDirectivewhen a file contains more than onerubocop:push/rubocop:poppair. ([@koic][])Style/AccessModifierDeclarationswhen a body repeats the same access modifier. ([@viralpraxis][])Style/AccessModifierDeclarationswithEnforcedStyle: inlinewhen an access modifier is the body of anifwithout anelsebranch. ([@viralpraxis][])Style/ConstantVisibilitywhen a visibility declaration splats anything other than an array literal, e.g.private_constant(*constants(false)). ([@viralpraxis][])Style/DocumentationMethodwhen an inlinemodule_function/ruby2_keywordsdefis preceded by another argument. ([@viralpraxis][])Style/EndlessMethodwhen a method definition is nested inside another method definition. ([@viralpraxis][])Style/FloatDivisionwhen usingEnforcedStyle: fdivand one operand of a float division is itself a parenthesized float division. ([@viralpraxis][])Style/HashLookupMethodwhen the looked-up key is itself a hash lookup. ([@viralpraxis][])Style/HashSyntaxwhen hash rockets are enforced and a hash value repeats its key. ([@viralpraxis][])Lint/LiteralAsConditionwhen the other operand is a parenthesizedreturn. ([@Starlexxx][])Lint/ParenthesesAsGroupedExpressionwhen the parentheses containand,or,not, or a modifier expression. ([@Starlexxx][])Naming/BlockForwardingwithStyle/MethodDefParentheses. ([@Starlexxx][])Style/EndlessMethodwhen usingEnforcedStyle: require_alwaysand the method body has arescueorensureclause. ([@viralpraxis][])Style/FloatDivisionwhen usingEnforcedStyle: fdivand the divisor is a method call with parenthesized arguments. ([@viralpraxis][])Style/Forwhen usingEnforcedStyle: forand the block body has arescueorensureclause. ([@viralpraxis][])Style/GuardClausewithStyle/MissingElse. ([@Starlexxx][])Style/MethodCallWithArgsParentheseswhenEnforcedStyle: omit_parenthesesis used together withStyle/TrailingCommaInArguments. ([@viralpraxis][])Style/NestedModifier. ([@bbatsov][])Style/NonNilCheck. ([@bbatsov][])Style/Notwith a flip-flop or assignment. ([@bbatsov][])Style/RedundantDoubleSplatHashBraceswith a bracedmergeargument. ([@bbatsov][])Style/RedundantParenthesesaroundand/or. ([@bbatsov][])Style/RedundantRegexpConstructorwith%r{}delimiters. ([@bbatsov][])Layout/ArgumentAlignmentandLayout/HashAlignmentwith separator style. ([@Starlexxx][])Layout/CommentIndentationwhen many comment blocks with the same indentation are separated by empty lines. ([@Starlexxx][])Layout/EmptyLinesAfterModuleInclusionwhen a module inclusion is directly beforerescue. ([@Starlexxx][])Layout/ExtraSpacingwithForceEqualSignAlignmentandLayout/SpaceAroundOperators. ([@Starlexxx][])Layout/FirstArrayElementIndentationwithLayout/ArrayAlignmentwhenEnforcedStyle: with_fixed_indentationis configured. ([@RedZapdos123][])Layout/FirstParameterIndentationwithLayout/ParameterAlignmentwhenEnforcedStyle: with_fixed_indentationis configured. ([@RedZapdos123][])Layout/LineLengthwithSplitStrings: truewhen the split point lands on a trailing space. ([@Starlexxx][])Layout/SpaceAroundOperatorsandLayout/ExtraSpacingwithForceEqualSignAlignment: truefor aligned operator assignments. ([@Starlexxx][])Lint/AssignmentInConditionwhen an assignment is insidedefined?. ([@Starlexxx][])Style/EmptyMethodandStyle/SingleLineMethodswithAllowIfMethodIsEmpty: false. ([@Starlexxx][])Style/EndlessMethodwhen an indented method definition would exceedLayout/LineLengthonce made endless. ([@viralpraxis][])Style/EndlessMethodwhen a method body is a block spread over several lines. ([@viralpraxis][])Style/ParenthesesAroundConditionwithAllowSafeAssignment: falseandLint/AssignmentInCondition. ([@Starlexxx][])Layout/SpaceAroundBlockParametersandLayout/SpaceInsideParenswhen the two cops enforce conflicting styles for a lambda's parameter parentheses. ([@viralpraxis][])Style/NumericLiteralPrefixwith signed literals. ([@dylanpulver][])Lint/CopDirectiveSyntaxfalsely reporting multiple directives when valid reason text mentions another directive. ([@RedZapdos123][])Lint/DuplicateMethodsfor singleton methods in separate anonymous classes. ([@rafaelfranca][])Style/NilComparisonwith precedence-sensitive operands. ([@bbatsov][])Lint/ArgumentMismatchregistering false positives forFoo.newcalls, which are documented as out of scope but were checked against whichevernewthe project index could reach. ([@HoneyryderChuck][])Lint/ArgumentMismatchregistering false positives for calls that resolve to a private method onObject, such as a baredefwritten at the top level of a DSL file. ([@HoneyryderChuck][])rubocop:push+Coparguments enable cops that are disabled in the configuration. ([@bbatsov][])Excludewith the default configuration and with inherited files underPreview. ([@bbatsov][])RemoteConfigfailing to follow relative HTTP redirects for remote configuration files. ([@RedZapdos123][])Style/DataInheritanceto not register an offense when the class body defines constants, nested classes, or nested modules. ([@MatheusRich][])Style/StructInheritanceto not register an offense when the class body defines constants, nested classes, or nested modules. ([@MatheusRich][])Changes
Metrics/MethodLength,Metrics/AbcSize,Metrics/ClassLength,Metrics/ModuleLength,Metrics/CyclomaticComplexity,Metrics/PerceivedComplexity,Metrics/BlockLength,Metrics/ParameterListsandMetrics/BlockNestingunderPreview, ahead of them being disabled by default in RuboCop 2.0. ([@bbatsov][])Style/IfUnlessModifier,Style/GuardClause,Style/Next,Style/ClassAndModuleChildren,Style/DoubleNegation,Style/NumericPredicate,Style/SpecialGlobalVars,Style/PerlBackrefs,Style/FrozenStringLiteralComment,Style/FormatStringToken,Style/FormatString,Style/RegexpLiteral,Style/SignalException,Style/Lambda,Style/ParallelAssignment,Style/RaiseArgs,Style/ModuleFunction,Style/BlockDelimiters,Style/NumericLiterals,Style/NegatedIf,Naming/VariableNumber,Naming/HeredocDelimiterNaming,Layout/EmptyLineAfterGuardClauseandBundler/OrderedGemsunderPreview, ahead of them being disabled by default in RuboCop 2.0. ([@bbatsov][])AllCops: FailLeveltowarningunderPreview, so that style offenses are reported without failing the build, ahead of it becoming the default in RuboCop 2.0. ([@bbatsov][])EnforcedStyleofStyle/StringLiterals,Style/StringLiteralsInInterpolation,Layout/CaseIndentation,Layout/EndAlignment,Layout/MultilineMethodCallIndentation,Layout/MultilineOperationIndentation,Layout/FirstHashElementIndentation,Layout/FirstArrayElementIndentation,Layout/ParameterAlignment,Layout/ArgumentAlignment,Style/EmptyMethod,Style/Alias,Style/RescueStandardErrorandStyle/TernaryParenthesesunderPreview, ahead of them becoming the defaults in RuboCop 2.0. ([@bbatsov][])EnforcedStyleofStyle/SymbolArrayandStyle/WordArraytobracketsunderPreview, ahead of it becoming the default in RuboCop 2.0. ([@bbatsov][])Securitycops now report aswarningandMetricscops asrefactor. ([@bbatsov][])Style/DocumentationunderPreview, ahead of it being disabled by default in RuboCop 2.0. ([@bbatsov][])Lint/CopDirectiveSyntaxby default, so directives that silently disable nothing are reported. ([@bbatsov][])Style/DirectiveScopeconvert single-statement signedpush/popscopes andenable/disablepairs to thenext,enable-nextanddisable-nextforms. ([@bbatsov][])AllowedCopsandDisallowedCopsofStyle/DisableCopsWithinSourceCodeDirectivematch department names as well as cop names. ([@bbatsov][])Style/DoubleCopDisableDirective, superseded byLint/CopDirectiveSyntax, which now reports and corrects more than one directive on a line. ([@bbatsov][])warn_indentas a magic comment. This fixes a false positive forLayout/EmptyLineAfterMagicCommentand makesLint/OrderedMagicCommentsandStyle/MagicCommentFormataware of it. ([@koic][])AllowTrailingCommentoption ofStyle/DisableCopsWithinSourceCodeDirectivetoAllowWithReason. ([@bbatsov][])Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.