Update rubocop in / from 0.51.0 to 0.52.1 #119
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Dependencies.io has updated
rubocop
(a rubygems dependency in/
) from "0.51.0" to "0.52.1".0.52.1
Bug fixes
Layout/AlignHash
when using a hash including only a keyword splat. (wata727)Style/FormatStringToken
to allow regexp token. (pocke)Layout/EmptyLinesAroundArguments
operating on blocks. (garettarrowood)Rails/HasManyOrHasOneDependent
when usingclass_name
option. (koic)Style/EvalWithLocation
reporting bad line offset. (pocke)Metrics/LineLength:Max
for--auto-gen-config
. (jonas054)Rails/RedundantReceiverInWithOptions
when including another receiver inwith_options
. (wata727)Style/CommentedKeyword
. (garettarrowood)Style/MixinUsage
when using inside class or module. (koic)Layout/SpaceInsideReferenceBrackets
andLayout/SpaceInsideArrayLiteralBrackets
configuration conflicts. (garettarrowood)Style/AutoResourceCleanup
shouldn't flagFile.open(...).close
. (dpostorivo)loaded_path
in warning. (chrishulton)Rails/HasManyOrHasOneDependent
when using a option ofhas_many
orhas_one
association. (koic)Rails/Presence
when the else block is multiline. (wata727)Rails/InverseOf
when includingthrough
orpolymorphic
options. (wata727)--auto-gen-config
might fail on invalid YAML. (bquorning)Style/HashSyntax
from stripping quotes off of symbols during autocorrection for ruby22+. (garettarrowood)Layout/RescueEnsureAlignment
in Ruby 2.5. (pocke)Rails/InverseOf
when usingwith_options
. (wata727)Style/BracesAroundHashParameters
autocorrect. (flyerhzm).ruby-version
in parent directories. (ybiquitous)Changes
Style/ExtendSelf
cop. (pocke)Layout/SpaceBeforeBlockBraces
'sEnforcedStyleForEmptyBraces
fromno_space
tospace
. (garettarrowood)Corrector
classes and move allautocorrect
methods out of mixin Modules. (garettarrowood)0.52.0
New features
TargetRubyVersion
2.5. (walf443)Layout/ClassStructure
cop that checks whether definitions in a class are in the configured order. This cop is disabled by default. (jonatas)Rails/InverseOf
checks for association arguments that require setting theinverse_of
option manually. (bdewater)Layout/SpaceInsideReferenceBrackets
cop. (garettarrowood)Layout/SpaceInsideArrayLiteralBrackets
cop. (garettarrowood)Style/TrailingBodyOnMethodDefinition
cop. (garettarrowood)Style/TrailingMethodEndStatment
cop. (garettarrowood)Style/StringHashKeys
cop. (donjar)Style/RandomWithOffset
cop. (donjar)Lint/ShadowedArgument
cop and remove argument shadowing detection fromLint/UnusedBlockArgument
andLint/UnusedMethodArgument
. (akhramov)Lint/MissingCopEnableDirective
cop. (tdeo)Rails/EnvironmentComparison
cop. (tdeo)AllowedChars
option toStyle/AsciiComments
cop. (hedgesky)Style/EmptyBlockParameter
andStyle/EmptyLambdaParameter
cops. (pocke)Gemspec/RequiredRubyVersion
cop. (koic)Gemspec/RedundantAssignment
cop. (koic)unannotated
option toStyle/FormatStringToken
cop. (drenmi)Rails/CreateTableWithTimestamps
cop. (wata727)Style/ColonMethodDefinition
cop. (rrosenblum)Style/ExtendSelf
cop. (drenmi)Rails/RedundantReceiverInWithOptions
cop. (koic)Rails/LexicallyScopedActionFilter
cop. (wata727)Style/EvalWithLocation
cop. (pocke)Rails/Presence
cop. (wata727)Bug fixes
Layout/EmptyLinesAroundArguments
. (garettarrowood)Style/ConstantName
with constant names using non-ASCII capital letters with accents. (timrogers)Layout/BlockEndNewline
cop from introducing trailing whitespaces. (bgeuken)Performance/HashEachMethods
when unused argument(s) exists in other blocks. (pocke)Performance/HashEachMethods
. (pocke)...::DateTime
. (dpostorivo)Lint/UnneededDisable
, which was returning offenses even after being disabled in a comment. (tdeo)EnforcedStyleForEmptyBraces
forLayout/SpaceBeforeBlockBraces
cop. (drenmi)Rails/HasManyOrHasOneDependent
aware of multiple associations inwith_options
. (koic)Layout/MultilineOperationIndentation
when an operation spans multiple lines and contains a ternary expression. (rrosenblum)Style/MixinUsage
cop. (koic)Style/EmptyElse
autocorrection removes comments from branches. (dpostorivo)Style/UnneededPercentQ
from breaking on strings that are concated with backslash. (pocke)Style/PercentLiteralDelimiters
incorrectly automatically modifies escaped percent literal delimiter. (koic)Naming/ConstantName
false offense on assigning to a nonoffensive assignment. (garettarrowood)Style/HashSyntax
cop when hash is used as unspaced argument. (drenmi)Style/BracesAroundHashParameters
auto-correction. (garettarrowood)Style/MixinUsage
wheninclude
call is a method argument. (koic)Lint/UnneededSplatExpansion
, whenArray.new
resides in an array literal. (akhramov)Style/SafeNavigation
when safe guarding arithmetic operation or assignment. (tiagotex)Style/MinMax
from breaking on implicit receivers. (drenmi)Style/SafeNavigation
when safe guarding comparisons. (tiagotex)Style/RedundantParentheses
cop when unspaced ternary is present. (tiagotex)Naming/ConstantName
cop when using frozen object assignment. (koic)Style/SafeNavigation
when the right hand side is negated. (rrosenblum)Bundler/OrderedGems
when gems are references from variables (ignores them in the sorting). (tdeo)Changes
Metrics/ParameterLists
. (reitermarkus)Style/StderrPuts
. (jaredbeck)Lint/RedundantWithIndex
cop aware of offset argument. (koic)Metrics/LineLength: Max
when generating.rubocop_todo.yml
. (jonas054)SupportedStyles
from "Configuration parameters" in.rubocop_todo.yml
. (pocke)Lint/RescueWithoutErrorClass
has been replaced byStyle/RescueStandardError
. (rrosenblum)Layout/SpaceInsideBrackets
in favor of two new configurable cops. (garettarrowood)define_method
. (pocke)Layout/IndentHeredoc
aware of line length. (pocke)--show-cops
option aware of--force-default-config
. (pocke)Lint/MissingCopEnableDirective
cop. (tdeo)Lint/Syntax
cop with the same settings as the default. (tdeo)