Bump rubocop from 0.76.0 to 1.1.0
Bumps rubocop from 0.76.0 to 1.1.0.
Release notes
Sourced from rubocop's releases.
RuboCop 1.1
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](https://github.com/rubocop-hq/rubocop/issues/123)
is encountered. (@dvandersluis)- #8914: Fix autocorrection for
Layout/TrailingWhitespace
in heredocs. (@marcandre)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)RuboCop 1.0
The first stable RuboCop release ever is finally here! You can read more about this special release here.
New features
- #7944: Add
MaxUnannotatedPlaceholdersAllowed
option toStyle/FormatStringToken
cop. ([@Tietew][])- #8379: Handle redundant parentheses around an interpolated expression for
Style/RedundantParentheses
cop. (@fatkodima)Bug fixes
... (truncated)
- #8892: Fix an error for
Style/StringConcatenation
when correcting nested concatenable parts. (@fatkodima)- #8781: Fix handling of comments in
Style/SafeNavigation
autocorrection. (@dvandersluis)- #8907: Fix an incorrect auto-correct for
Layout/ClassStructure
when heredoc constant is defined after public method. (@koic)
Changelog
Sourced from rubocop's changelog.
1.1.0 (2020-10-29)
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](https://github.com/rubocop-hq/rubocop/issues/123)
is encountered. ([@dvandersluis][])- #8914: Fix autocorrection for
Layout/TrailingWhitespace
in heredocs. ([@marcandre][])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][])1.0.0 (2020-10-21)
New features
- #7944: Add
MaxUnannotatedPlaceholdersAllowed
option toStyle/FormatStringToken
cop. ([@Tietew][])- #8379: Handle redundant parentheses around an interpolated expression for
Style/RedundantParentheses
cop. ([@fatkodima][])Bug fixes
- #8892: Fix an error for
Style/StringConcatenation
when correcting nested concatenable parts. ([@fatkodima][])- #8781: Fix handling of comments in
Style/SafeNavigation
autocorrection. ([@dvandersluis][])- #8907: Fix an incorrect auto-correct for
Layout/ClassStructure
when heredoc constant is defined after public method. ([@koic][])- #8889: Cops can use new
after_<type>
callbacks (only for nodes that may have children nodes, like:send
and unlike:sym
). ([@marcandre][])- #8906: Fix a false positive for
Layout/SpaceAroundOperators
when upward alignment. ([@koic][])- #8585: Fix false positive in
Style/RedundantSelf
cop with nestedself
access. ([@marcotc][])- #8692: Fix
Layout/TrailingWhitespace
auto-correction in heredoc. ([@marcandre][])Changes
... (truncated)
- #8882: (Potentially breaking) RuboCop assumes that Cop classes do not define new
on_<type>
methods at runtime (e.g. viaextend
ininitialize
). ([@marcandre][])
Commits
-
85bb359
Cut 1.1 -
ea2de20
Update Changelog -
1bb5354
Prevent Lint/LiteralInInterpolation from removing necessary interpolation -
5905396
[Fix #8948] Fix autocorrection for Style/RedundantRegexpCharacterClass with %r -
8dc26d7
[Fix #8950] AddIgnoredMethods
andIgnoredClasses
to `Lint/NumberConversi... -
b98e559
Tweak default changelog entry -
ef05be9
Usepublic_send
instead ofsend
when public sendable -
ee01699
Fix some issues inLint/UnModifiedReduceAccumulator
(#8949) -
40ce90e
AddRegexp::Expression#loc
and#expression
to replaceparsed_tree_expr_loc
-
58c9474
Store parsed regexp in Node. - Additional commits viewable in compare view