Update rubocop in / from 0.52.1 to 0.53.0 #103
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.52.1" to "0.53.0".0.53.0
New features
Naming/UncommunicativeBlockParamName
cop. (garettarrowood)Naming/UncommunicativeMethodParamName
cop. (garettarrowood)Lint/UnneededCopEnableDirective
cop. (garettarrowood)Lint/BigDecimalNew
cop. (koic)Style/TrailingBodyOnClass
cop. (garettarrowood)Style/TrailingBodyOnModule
cop. (garettarrowood)Style/TrailingCommmaInArrayLiteral
cop. (garettarrowood)Style/TrailingCommmaInHashLiteral
cop. (garettarrowood)Security/Open
cop. (mame)EnforcedStyleForEmptyBrackets
configuration toLayout/SpaceInsideReferenceBrackets
.(garettarrowood)Style/ModuleFunction
. (garettarrowood)--no-auto-gen-timestamp
CLI option suppresses the inclusion of the date and time it was generated in auto-generated config. (dominicsayers)Layout/EmptyComment
cop. (koic)inherit_mode
for merging arrays. (leklund).axlsx
file by default. (georf)Lint/OrderedMagicComments
cop. (koic)Style/ExpandPathArguments
cop. (koic)beginning_only
andending_only
style options toLayout/EmptyLinesAroundClassBody
cop. (jmks).arb
file by default. (deivid-rodriguez)gems.locked
orGemfile.lock
to determine the bestTargetRailsVersion
when it is not specified in the config. (roberts1000)Naming/MemoizedInstanceVariableName
cop. (satyap)Style/EmptyLineAfterGuardClause
cop. (unkmas)Rails/ActiveRecordAliases
cop. (elebow)Bug fixes
Lint/IndentationWidth
whenLint/EndAlignment
is configured withstart_of_line
. (brandonweiss)Performance/Casecmp
auto-correction. (walinga)Style/TrailingMethodEndStatement
. (garettarrowood)Style/TrailingBodyOnMethodDefinition
autocorrection. (garettarrowood)Metric/LineLength
false offenses for URLs in double quotes. (garettarrowood)Layout/EmptyLinesAroundArguments
false positives for inline access modifiers. (garettarrowood)Layout/EmptyLinesAroundArguments
false positives for multiline heredoc arguments. (garettarrowood)Rails/Presence
false detection of receiver for locally definedblank?
&present?
methods. (garettarrowood)Lint/NestedPercentLiteral
when percent characters are nested. (asherkach)Lint/InterpolationCheck
false positives on escaped interpolations. (pocke)Style/SymbolArray
andStyle/WordArray
autocorrect. (flyerhzm)Rails/Delegate
's false positive with a method call with arguments. (pocke)Style/SafeNavigation
when safe guarding more comparison methods. (rrosenblum)Style/SafeNavigation
will add safe navigation to all methods in a method chain. (rrosenblum)Style/SafeNavigation
if there is an unsafe method used in a method chain. (rrosenblum)Style/RedundantReturn
to trigger when begin-end, rescue, and ensure blocks present. (asherkach)Rails/InverseOf
acceptinverse_of: nil
to opt-out. (wata727)Rails/LexicallyScopedActionFilter
. (wata727)Rails/FilePath
when usingRails.root.join
in string interpolation of argument. (koic)Rails/Presence
when using withelsif
. (wata727)Layout/Tab
. (pocke)Style/FormatStringToken
with unrelatedformat
call. (pocke)Rails/CreateTableWithTimestamps
false positive when usingto_proc
syntax. (wata727)Lint/Void
to detectKernel#tap
as method that ignores the block's value. (untitaker)Style/RedundantException
auto-correction does not keep parenthesization. (dpostorivo)RuboCop::AST::Node#updated
. (wata727)Style/SafeNavigation
. (jonas054)Performance::RegexpMatch
when usingMatchData
before guard clause. (koic)Style/EmptyElse
autocorrect for nested if and case statements. (asherkach)end
alignment for variable assignment with line break after=
inLayout/EndAlignment
. (jonas054)Style/ColonMethodCall
when using Java package namespace. (koic)Style/RedundantSelf
with pseudo variables. (pocke)Layout/BlockEndNewline
when there is top level code outside of a class. (rrosenblum)Lint/NumberConversion
to use base 10 with Integer. (rrosenblum)Style/EachWithObject
auto-correction leaves an empty line. (flyerhzm)Changes
Performance/HashEachMethods
cop as it no longer provides a performance benefit. (urbanautomaton)Style/TrailingCommmaInLiteral
in favor of two new cops. (garettarrowood)Lint/UnneededDisable
toLint/UnneededCopDisableDirective
. (garettarrowood)*.gemfile
to Bundler cop target. (sue445)Style/StringHashKeys
to accepts environment variables. (pocke)ActiveSupport::TimeZone#strftime
method from defined dangerous methods ofRails/TimeZone
cop. (koic)Lint/EndAlignment
,Lint/DefEndAlignment
,Lint/BlockAlignment
, andLint/ConditionPosition
to theLayout
namespace. (bquorning)Formatter::JSONFormatter
from relative path to smart path. (koic)Style/SafeNavigation
will now register an offense for methods thatnil
responds to. (rrosenblum).git/
by default. (pocke)Style/SafeNavigation
to no longer register an offense for method chains exceeding 2 methods. (rrosenblum)Lint/SafeNavigationChain
. (rrosenblum)Lint/SafeNavigationChain
to highlight the entire method chain beyond the safe navigation portion. (rrosenblum)