Rubocop v0.72.0 Release Notes
Release Date: 2019-06-25 // almost 5 years ago-
๐ New features
- ๐ #7137: Add new
Gemspec/RubyVersionGlobalsUsage
cop. (@malyshkosergey) - ๐
#7150: Add
AllowIfModifier
option toStyle/IfInsideElse
cop. (@koic) - ๐
#7153: Add new cop
Style/FloatDivision
that checks coercion. (@tejasbubane)
๐ Bug fixes
- ๐
#7121: Fix
Style/TernaryParentheses
cop to allow safe navigation operator without parentheses. (@timon) - ๐
#7063: Fix autocorrect in
Style/TernaryParentheses
cop. (@parkerfinch) - ๐ #7106: Fix an error for
Lint/NumberConversion
when#to_i
called on a variable on a hash. (@koic) - ๐
#7107: Fix parentheses offence for numeric arguments with an operator in
Style/MethodCallWithArgsParentheses
. (@gsamokovarov) - #7119: Fix cache with non UTF-8 offense message. (@pocke)
- ๐
#7118: Fix
Style/WordArray
withencoding: binary
magic comment and non-ASCII string. (@pocke) - ๐ #7159: Fix an error for
Lint/DuplicatedKey
when using endless range. (@koic) - ๐
#7151: Fix
Style/WordArray
to also consider words containing hyphens. (@fwitzke) - #6893: Handle implicit rescue correctly in
Naming/RescuedExceptionsVariableName
. (@pocke, @anthony-robin) - ๐
#7165: Fix an auto-correct error for
Style/ConditionalAssignment
when withoutelse
branch'. (@koic) - ๐
#7171: Fix an error for
Style/SafeNavigation
when usingunless nil?
as a safeguarded'. (@koic) - #7113: This PR renames
EnforcedStyle: rails
toEnabledStyle: outdented_access_modifiers
forLayout/IndentationConsistency
. (@koic) - ๐
#7130: Skip autocorrect in
Style/FormatString
if second argument toString#%
is a variable. (@tejasbubane) - ๐
#7171: Fix an error for
Style/SafeNavigation
when usingunless nil?
as a safeguarded'. (@koic)
๐ Changes
- ๐ #7137: Add new