Update rubocop in / from 0.51.0 to 0.52.0 #48
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.0".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)