Rubocop v1.4.0 Release Notes
Release Date: 2020-11-23 // over 3 years ago-
๐ 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