Skip to content

Update dependency rubocop to v1.88.0#18

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rubocop-1.x-lockfile
Open

Update dependency rubocop to v1.88.0#18
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/rubocop-1.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Nov 6, 2023

Copy link
Copy Markdown
Contributor

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
rubocop (source, changelog) 1.57.11.88.0 age confidence

Release Notes

rubocop/rubocop (rubocop)

v1.88.0

Compare Source

New features
  • #​15166: Add a new Recursive option to Style/MutableConstant. When enabled, the cop checks and freezes mutable literals nested inside arrays and hashes. The option is disabled by default to preserve existing behavior. ([@​paracycle][])
Bug fixes
  • #​15220: Fix a bad autocorrect for Lint/RedundantSplatExpansion when splatting an empty literal (e.g. when *[] or rescue *[]), which expanded to invalid or semantically different code. ([@​bbatsov][])
  • #​15221: Fix a bad autocorrect for Lint/RegexpAsCondition when the regexp literal is negated (e.g. if !/foo/), which inverted the condition. ([@​bbatsov][])
  • #​15242: Fix a bad autocorrect for Lint/SymbolConversion when the receiver is an interpolated string containing an embedded double quote (e.g. "foo#{bar}\"qux".to_sym), which produced a syntax error. ([@​bbatsov][])
  • #​15270: Fix a crash for Style/CombinableLoops when a for loop has an empty body, and stop autocorrecting consecutive for loops whose iteration variables differ (which produced code referencing an undefined variable). ([@​bbatsov][])
  • #​15272: Fix a crash for Style/ConstantVisibility when a visibility declaration has a numeric literal argument (e.g. private_constant 42). ([@​bbatsov][])
  • #​15215: Fix a false negative for Lint/OrderedMagicComments when an encoding magic comment is preceded by a magic comment other than frozen_string_literal (e.g. shareable_constant_value). ([@​bbatsov][])
  • #​15228: Fix a false negative for Lint/RedundantWithIndex when the block takes no arguments (e.g. ary.each_with_index { do_something }). ([@​bbatsov][])
  • #​15230: Fix a false negative for Lint/RequireRelativeSelfPath when requiring the current file by name with its extension (e.g. require_relative 'foo.rb') and the file path is absolute. ([@​bbatsov][])
  • #​15229: Fix a false negative for Lint/SafeNavigationChain when an ordinary method is chained after a parenthesized safe navigation call (e.g. (x&.foo).bar). ([@​bbatsov][])
  • #​15225: Fix a false negative for Lint/SafeNavigationWithEmpty when the receiver of &.empty? is a local variable, instance variable, constant, or other non-method-call expression. ([@​bbatsov][])
  • #​15231: Fix a false negative for Lint/SendWithMixinArgument when send/public_send/__send__ is called with no explicit receiver or with a self receiver (e.g. send(:include, Bar)). ([@​bbatsov][])
  • #​15248: Fix a false negative for Lint/ToEnumArguments when more positional arguments are passed than the method accepts (e.g. def m(x); to_enum(:m, x, extra); end), which raises ArgumentError when the enumerator is used. ([@​bbatsov][])
  • #​15249: Fix a false negative for Lint/UnescapedBracketInRegexp when an unescaped ] is preceded by an escaped backslash (e.g. /abc\\]123/). ([@​bbatsov][])
  • #​15267: Fix a false positive for Style/ArrayIntersectWithSingleElement with a splat argument (e.g. array.intersect?([*foo])), which is not a single element and was incorrectly rewritten to array.include?(*foo). ([@​bbatsov][])
  • #​15272: Fix a false positive for Style/ColonMethodCall with chained JRuby interop calls (e.g. Java::com::something_method). ([@​bbatsov][])
  • #​15271: Fix a false positive for Style/ConditionalAssignment with EnforcedStyle: assign_inside_condition when assigning an unless without an else branch (e.g. x = unless cond; 1; end), which was rewritten to move the assignment inside the unless and changed behavior when the condition was true. ([@​bbatsov][])
  • #​14401: Fix a false positive for Layout/BlockAlignment with EnforcedStyleAlignWith: start_of_line when a block is passed as a method argument. ([@​augustocbx][])
  • #​15216: Fix a false positive for Lint/RaiseException when raise Exception is used inside a module nested within an allowed implicit namespace (e.g. Gem). ([@​bbatsov][])
  • #​15219: Fix a false positive for Lint/RedundantDirGlobSort when sort is given a comparator block or a block-pass argument, which is not redundant with the default sorting. ([@​bbatsov][])
  • #​15224: Fix a false positive for Lint/ShadowingOuterLocalVariable when a block argument has the same name as a pattern variable from a different in branch of the same case. ([@​bbatsov][])
  • #​15239: Fix a false positive for Lint/SuppressedExceptionInNumberConversion when the numeric constructor already passes exception: false (e.g. Integer(arg, exception: false) rescue nil), which also produced an autocorrect with a duplicate exception: false keyword. ([@​bbatsov][])
  • #​15243: Fix a false positive for Lint/TopLevelReturnWithArgument when a return with an argument is inside a numbered-parameter block or an it block. ([@​bbatsov][])
  • #​15245: Fix a false positive for Lint/UselessRuby2Keywords when ruby2_keywords in a nested class or module refers to a method of the same name defined in an outer scope. ([@​bbatsov][])
  • #​15246: Fix a false positive for Lint/UselessSetterCall when a multiple assignment uses nested destructuring (e.g. (a, b), c = arg, other_arg), which misaligned variables with the right-hand side values. ([@​bbatsov][])
  • #​15125: Fix a false positive for Style/ZeroLengthPredicate when File::Stat.new(...).size.zero? is used. ([@​augustocbx][])
  • #​15196: Fix --start-server to wait until the server is running before returning, which fixes a flaky --restart-server spec and a race for commands run right after starting the server. ([@​koic][])
  • #​15272: Fix Style/Alias not detecting block scope for numbered-parameter and it blocks, which caused a false positive for alias_method and a false negative for alias inside such blocks. ([@​bbatsov][])
  • #​15281: Fix an incorrect autocorrect when Style/IfUnlessModifier and Style/Next correct the same conditional. ([@​fynsta][])
  • #​15260: Fix an error for Style/FileWrite when a literal or variable is passed to write in the block form. ([@​koic][])
  • #​15276: Fix an error for Style/RedundantFormat when the format string is a heredoc with format arguments. ([@​fynsta][])
  • #​15270: Fix an incorrect autocorrect for Style/AndOr when an operand is next, break, or yield with an argument (e.g. foo and next 1), which produced invalid Ruby like foo && next 1. ([@​bbatsov][])
  • #​15267: Fix an incorrect autocorrect for Style/ArrayFirstLast when arr[0]/arr[-1] is the target of a compound assignment (e.g. arr[0] += 1), which produced arr.first += 1 and raised NoMethodError. ([@​bbatsov][])
  • #​15267: Fix an incorrect autocorrect for Style/ArrayIntersect where a negated predicate on a safe-navigation chain (e.g. a&.intersection(b)&.none?) was rewritten to !a&.intersect?(b), flipping the result when the receiver is nil. ([@​bbatsov][])
  • #​15273: Fix an incorrect autocorrect for Style/BlockDelimiters that converted a single-line do...end block containing a block-level rescue or ensure to {...}, producing invalid Ruby. ([@​bbatsov][])
  • #​15268: Fix an incorrect autocorrect for Style/CaseEquality when the argument is an operator or unary expression (e.g. Array === a + b), which produced mis-parsed code like a + b.is_a?(Array). ([@​bbatsov][])
  • #​15268: Fix an incorrect autocorrect for Style/ClassEqualityComparison inside a namespace when the class name string is already fully qualified (e.g. bar.class.name == '::Bar'), which produced instance_of?(::::Bar) and was a syntax error. ([@​bbatsov][])
  • #​15268: Fix an incorrect autocorrect for Style/ClassEqualityComparison when comparing Class itself to a string literal (e.g. var.class == 'Date'), which produced var.instance_of?('Date') and raised TypeError; such comparisons are no longer autocorrected. ([@​bbatsov][])
  • #​15274: Fix an incorrect autocorrect for Style/ClassMethodsDefinitions that corrupted a preceding comment containing def <name> and left the method undefined as a class method. ([@​bbatsov][])
  • #​15270: Fix an incorrect autocorrect for Style/ComparableClamp when the clamped value is an operator expression (e.g. a + b), which produced mis-parsed code like a + b.clamp(low, high). ([@​bbatsov][])
  • #​15267: Fix an incorrect autocorrect for Style/ConcatArrayLiterals with an empty array literal argument (e.g. arr.concat([], [b])), which produced invalid Ruby like arr.push(, b). ([@​bbatsov][])
  • #​15274: Fix an incorrect autocorrect for Style/DigChain that duplicated a trailing comment and dropped indentation when the chain was inside a method or block. ([@​bbatsov][])
  • #​15288: Fix an incorrect autocorrect for Lint/UselessTimes when a 1.times block takes a single destructured (|(a, b)|) or splat (|*a|) argument, which produced a body referencing an undefined variable. ([@​bbatsov][])
  • #​15280: Fix an incorrect autocorrect for Style/ConditionalAssignment with EnforcedStyle: assign_inside_condition and a single-line case. ([@​fynsta][])
  • #​15278: Fix an incorrect autocorrect for Style/ParallelAssignment when the right-hand side contains a heredoc. ([@​fynsta][])
  • #​15279: Fix an incorrect autocorrect for Style/Semicolon when a heredoc is opened before the semicolon. ([@​fynsta][])
  • #​15277: Fix an incorrect autocorrect for Style/WordArray when the array contains heredocs. ([@​fynsta][])
  • #​15240: Fix an incorrect autocorrect for Lint/UselessAssignment that rewrote a first-seen foo &&= 1 to foo && 1, raising NameError at runtime. ([@​bbatsov][])
  • #​15269: Fix a false positive where a cop's relative Include pattern could match directories above the project root. ([@​augustocbx][])
  • #​15209: Fix a false negative for Lint/InterpolationCheck when interpolation appears in a multiline single-quoted string. ([@​bbatsov][])
  • #​15211: Fix a false negative for Lint/NonLocalExitFromIterator when the iterator receiver uses safe navigation. ([@​bbatsov][])
  • #​15227: Fix false negatives for Lint/RedundantSafeNavigation with &.respond_to? on a guaranteed-instance receiver (e.g. foo.to_s&.respond_to?(:class)) and with &.to_h using a numbered-parameter or it block (e.g. foo&.to_h { _1 } || {}). ([@​bbatsov][])
  • #​15226: Fix false negatives for Lint/RescueType when rescuing from true, false, a rational literal (1r), or a complex literal (1i), all of which raise a TypeError at runtime. ([@​bbatsov][])
  • #​15233: Fix false negatives for Lint/SelfAssignment with ||= and &&= on constants, attributes, and hash keys (e.g. Foo ||= Foo, foo.bar ||= foo.bar, hash['foo'] ||= hash['foo']). ([@​bbatsov][])
  • #​15247: Fix false negatives for Lint/SharedMutableDefault when a mutable default is combined with a capacity: keyword argument and given as an array or Array.new/Hash.new (e.g. Hash.new([], capacity: 42)). ([@​bbatsov][])
  • #​15206: Fix a false positive for Lint/FloatComparison when comparing against a parenthesized zero or nil. ([@​bbatsov][])
  • #​15208: Fix a false positive for Lint/IncompatibleIoSelectWithFiberScheduler when the single array argument element is a splat. ([@​bbatsov][])
  • #​15207: Fix a false positive for Lint/LiteralAssignmentInCondition when a literal is assigned inside a block in the condition. ([@​bbatsov][])
  • #​15272: Fix false positives for Style/DateTime: a bare to_datetime call on implicit self is no longer flagged, and historic-date calls using safe navigation (e.g. DateTime&.iso8601(str, Date::ENGLAND)) are now exempted. ([@​bbatsov][])
  • #​14979: Fix false positives in Layout/BlockAlignment when there is a line break between method arguments before the block. ([@​koic][])
  • #​15204: Fix false positives in Lint/EnsureReturn and Lint/NoReturnInBeginEndBlocks for return inside a nested method definition or lambda. ([@​bbatsov][])
  • #​15197: Fix false positives in Style/WhileUntilDo when the loop body is on the same line as the do keyword. ([@​koic][])
  • #​15205: Fix an incorrect autocorrect for Lint/ErbNewArguments when a keyword argument follows the safe_level argument. ([@​bbatsov][])
  • #​15210: Fix an incorrect autocorrect for Lint/LambdaWithoutLiteralBlock that dropped safe navigation from the block argument. ([@​bbatsov][])
  • #​15214: Fix an incorrect autocorrect for Lint/NumericOperationWithConstantResult when using safe navigation, as the result is nil when the receiver is nil. ([@​bbatsov][])
  • #​15217: Fix an incorrect autocorrect for Lint/RedundantCopDisableDirective and Lint/RedundantCopEnableDirective when a cop name in the directive is a prefix of another cop name in the same directive (e.g. Lint/AmbiguousOperator and Lint/AmbiguousOperatorPrecedence). ([@​bbatsov][])
  • #​15275: Fix incorrect autocorrects for Style/FileWrite that deleted or duplicated heredoc bodies when a heredoc was used as the filename, in an argument expression, or in an inline block. ([@​fynsta][])
  • #​15241: Fix incorrect autocorrects for Lint/UselessTimes when the times block uses next/break (which became a syntax error) or takes multiple block arguments (which became undefined references). ([@​bbatsov][])
  • #​15222: Fix Lint/ScriptPermission to honor a cop-level AutoCorrect: false setting and to not crash on sources without a file on disk (e.g. unsaved editor buffers). ([@​bbatsov][])
  • #​15244: Fix Lint/TrailingCommaInAttributeDeclaration to detect a trailing comma before a singleton method definition (e.g. def self.bar) and to not crash when a def is the sole argument (e.g. attr_reader def bar; end). ([@​bbatsov][])
  • #​15250: Fix incorrect autocorrects for Lint/LiteralInInterpolation with embedded quotes and escaped interpolation text. ([@​RedZapdos123][])
  • #​15291: Fix an incorrect autocorrect for Lint/LiteralInInterpolation when interpolated hashes contain symbols that require quoted syntax, such as :'foo-bar'. ([@​RedZapdos123][])
  • #​14364: Fix .rubocop_todo.yml autocorrect safety comments for local custom cops configured in the project config. ([@​RedZapdos123][])
  • #​15252: Stop autocorrecting Lint/NumberConversion offenses on safe navigation calls. ([@​RedZapdos123][])
  • #​12276: Fix --auto-gen-config to record --disable-pending-cops and --enable-pending-cops in the generated .rubocop_todo.yml command so that --regenerate-todo preserves them. ([@​augustocbx][])
  • #​15202: Fix InternalAffairs/RedundantLetRuboCopConfigNew crash when let(:config) has no enclosing describe. ([@​bbatsov][])
Changes
  • #​15234: Reword the Lint/RequireRangeParentheses offense message, which incorrectly called the flagged (finite) range "endless". ([@​bbatsov][])
  • #​15235: Add autocorrection to Lint/RefinementImportMethods (replacing include/prepend with import_methods) and report that the functionality was removed (not just deprecated) on Ruby 3.2+. ([@​bbatsov][])
  • #​15198: Reword cop descriptions that did not start with a verb (e.g. Lint/UnreachableCode, Metrics/AbcSize, Security/Eval) for consistency. ([@​bbatsov][])
  • #​15223: Make Lint/RedundantWithObject autocorrect unsafe, since each_with_object returns the memo object while the corrected each returns the receiver. ([@​bbatsov][])
  • #​15194: Rename inconsistently named cop parameters to follow RuboCop's conventions (the old names are deprecated but still work): Bundler/GemComment's IgnoredGems to AllowedGems, Lint/NumberConversion's IgnoredClasses to AllowedClasses, Lint/MissingCopEnableDirective's MaximumRangeSize to MaxRangeSize, Metrics/CollectionLiteralLength's LengthThreshold to Max, and Style/FetchEnvVar's AllowedVars to AllowedVariables. ([@​bbatsov][])

v1.87.0

Compare Source

New features
  • #​15167: Add --enable-all-cops and --disable-all-cops command line options that override AllCops/EnabledByDefault and AllCops/DisabledByDefault in configuration files. ([@​koic][])
  • #​15185: Make Layout/EmptyLineAfterGuardClause accept the new # simplecov:disable and # simplecov:enable directive comments. ([@​koic][])
  • #​15173: Add optional Rubydex integration via AllCops/UseProjectIndex to enable cross-file detection in Lint/ConstantReassignment (experimental). ([@​koic][])
Bug fixes
  • #​15168: Fix false positives in Lint/ParenthesesAsGroupedExpression when the first argument is a call-like expression with its own parentheses, such as yield(...). ([@​koic][])
  • #​15188: Fix false positives in Style/YodaCondition when one side is an array or hash literal containing non-literal elements. ([@​koic][])
  • #​15182: Fix incorrect autocorrect for Style/Alias causing a syntax error when the return value of alias_method is used, such as an argument to public, private, protected, or module_function, or the right-hand side of an assignment. ([@​koic][])
  • #​15174: Fix incorrect autocorrect for Style/ClassAndModuleChildren causing a syntax error when the namespace contains a method call (e.g., class self.class::Foo; end). ([@​koic][])
  • #​15180: Fix incorrect autocorrect for Style/FileWrite causing a syntax error when the written heredoc is chained with another method call. ([@​koic][])
  • #​15186: Fix incorrect autocorrect for Style/HashConversion causing a syntax error when Hash[...] is passed an anonymous splat (*). ([@​koic][])
  • #​15192: Fix incorrect autocorrect for Style/StructInheritance causing a syntax error when the inherited Struct.new is called without parentheses. ([@​koic][])
  • #​15170: Fix an infinite loop for Layout/RedundantLineBreak when a single-line block is chained with a safe navigation method call. ([@​koic][])
  • #​15175: Fix Layout/IndentationWidth to indent block bodies relative to the method selector for trailing-dot multi-line method chains when EnforcedStyleAlignWith is relative_to_receiver. ([@​ddbrendan][])
  • #​15135: Fix incorrect autocorrect for Style/RedundantParentheses that swallowed chained method calls into a trailing inline comment on the line above the closing parenthesis. ([@​hammadxcm][])
  • #​15184: Fix various typos and grammar mistakes in documentation and cop descriptions. ([@​bbatsov][])
Changes
  • #​15171: Cache FilePatterns#match? results per path so cops sharing the same Include/Exclude configuration do not each repeat File.fnmatch? work on every file. ([@​Darhazer][])

v1.86.2

Compare Source

New features
Bug fixes
  • #​15156: Fix an error for Style/HashLookupMethod when chaining fetch (or []) calls on the same expression. ([@​koic][])
  • #​15161: Fix an error for Style/ReduceToHash when nested each_with_object/inject/reduce calls would build hashes. ([@​koic][])
  • #​15144: Fix an error in Style/SoleNestedConditional when autocorrecting nested conditionals containing comments. ([@​koic][])
  • #​15040: Exclude constants from Style/ModuleMemberExistenceCheck. ([@​t-daisuke][])
  • #​15155: Fix false negatives in Style/RedundantSelf when an explicit self receiver in one scope matches the LHS of an ||=, &&=, or op_asgn in another scope. ([@​koic][])
  • #​15107: Fix false positives in Lint/RequireRelativeSelfPath when a non-.rb file uses require_relative with its own basename. ([@​koic][])
  • #​15137: Fix incorrect "does not support IndentationWidth parameter" warning for Layout/ClosingParenthesisIndentation and Layout/CommentIndentation. ([@​koic][])
  • #​15148: Fix false positives in Lint/RedundantSafeNavigation when safe navigation appears in rescue or ensure bodies. ([@​koic][])
  • #​15147: Fix false positives in Lint/RedundantSafeNavigation when safe navigation appears in the body of unless. ([@​koic][])
  • #​15163: Fix false positives in Style/Copyright when Notice pattern starts with \A#, uses \s metacharacters, or has multiple spaces after #. ([@​koic][])
  • #​10179: Fix false positives in Style/DocumentDynamicEvalDefinition when the heredoc contains an escaped interpolation (\#{...}). ([@​eyupcanakman][])
  • #​15154: Fix bug where specifying --out disables parallelization. ([@​deivid-rodriguez][])
  • #​15106: Fix TargetFinder to work correctly inside hidden parent directories. ([@​alpaca-tc][])
  • #​15102: Fix FrozenError in DisabledConfigFormatter for frozen array config parameters. ([@​koic][])
  • #​15141: Fix incorrect autocorrect for Gemspec/RequireMFA causing an infinite loop when rubygems_mfa_required metadata uses a symbol key. ([@​koic][])
  • #​15142: Fix infinite loop for --disable-uncorrectable and offense near heredoc. ([@​jonas054][])
  • #​15054: Fix false positive for Layout/MultilineMethodCallIndentation when a dot-aligned method chain is inside a hash pair value. ([@​nicolas-finary][])
  • #​15136: Fix false positive for Lint/MissingCopEnableDirective when # rubocop:disable is wrapped in a # rubocop:push / # rubocop:pop block. ([@​koic][])
  • #​15115: Fix an incorrect autocorrect in Style/RegexpLiteral when the regexp contains unbalanced braces that conflict with the preferred %r delimiters. ([@​koic][])
  • #​15130: Fix incorrect autocorrect in Style/Copyright when AutocorrectNotice lacks a # prefix or Notice pattern starts with ^#. ([@​koic][])
  • #​14821: Fix Style/IfInsideElse autocorrect moving comments into the wrong branch when a comment precedes the nested if in an else. ([@​hammadxcm][])
  • #​14583: Fix template extractor applying only the last fragment's autocorrection. ([@​zeronosu77108][])
  • #​14971: Fix false positive for Style/WhileUntilModifier when the body is a conditional. ([@​fujitanisora][])

v1.86.1

Compare Source

Bug fixes
  • #​11051: Fix Style/AccessModifierDeclarations inline autocorrect dropping comments between the access modifier and the following method definition. ([@​dduugg][])
  • #​14665: Cache plugin integration in CopHelper to avoid repeated loading. ([@​55728][])
  • #​15091: Fix Lint/DuplicateMethods false positives for anonymous classes in constant assignments and method return values. ([@​eugeneius][])
  • #​15055: Fix Lint/DuplicateMethods false positives with anonymous classes inside blocks (e.g. RSpec let, describe). ([@​ShkumbinDelija][])
  • #​15035: Exclude included_modules from Style/ModuleMemberExistenceCheck. ([@​koic][])
  • #​15087: Fix false positive for Style/RedundantLineContinuation when using interpolated string literals. ([@​koic][])
  • #​14361: Fix false positive in file_to_include? when a relative Include pattern matches a parent directory name in the absolute file path. ([@​jonas054][])
  • #​15090: Fix false positives for Layout/EmptyLineAfterGuardClause when consecutive guard clauses use and return. ([@​eugeneius][])
  • #​15070: Fix false positive for Lint/RedundantSafeNavigation when chained safe navigation is used in a conditional expression with InferNonNilReceiver enabled. ([@​koic][])
  • #​15074: Fix false positives in Style/RedundantParentheses when using parentheses around an endless range in assignment. ([@​koic][])
  • #​15048: Fix issue where the url_for is missing for Cops without instance methods. ([@​Fryguy][])
  • #​15051: Fix Style/RedundantParentheses handling of beginless ranges. ([@​oggy][])
  • #​14980: Fix Lint/Syntax zero-length diagnostic range for syntax errors at EOF. ([@​55728][])
  • #​15084: Handle heredocs with methods calls correctly when fixing guard clauses. ([@​G-Rath][])
  • #​11398: Fix incorrect Include path adjustment when local config overrides an inherited Include. ([@​jonas054][])
  • #​15092: Fix Layout/EndAlignment cop error on an empty begin. ([@​viralpraxis][])
  • #​15059: Fix an error in Layout/LineLength when SplitStrings option is enabled and __FILE__ is used. ([@​jeromedalbert][])
  • #​5876: Fix Lint/UnusedMethodArgument false positive when block argument is used via yield. ([@​dduugg][])
  • #​15093: Return tool execution errors instead of protocol errors in MCP server. ([@​koic][])
Changes

v1.86.0

Compare Source

New features
Bug fixes
  • #​15015: Fix Style/ConcatArrayLiterals autocorrect deleting code for percent literals with interpolation. ([@​bbatsov][])
  • #​14897: Detect constant reassignment after class/module definition in Lint/ConstantReassignment. ([@​ydakuka][])
  • #​11829: Fix false negatives for Lint/DuplicateMethods when duplicate methods are defined in anonymous classes and modules not assigned to a constant. ([@​Darhazer][])
  • #​14988: Fix false negative in Style/RedundantParentheses when redundant parentheses around range literals in block body. ([@​koic][])
  • #​14916: Fix false positive for Layout/MultilineMethodCallIndentation when method chain is inside a hash pair value passed to a multiline chained method call. ([@​ydakuka][])
  • #​15010: Fix a false positive for Lint/DuplicateMethods when modules blocks are passed as method arguments. ([@​5hun-s][])
  • #​15028: Fix a false positive for Lint/DuplicateMethods when the same method is defined in different anonymous module blocks passed to a no-receiver call (e.g. stub_const). ([@​Darhazer][])
  • #​15021: Fix false positives in Layout/EmptyLineAfterGuardClause when using a guard clause followed by a multi-line guard clause with raise, fail, return, break, or next. ([@​koic][])
  • #​15001: Fix false positives in Layout/RedundantLineBreak when setting InspectBlocks: true and using rescue or ensure in the block. ([@​koic][])
  • #​14997: Fix false positives in Style/FileOpen when assigning File.open to an instance variable, class variable, global variable, or constant. ([@​koic][])
  • #​15019: Fix false positives in Lint/DuplicateMethods when the same method is defined in anonymous module blocks passed to different receivers. ([@​koic][])
  • #​14987: Complete ERB and Haml autocorrection in a single run. ([@​alpaca-tc][])
  • #​15039: Fix incorrect autocorrect in Style/IfWithSemicolon when return with value is in the else branch. ([@​koic][])
  • #​14930: Fix incorrect autocorrection for Style/IfUnlessModifier when multiple if/unless modifier forms are on the same line inside a collection. ([@​ydakuka][])
  • #​14985: Fix incorrect autocorrection in Lint/SafeNavigationChain when chaining a method call after safe navigation in the if branch of a ternary. ([@​koic][])
  • #​15009: Fix infinite loop in Layout/EndAlignment when end is followed by || or &&. ([@​koic][])
  • #​14981: Fix spurious warning "does not support Safe/SafeAutoCorrect parameter" when those parameters are set for cops that don't have them in their default configuration. ([@​dduugg][])
  • #​15043: Fix an error for Lint/UselessDefaultValueArgument when fetch without a receiver is inside a fetch block. ([@​koic][])
  • #​15034: Fix incorrect autocorrection in Style/IfWithSemicolon when using single-line unless / ; / end. ([@​koic][])
  • #​15015: Fix Style/NonNilCheck autocorrect for receivers containing spaces. ([@​bbatsov][])
  • #​15015: Fix Style/RaiseArgs to allow anonymous keyword forwarding (raise Ex.new(**)). ([@​bbatsov][])
  • #​14890: Fix a false positive for Lint/RedundantCopDisableDirective when a rubocop:disable comment is used to suppress Lint/EmptyWhen, Lint/EmptyConditionalBody, Lint/EmptyInPattern, or Style/SymbolProc. ([@​eugeneius][])
  • #​15015: Fix false negative in Style/RedundantPercentQ for %q strings with interpolation-like syntax. ([@​bbatsov][])
  • #​14984: Fix Style/AndOr adding unnecessary parentheses around return without arguments. ([@​eugeneius][])
  • #​14945: Support files with multiple modifiers in Lint/UselessConstantScoping. ([@​h-lame][])
  • #​15015: Fix Style/TrailingMethodEndStatement to detect singleton methods (def self.foo). ([@​bbatsov][])
  • #​10822: Don't store results in cache if there are warnings. ([@​jonas054][])
Changes
  • #​14718: Allow setting MaxFilesInCache to false to entirely disable cache pruning. ([@​byroot][])
  • #​14989: Make Lint/RedundantSafeNavigation aware of safe navigation in conditional true branch. ([@​koic][])
  • #​15041: Remove mcp gem from runtime dependencies. ([@​koic][])

v1.85.1

Compare Source

Bug fixes
  • #​14958: Fix false positives in Style/FileOpen when File.open is passed as an argument or returned from a method. ([@​sferik][])
  • #​14973: Fix Style/ReduceToHash false positive when accumulator is read in key/value. ([@​sferik][])
  • #​14964: Fix false positives in Style/RedundantParentheses when parenthesizing a range in a block body. ([@​koic][])
Changes

v1.85.0

Compare Source

New features
Bug fixes
  • #​14829: Allow classes without a superclass in Style/EmptyClassDefinition. ([@​koic][])
  • #​14873: Fix an error in Style/NegatedWhile when the last expression of an until condition is negated. ([@​koic][])
  • #​14827: Improve Style/EmptyClassDefinition message wording. ([@​bbatsov][])
  • #​14800: Fix false obsolete configuration error for extracted cops when loaded as plugins. ([@​bbatsov][])
  • #​14928: Fix a false positive for Lint/Void when nil is used in case branch. ([@​5hun-s][])
  • #​14857: Fix false positives in Style/IfUnlessModifier when modifier forms are used inside string interpolations. ([@​koic][])
  • #​8773: Fix false positives in Style/HashTransformKeys and Style/HashTransformValues. ([@​sferik][])
  • #​6963: Fix false positives in Lint/Void for each blocks where the return value may be meaningful (e.g., Enumerator#each). ([@​sferik][])
  • #​14931: Ignore directive comments inside comments. ([@​koic][])
  • #​14834: Fix Layout/IndentationWidth false positive for chained method blocks when EnforcedStyleAlignWith is start_of_line. ([@​krororo][])
  • #​14756: Fix Lint/Void to detect void expressions in case/when branches. ([@​bbatsov][])
  • #​14874: Fix a Parser::ClobberingError in Lint/UselessAssignment when autocorrecting a useless assignment that wraps a block containing another useless assignment. ([@​koic][])
  • #​14880: Fix a false negative in Layout/MultilineAssignmentLayout when using numblock or itblock with SupportedTypes: ['block']. ([@​bbatsov][])
  • #​11462: Fix over-indentation when autocorrecting nested hashes with Layout/FirstHashElementIndentation. ([[@​ydakuka](https://redirect.gith

Note

PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot changed the title Update dependency rubocop to v1.57.2 Update dependency rubocop to v1.58.0 Dec 1, 2023
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 6cbd964 to e026ba8 Compare December 1, 2023 16:28
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from e026ba8 to 62d4a60 Compare December 11, 2023 11:16
@renovate renovate Bot changed the title Update dependency rubocop to v1.58.0 Update dependency rubocop to v1.59.0 Dec 11, 2023
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 62d4a60 to 254b791 Compare January 15, 2024 11:25
@renovate renovate Bot changed the title Update dependency rubocop to v1.59.0 Update dependency rubocop to v1.60.0 Jan 15, 2024
@renovate renovate Bot changed the title Update dependency rubocop to v1.60.0 Update dependency rubocop to v1.60.1 Jan 17, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch 2 times, most recently from 219f7f1 to c0657c4 Compare January 24, 2024 13:48
@renovate renovate Bot changed the title Update dependency rubocop to v1.60.1 Update dependency rubocop to v1.60.2 Jan 24, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from c0657c4 to 5511303 Compare March 1, 2024 23:16
@renovate renovate Bot changed the title Update dependency rubocop to v1.60.2 Update dependency rubocop to v1.61.0 Mar 1, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 5511303 to 244e633 Compare March 6, 2024 14:08
@renovate renovate Bot changed the title Update dependency rubocop to v1.61.0 Update dependency rubocop to v1.62.0 Mar 6, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 244e633 to 29b2b18 Compare March 11, 2024 12:27
@renovate renovate Bot changed the title Update dependency rubocop to v1.62.0 Update dependency rubocop to v1.62.1 Mar 11, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 29b2b18 to 411dd97 Compare April 8, 2024 09:08
@renovate renovate Bot changed the title Update dependency rubocop to v1.62.1 Update dependency rubocop to v1.63.0 Apr 8, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 411dd97 to ce1224e Compare April 10, 2024 13:38
@renovate renovate Bot changed the title Update dependency rubocop to v1.63.0 Update dependency rubocop to v1.63.1 Apr 10, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from ce1224e to 972f804 Compare April 16, 2024 09:00
@renovate renovate Bot changed the title Update dependency rubocop to v1.63.1 Update dependency rubocop to v1.63.2 Apr 16, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 972f804 to 4919b48 Compare April 22, 2024 18:01
@renovate renovate Bot changed the title Update dependency rubocop to v1.63.2 Update dependency rubocop to v1.63.3 Apr 22, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 4919b48 to 142f7f5 Compare April 28, 2024 08:01
@renovate renovate Bot changed the title Update dependency rubocop to v1.63.3 Update dependency rubocop to v1.63.4 Apr 28, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 142f7f5 to 0063337 Compare May 9, 2024 09:21
@renovate renovate Bot changed the title Update dependency rubocop to v1.63.4 Update dependency rubocop to v1.63.5 May 9, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 0063337 to 55df5f4 Compare May 23, 2024 10:38
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from bac3216 to 5411f5d Compare October 15, 2024 13:35
@renovate renovate Bot changed the title Update dependency rubocop to v1.66.1 Update dependency rubocop to v1.67.0 Oct 15, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 5411f5d to 9e86e38 Compare October 31, 2024 08:19
@renovate renovate Bot changed the title Update dependency rubocop to v1.67.0 Update dependency rubocop to v1.68.0 Oct 31, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 9e86e38 to fdee303 Compare November 26, 2024 16:12
@renovate renovate Bot changed the title Update dependency rubocop to v1.68.0 Update dependency rubocop to v1.69.0 Nov 26, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from fdee303 to 28728be Compare December 3, 2024 11:13
@renovate renovate Bot changed the title Update dependency rubocop to v1.69.0 Update dependency rubocop to v1.69.1 Dec 3, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 28728be to edc8eb3 Compare December 12, 2024 16:36
@renovate renovate Bot changed the title Update dependency rubocop to v1.69.1 Update dependency rubocop to v1.69.2 Dec 12, 2024
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from edc8eb3 to 97250c1 Compare January 10, 2025 09:29
@renovate renovate Bot changed the title Update dependency rubocop to v1.69.2 Update dependency rubocop to v1.70.0 Jan 10, 2025
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 97250c1 to 9a88738 Compare January 22, 2025 21:35
@renovate renovate Bot changed the title Update dependency rubocop to v1.70.0 Update dependency rubocop to v1.71.0 Jan 22, 2025
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 9a88738 to b409c12 Compare January 31, 2025 13:39
@renovate renovate Bot changed the title Update dependency rubocop to v1.71.0 Update dependency rubocop to v1.71.1 Jan 31, 2025
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from b409c12 to d62c9ff Compare February 4, 2025 09:27
@renovate renovate Bot changed the title Update dependency rubocop to v1.71.1 Update dependency rubocop to v1.71.2 Feb 4, 2025
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from d62c9ff to 0fa4a84 Compare February 14, 2025 19:01
@renovate renovate Bot changed the title Update dependency rubocop to v1.71.2 Update dependency rubocop to v1.72.0 Feb 14, 2025
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 0fa4a84 to e24ee8a Compare February 15, 2025 17:36
@renovate renovate Bot changed the title Update dependency rubocop to v1.72.0 Update dependency rubocop to v1.72.1 Feb 15, 2025
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from e24ee8a to a44f7b4 Compare February 17, 2025 19:25
@renovate renovate Bot changed the title Update dependency rubocop to v1.72.1 Update dependency rubocop to v1.72.2 Feb 17, 2025
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from a44f7b4 to c607efd Compare February 26, 2025 11:12
@renovate renovate Bot changed the title Update dependency rubocop to v1.72.2 Update dependency rubocop to v1.73.0 Feb 26, 2025
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from c607efd to 1311019 Compare February 27, 2025 11:05
@renovate renovate Bot changed the title Update dependency rubocop to v1.73.0 Update dependency rubocop to v1.73.1 Feb 27, 2025
@renovate renovate Bot force-pushed the renovate/rubocop-1.x-lockfile branch from 1311019 to 315a612 Compare March 4, 2025 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants