All Versions
151
Latest Version
Avg Release Cycle
7 days
Latest Release
1727 days ago
Changelog History
Page 1
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
andStyle/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 thatStyle/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/*
andRails/*
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 forEnforcedStyle: indented_relative_to_receiver
. (@koic)
๐ Changes
- ๐ #9080: Make
Lint/ShadowingOuterVariable
aware ofRactor
. (@tejasbubane) - ๐ #9102: Relax regexp_parser requirement. (@marcandre)
- ๐
#9152: Fix an incorrect auto-correct for
-
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
inNaming/VariableNumber
to include variable assignments. (@PhilCoggins)
- ๐ #8684: Fix an error for
-
v1.5.0 Changes
December 01, 2020๐ New features
- ๐ #9112: Add new cop
Lint/UnexpectedBlockArity
. (@dvandersluis) - ๐ #9010:
Metrics/ParameterLists
supportsMaxOptionalParameters
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 whenelsif
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 forEnforcedStyle: 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 inelse
. (@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
whenor
precedesand
. (@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
andMetrics/MethodLength
to useIgnoredMethods
instead ofExcludedMethods
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)
- ๐ #9112: Add new cop
-
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)
- ๐
#9083: Fix
-
v1.4.1 Changes
November 23, 2020 -
v1.4.0 Changes
November 23, 2020๐ New features
- ๐
#7737: Add new
Style/RedundantArgument
cop. (@tejasbubane) - #9064: Add
EmptyLineBetweenMethodDefs
,EmptyLineBetweenClassDefs
andEmptyLineBetweenModuleDefs
config options forLayout/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
[]=
inMultilineMethodCallIndentation
. (@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 ofMetrics/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 formaccumulator[element]
. (@dvandersluis) - #9072:
Lint/MissingSuper
: excludemethod_missing
andrespond_to_missing?
. (@marcandre) - #9074: Allow specifying a pull request ID when calling
rake changelog:*
.(@marcandre)
- ๐
#7737: Add new
-
v1.3.1 Changes
November 16, 2020๐ Bug fixes
- ๐ #9037: Fix
required_ruby_version
issue when usingGem::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
whenif
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 forLint/ConstantDefinitionInBlock
. (@koic) - #9035: Only complain about
SafeYAML
if it causes issues. (@marcandre)
- ๐ #9037: Fix
-
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 toLint/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
andStyle/WhileUntilModifier
to prevent an offense if there are both first-line comment and code afterend
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 andif
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 ofStyle/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 forNaming/VariableNumber
. (@dvandersluis)
- ๐ #8761: Read
-
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 forStyle/RaiseArgs
. (@pdobb) - ๐
#8566: Add new
Style/CollectionCompact
cop. (@fatkodima) - #8925: Add
--display-time
option for displaying elapsed time ofrubocop
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
forrescue/else/ensure
insidedo/end
blocks with assignment. (@miry) - ๐ #8971: Fix a false alarm for
# rubocop:disable Lint/EmptyBlock
inline comment withLint/RedundantCopDisableDirective
. (@koic) - ๐
#8976: Fix an incorrect auto-correct for
Style/KeywordParametersOrder
when whenkwoptarg
is beforekwarg
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 forNaming/MemoizedInstanceVariableName
cop. (@fatkodima) - #8964: Extend
Naming/VariableNumber
cop to handle method names and symbols. (@fatkodima)
- ๐ #8983: Support auto-correction for