Rubocop v0.52.1 Release Notes
Release Date: 2017-12-27 // over 6 years ago-
๐ Bug fixes
- #5241: Fix an error for
Layout/AlignHash
when using a hash including only a keyword splat. ([@wata727][]) - ๐
#5245: Make
Style/FormatStringToken
to allow regexp token. ([@pocke][]) - #5224: Fix false positives for
Layout/EmptyLinesAroundArguments
operating on blocks. ([@garettarrowood][]) - ๐
#5234: Fix a false positive for
Rails/HasManyOrHasOneDependent
when usingclass_name
option. ([@koic][]) - ๐
#5273: Fix
Style/EvalWithLocation
reporting bad line offset. ([@pocke][]) - #5228: Handle overridden
Metrics/LineLength:Max
for--auto-gen-config
. ([@jonas054][]) - ๐
#5226: Suppress false positives for
Rails/RedundantReceiverInWithOptions
when including another receiver inwith_options
. ([@wata727][]) - ๐
#5259: Fix false positives in
Style/CommentedKeyword
. ([@garettarrowood][]) - #5238: Fix error when #present? or #blank? is used in if or unless modifier. ([@eitoball][])
- ๐
#5261: Fix a false positive for
Style/MixinUsage
when using inside class or module. ([@koic][]) - ๐ง #5289: Fix
Layout/SpaceInsideReferenceBrackets
andLayout/SpaceInsideArrayLiteralBrackets
configuration conflicts. ([@garettarrowood][]) - ๐
#4444: Fix
Style/AutoResourceCleanup
shouldn't flagFile.open(...).close
. ([@dpostorivo][]) - ๐ #5278: Fix deprecation check to use
loaded_path
in warning. ([@chrishulton][]) - #5293: Fix a regression for
Rails/HasManyOrHasOneDependent
when using a option ofhas_many
orhas_one
association. ([@koic][]) - ๐ #5223: False offences in :unannotated Style/FormatStringToken. ([@nattfodd][])
- ๐
#5258: Fix incorrect auto-correction for
Rails/Presence
when the else block is multiline. ([@wata727][]) - ๐
#5297: Improve inspection for
Rails/InverseOf
when includingthrough
orpolymorphic
options. ([@wata727][]) - #5281: Fix issue where
--auto-gen-config
might fail on invalid YAML. ([@bquorning][]) - ๐
#5313: Fix
Style/HashSyntax
from stripping quotes off of symbols during auto-correction for ruby22+. ([@garettarrowood][]) - ๐ #5315: Fix a false positive of
Layout/RescueEnsureAlignment
in Ruby 2.5. ([@pocke][]) - ๐
#5236: Fix false positives for
Rails/InverseOf
when usingwith_options
. ([@wata727][]) - ๐
#5291: Fix multiline indent for
Style/BracesAroundHashParameters
auto-correct. ([@flyerhzm][]) - ๐ #3318: Look for
.ruby-version
in parent directories. ([@ybiquitous][])
๐ Changes
- #5300: Display correction candidate if an incorrect cop name is given. ([@yhirano55][])
- ๐
#5233: Remove
Style/ExtendSelf
cop. ([@pocke][]) - ๐
#5221: Change
Layout/SpaceBeforeBlockBraces
'sEnforcedStyleForEmptyBraces
fromno_space
tospace
. ([@garettarrowood][]) - ๐ #3558: Create
Corrector
classes and move allautocorrect
methods out of mixin Modules. ([@garettarrowood][]) - ๐ #3437: Add new
Lint/NumberConversion
cop. ([@albertpaulp][])
- #5241: Fix an error for