Rubocop v0.81.0 Release Notes
Release Date: 2020-04-01 // about 4 years ago-
๐ New features
- ๐ #7299: Add new
Lint/RaiseException
cop. (@denys281) - ๐
#7793: Prefer
include?
overmember?
inStyle/CollectionMethods
. (@dmolesUC) - ๐ #7654: Support
with_fixed_indentation
option forLayout/ArrayAlignment
cop. (@nikitasakov) - ๐
#7783: Support Ruby 2.7's numbered parameter for
Style/RedundantSort
. (@koic) - #7795: Make
Layout/EmptyLineAfterGuardClause
aware of case whereand
oror
is used before keyword that break control (e.g.and return
). (@koic) - ๐ #7786: Support Ruby 2.7's pattern match for
Layout/ElseAlignment
cop. (@koic) - ๐ #7784: Support Ruby 2.7's numbered parameter for
Lint/SafeNavigationChain
. (@koic) - ๐
#7331: Add
forbidden
option toStyle/ModuleFunction
cop. (@weh) - ๐ #7699: Add new
Lint/StructNewOverride
cop. (@ybiquitous) - ๐
#7637: Add new
Style/TrailingCommaInBlockArgs
cop. (@pawptart) - ๐
#7809: Add auto-correction for
Style/EndBlock
cop. (@tejasbubane) - ๐ #7739: Add
IgnoreNotImplementedMethods
configuration toLint/UnusedMethodArgument
. (@tejasbubane) - ๐
#7740: Add
AllowModifiersOnSymbols
configuration toStyle/AccessModifierDeclarations
. (@tejasbubane) - ๐ #7812: Add auto-correction for
Lint/BooleanSymbol
cop. (@tejasbubane) - ๐ง #7823: Add
IgnoredMethods
configuration inMetrics/AbcSize
,Metrics/CyclomaticComplexity
, andMetrics/PerceivedComplexity
cops. (@drenmi) - ๐
#7816: Support Ruby 2.7's numbered parameter for
Style/Lambda
. (@koic) - ๐
#7829: Fix an error for
Style/OneLineConditional
when one of the branches containsnext
keyword. (@koic)
๐ Bug fixes
- ๐
#7236: Mark
Style/InverseMethods
auto-correct as incompatible withStyle/SymbolProc
. (@drenmi) - ๐ #7144: Fix
Style/Documentation
constant visibility declaration in namespace. (@AdrienSldy) - ๐
#7779: Fix a false positive for
Style/MultilineMethodCallIndentation
when using Ruby 2.7's numbered parameter. (@koic) - #7733: Fix rubocop-junit-formatter imcompatibility XML for JUnit formatter. (@koic)
- ๐
#7767: Skip array literals in
Style/HashTransformValues
andStyle/HashTransformKeys
. (@tejasbubane) - #7791: Fix an error on auto-correction for
Layout/BlockEndNewline
when}
of multiline block without processing is not on its own line. (@koic) - #7778: Fix a false positive for
Layout/EndAlignment
when a non-whitespace is used before theend
keyword. (@koic) - ๐ #7806: Fix an error for
Lint/ErbNewArguments
cop when inspectingActionView::Template::Handlers::ERB.new
. (@koic) - #7814: Fix a false positive for
Migrate/DepartmentName
cop when inspecting an unexpected disabled comment format. (@koic) - ๐
#7728: Fix an error for
Style/OneLineConditional
when one of the branches contains a self keyword. (@koic) - #7825: Fix crash for
Layout/MultilineMethodCallIndentation
with key access to hash. (@tejasbubane) - ๐
#7831: Fix a false positive for
Style/HashEachMethods
when receiver is implicit. (@koic)
๐ Changes
- #7797: Allow unicode-display_width dependency version 1.7.0. (@yuritomanek)
- ๐ #7779: Change
AllowComments
option ofLint/SuppressedException
to true by default. (@koic) - #7320:
Naming/MethodName
now flagsattr_reader/attr_writer/attr_accessor/attr
. (@denys281) - #7813: (Breaking) Remove
Lint/EndInMethod
cop. (@tejasbubane)
- ๐ #7299: Add new