Rubocop v0.46.0 Release Notes
Release Date: 2016-11-30 // over 7 years ago-
๐ New features
- #3600: Add new
Bundler/DuplicatedGem
cop. ([@jmks][]) - #3624: Add new configuration option
empty_lines_special
toStyle/EmptyLinesAroundClassBody
andStyle/EmptyLinesAroundModuleBody
. ([@legendetm][]) - โ Add new
Style/EmptyMethod
cop. ([@drenmi][]) - ๐
Style/EmptyLiteral
will now auto-correctHash.new
when it is the first argument being passed to a method. The arguments will be wrapped with parenthesis. ([@rrosenblum][]) - 0๏ธโฃ #3713: Respect
DisabledByDefault
in parent configs. ([@aroben][]) - ๐ New cop
Rails/EnumUniqueness
checks for duplicate values defined in enum config. ([@olliebennett][]) - ๐ New cop
Rails/EnumUniqueness
checks for duplicate values defined in enum config hash. ([@olliebennett][]) - #3451: Add new
require_parentheses_when_complex
style toStyle/TernaryParentheses
cop. ([@swcraig][]) - #3600: Add new
Bundler/OrderedGems
cop. ([@tdeo][]) - ๐ง #3479: Add new configuration option
IgnoredPatterns
toMetrics/LineLength
. ([@jonas054][])
๐ Changes
- ๐ The offense range for
Performance/FlatMap
now includes any parameters that are passed toflatten
. ([@rrosenblum][]) - ๐
#1747: Update
Style/SpecialGlobalVars
messages with a reminder torequire 'English'
. ([@ivanovaleksey][]) - ๐ Checks
binding.irb
call byLint/Debugger
cop. ([@pocke][]) - ๐ #3742: Checks
min
andmax
call byPerformance/CompareWithBlock
cop. ([@pocke][])
๐ Bug fixes
- ๐ #3662: Fix the auto-correction of
Lint/UnneededSplatExpansion
when the splat expansion is inside of another array. ([@rrosenblum][]) - ๐
#3699: Fix false positive in
Style/VariableNumber
on variable names ending with an underscore. ([@bquorning][]) - ๐
#3687: Fix the fact that
Style/TernaryParentheses
cop claims to correct uncorrected offenses. ([@Ana06][]) - ๐
#3568: Fix
--auto-gen-config
behavior forStyle/VariableNumber
. ([@jonas054][]) - โ Add
format
as an acceptable keyword argument forRails/HttpPositionalArguments
. ([@aesthetikx][]) - ๐
#3598: In
Style/NumericPredicate
, don't reportx != 0
orx.nonzero?
as the expressions have different values. ([@jonas054][]) - ๐
#3690: Do not register an offense for multiline braces with content in
Style/SpaceInsideBlockBraces
. ([@rrosenblum][]) - #3746:
Lint/NonLocalExitFromIterator
does not warn aboutreturn
in a block which is passed toObject#define_singleton_method
. ([@AlexWayfer][])
- #3600: Add new