All Versions
151
Latest Version
Avg Release Cycle
7 days
Latest Release
322 days ago

Changelog History
Page 1

  • v1.6.0 Changes

    December 09, 2020

    ๐Ÿ†• New features

    • #9125: Allow ConfigObsoletion to be extended by other RuboCop libraries. (@dvandersluis)
    • ๐Ÿ’… #9182: Support auto-correction for Style/RedundantArgument. (@koic)
    • ๐Ÿ’… #9186: Support auto-correction for Style/FloatDivision. (@koic)
    • ๐Ÿ’… #9167: Support auto-correct for StyleSingleLineBlockParams. (@koic)

    ๐Ÿ› Bug fixes

    • ๐Ÿ’… #9177: Remove back-ref related code from Style/SpecialGlobalVars. (@r7kamura)
    • ๐Ÿ’… #9160: Fix an incorrect auto-correct for Style/IfUnlessModifier and Style/SoleNestedConditional when auto-correction conflicts for guard condition. (@koic)
    • ๐Ÿ’… #9174: Handle send nodes with unparenthesized arguments in Style/SoleNestedConditional. (@dvandersluis)
    • #9184: Layout/EmptyLinesAroundAttributeAccessor fails if the attr_accessor is the last line of the file. (@tas50)

    ๐Ÿ”„ Changes

    • ๐Ÿ”ง #9171: Add "did you mean" message when failing due to invalid cops in configuration. (@dvandersluis)
    • ๐Ÿ’… #8897: Change Style/StringConcatenation to accept line-end concatenation between two strings so that Style/LineEndConcatenation can handle it instead. (@dvandersluis)
    • ๐Ÿ’… #9172: Add Style/PerlBackrefs targets and change message more detailed. (@r7kamura)
    • โšก๏ธ #9187: Update formatters to output [Correctable] for correctable offenses. (@dvandersluis)
    • ๐Ÿš… #9169: Add obsoletion warnings for Performance/* and Rails/* which are in separate gems now. (@dvandersluis)
  • v1.5.2 Changes

    December 04, 2020

    ๐Ÿ› 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

  • v1.5.1 Changes

    December 02, 2020

    ๐Ÿ› 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)
  • v1.5.0 Changes

    December 01, 2020

    ๐Ÿ†• 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)
  • v1.4.2 Changes

    November 25, 2020

    ๐Ÿ› Bug fixes

    • ๐Ÿ’… #9083: Fix Style/RedundantArgument cop raising offense for more than one argument. (@tejasbubane)
    • ๐Ÿ’… #9089: Fix an incorrect auto-correct for Style/FormatString when using springf with second argument that uses an operator. (@koic)
    • #7670: Handle offenses inside heredocs for -a --disable-uncorrectable. (@jonas054)
    • ๐Ÿ‘• #9070: Fix Lint/UnmodifiedReduceAccumulator error when the block does not have enough arguments. (@dvandersluis)

    ๐Ÿ”„ Changes

    • #9091: Have Naming/VariableNumber accept _1, _2, ... (@marcandre)
    • ๐Ÿ—„ #9087: Deprecate EnforceSuperclass module. (@koic)
  • v1.4.1 Changes

    November 23, 2020

    ๐Ÿ› Bug fixes

    • ๐Ÿฑ #9082: Fix gemspec to include assets directory. (@javierav)
  • v1.4.0 Changes

    November 23, 2020

    ๐Ÿ†• New features

    • ๐Ÿ’… #7737: Add new Style/RedundantArgument cop. (@tejasbubane)
    • #9064: Add EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs and EmptyLineBetweenModuleDefs config options for Layout/EmptyLineBetweenDefs cop. (@tejasbubane)
    • #9043: Add --stderr to write all output to stderr except for the autocorrected source. (@knu)

    ๐Ÿ› Bug fixes

    • ๐Ÿ‘• #9067: Fix an incorrect auto-correct for Lint::AmbiguousRegexpLiteral when passing in a regexp to a method with no receiver. (@amatsuda)
    • #9060: Fix an error for Layout/SpaceAroundMethodCallOperator when using __ENCODING__. (@koic)
    • #7338: Handle assignment with []= in MultilineMethodCallIndentation. (@jonas054)
    • #7726: Fix MultilineMethodCallIndentation indentation inside square brackets. (@jonas054)
    • #8857: Improve how Exclude properties are generated by --auto-gen-config. (@jonas054)

    ๐Ÿ”„ Changes

    • ๐Ÿ“š #8788: Change Style/Documentation to not trigger offense with only macros. (@tejasbubane)
    • #8993: Allow ExcludedMethods config of Metrics/MethodLength cop to contain regex. (@tejasbubane)
    • 0๏ธโƒฃ #9073: Enable Layout/LineLength's auto-correct by default. (@bbatsov)
    • #9079: Improve the gemspec to load only the necessary files without the git utility. (@piotrmurach)
    • โšก๏ธ #9059: Update Lint/UnmodifiedReduceAccumulator to accept blocks which return in the form accumulator[element]. (@dvandersluis)
    • #9072: Lint/MissingSuper: exclude method_missing and respond_to_missing?. (@marcandre)
    • #9074: Allow specifying a pull request ID when calling rake changelog:*.(@marcandre)
  • v1.3.1 Changes

    November 16, 2020

    ๐Ÿ› Bug fixes

    • ๐Ÿ’Ž #9037: Fix required_ruby_version issue when using Gem::Requirement. (@cetinajero)
    • #9039: Fix stack level too deep error if target directory contains **. (@unasuke)
    • #6962: Limit Layout/ClassStructure constant order autocorrect to literal constants. (@tejasbubane)
    • ๐Ÿ’… #9032: Fix an error for Style/DocumentDynamicEvalDefinition when using eval-type method with interpolated string that is not heredoc without comment doc. (@koic)
    • #9049: Have Lint/ToEnumArguments accept __callee__. (@marcandre)
    • ๐Ÿ’… #9050: Fix a false positive for Style/NegatedIfElseCondition when if with !! condition. (@koic)
    • #9041: Fix a false positive for Naming/VariableNumber when using integer symbols. (@koic)

    ๐Ÿ”„ Changes

    • ๐Ÿš€ #9045: Have cut_release handle "config/default" and generate cops doc. (@marcandre)
    • ๐Ÿ‘• #9036: Allow enums method by default for Lint/ConstantDefinitionInBlock. (@koic)
    • #9035: Only complain about SafeYAML if it causes issues. (@marcandre)
  • v1.3.0 Changes

    November 12, 2020

    ๐Ÿ†• New features

    • ๐Ÿ’Ž #8761: Read required_ruby_version from gemspec file if it exists. (@HeroProtagonist)
    • ๐Ÿ‘• #9001: Add new Lint/EmptyClass cop. (@fatkodima)
    • ๐Ÿ‘• #9025: Add AllowedMethods option to Lint/ConstantDefinitionInBlock. (@koic)
    • ๐Ÿ’… #9014: Support auto-correction for Style/IfInsideElse. (@koic)
    • ๐Ÿ’… #8483: Add new Style/StaticClass cop. (@fatkodima)
    • ๐Ÿ’… #9020: Add new Style/NilLambda cop to check for lambdas that always return nil. (@dvandersluis)
    • ๐Ÿ‘• #8404: Add new Lint/DuplicateBranch cop. (@fatkodima)

    ๐Ÿ› Bug fixes

    • ๐Ÿ’… #8499: Fix Style/IfUnlessModifier and Style/WhileUntilModifier to prevent an offense if there are both first-line comment and code after end block. (@dsavochkin)
    • ๐Ÿ’… #8996: Fix a false positive for Style/MultipleComparison when comparing two sides of the disjunction is unrelated. (@koic)
    • ๐Ÿ‘• #8975: Fix an infinite loop when autocorrecting Layout/TrailingWhitespace + Lint/LiteralInInterpolation. (@fatkodima)
    • ๐Ÿ’… #8998: Fix an error for Style/NegatedIfElseCondition when using negated condition and if branch body is empty. (@koic)
    • ๐Ÿ’… #9008: Mark Style/InfiniteLoop as unsafe. (@marcandre)

    ๐Ÿ”„ Changes

    • โšก๏ธ #8978: Update Layout/LineLength autocorrection to be able to handle method calls with long argument lists. (@dvandersluis)
    • โšก๏ธ #9015: Update Lint/EmptyBlock to allow for empty lambdas. (@dvandersluis)
    • ๐Ÿ’… #9022: Add NOTE to keywords of Style/CommentAnnotation. (@koic)
    • ๐Ÿ‘• #9011: Mark autocorrection for Lint/Loop as unsafe. (@dvandersluis)
    • ๐Ÿ’… #9026: Update Style/DocumentDynamicEvalDefinition to detect comment blocks that document the evaluation. (@dvandersluis)
    • ๐Ÿšš #9004: Remove obsolete gem SafeYAML compatibility. (@marcandre)
    • ๐Ÿ’… #9023: Mark unsafe for Style/CollectionCompact. (@koic)
    • #9012: Allow AllowedIdentifiers to be specified for Naming/VariableNumber. (@dvandersluis)
  • v1.2.0 Changes

    November 05, 2020

    ๐Ÿ†• New features

    • ๐Ÿ‘ #8983: Support auto-correction for Naming/HeredocDelimiterCase. (@koic)
    • #8004: Add new GitHubActionsFormatter formatter. (@lautis)
    • ๐Ÿ’… #8175: Add new AllowedCompactTypes option for Style/RaiseArgs. (@pdobb)
    • ๐Ÿ’… #8566: Add new Style/CollectionCompact cop. (@fatkodima)
    • #8925: Add --display-time option for displaying elapsed time of rubocop command. (@joshuapinter)
    • ๐Ÿ’… #8967: Add new Style/NegatedIfElseCondition cop. (@fatkodima)
    • ๐Ÿ’… #8984: Support auto-correction for Style/DoubleNegation. (@koic)
    • ๐Ÿ‘• #8992: Support auto-correction for Lint/ElseLayout. (@koic)
    • ๐Ÿ‘• #8988: Support auto-correction for Lint/UselessSetterCall. (@koic)
    • ๐Ÿ‘ #8982: Support auto-correction for Naming/BinaryOperatorParameterName. (@koic)

    ๐Ÿ› Bug fixes

    • ๐Ÿ’… #8989: Fix multibyte support in the regexp node handler that led Style/RedundantRegexpEscape to malfunction and corrupt a program in auto-correction. (@knu)
    • #8912: Fix Layout/ElseAlignment for rescue/else/ensure inside do/end blocks with assignment. (@miry)
    • ๐Ÿ‘• #8971: Fix a false alarm for # rubocop:disable Lint/EmptyBlock inline comment with Lint/RedundantCopDisableDirective. (@koic)
    • ๐Ÿ’… #8976: Fix an incorrect auto-correct for Style/KeywordParametersOrder when when kwoptarg is before kwarg and argument parentheses omitted. (@koic)
    • #8084: Fix a bug in how Layout/SpaceAroundBlockParameters handles block parameters with a trailing comma. (@bquorning)
    • ๐Ÿ’… #8966: Fix Layout/SpaceInsideParens to enforce no spaces in empty parens for all styles. (@joshuapinter)

    ๐Ÿ”„ Changes

    • ๐Ÿ‘ #5717: Support defined?-based memoization for Naming/MemoizedInstanceVariableName cop. (@fatkodima)
    • #8964: Extend Naming/VariableNumber cop to handle method names and symbols. (@fatkodima)