Rubocop v1.1.0 Release Notes
Release Date: 2020-10-29 // over 3 years ago-
๐ New features
- ๐ #8896: Add new
Lint/DuplicateRegexpCharacterClassElement
cop. (@owst) - ๐ #8895: Add new
Lint/EmptyBlock
cop. (@fatkodima) - ๐
#8934: Add new
Style/SwapValues
cop. (@fatkodima) - ๐
#7549: Add new
Style/ArgumentsForwarding
cop. (@koic) - ๐ #8859: Add new
Lint/UnmodifiedReduceAccumulator
cop. (@dvandersluis) - ๐
#8951: Support auto-correction for
Style/MultipleComparison
. (@koic) - ๐ #8953: Add
AllowMethodComparison
option forLint/MultipleComparison
. (@koic) - #8960: Add
Regexp::Expression#loc
and#expression
to replaceparsed_tree_expr_loc
. (@marcandre) - #8930: Add rake tasks for alternative way to specify Changelog entries. (@marcandre)
- ๐
#8940: Add new
Style/DocumentDynamicEvalDefinition
cop. (@fatkodima) - ๐ #7753: Add new
Lint/ToEnumArguments
cop. (@fatkodima)
๐ Bug fixes
- ๐ #8921: Prevent
Lint/LiteralInInterpolation
from removing necessary interpolation in%W[]
and%I[]
literals. (@knu) - ๐ #8708: Fix bad regexp recognition in
Lint/OutOfRangeRegexpRef
when there are multiple regexps. (@dvandersluis) - ๐ #8945: Fix changelog task to build a correct changelog item when
Fix #123
is encountered. (@dvandersluis) - #8914: Fix autocorrection for
Layout/TrailingWhitespace
in heredocs. (@marcandre) - ๐
#8913: Fix an incorrect auto-correct for
Style/RedundantRegexpCharacterClass
due to quantifier. (@ysakasin) - #8917: Fix rubocop comment directives handling of cops with multiple levels in department name. (@fatkodima)
- #8918: Fix a false positives for
Bundler/DuplicatedGem
when a gem conditionally duplicated withinif-elsif
orcase-when
statements. (@fatkodima) - #8933: Fix an error for
Layout/EmptyLinesAroundAccessModifier
when the first line is a comment. (@matthieugendreau) - ๐ #8954: Fix autocorrection for Style/RedundantRegexpCharacterClass with %r. (@ysakasin)
๐ Changes
- ๐ #8920: Remove Capybara's
save_screenshot
fromLint/Debugger
. (@ybiquitous) - #8919: Require RuboCop AST 1.0.1 or higher. (@koic)
- ๐
#8939: Accept comparisons of multiple method calls for
Style/MultipleComparison
. (@koic) - ๐ #8950: Add
IgnoredMethods
andIgnoredClasses
toLint/NumberConversion
. (@dvandersluis)
- ๐ #8896: Add new