All Versions
151
Latest Version
Avg Release Cycle
7 days
Latest Release
1205 days ago
Changelog History
Page 8
Changelog History
Page 8
-
v0.54.0 Changes
March 21, 2018๐ New features
- ๐
#5597: Add new
Rails/HttpStatus
cop. ([@anthony-robin][]) - ๐
#5643: Add new
Style/UnpackFirst
cop. ([@bdewater][])
๐ Bug fixes
- ๐ #5744: Teach
Performance/StartWith
andEndWith
cops to look forRegexp#match?
. ([@bdewater][]) - #5683: Fix message for
Naming/UncommunicativeXParamName
cops. ([@jlfaber][]) - #5680: Fix
Layout/ElseAlignment
forrescue/else/ensure
insidedo/end
blocks. ([@YukiJikumaru][]) - ๐ #5642: Fix
Style/Documentation
:nodoc:
for compact-style nested modules/classes. ([@ojab][]) - #5648: Suggest valid memoized instance variable for predicate method. ([@satyap][])
- #5670: Suggest valid memoized instance variable for bang method. ([@pocke][])
- #5623: Fix
Bundler/OrderedGems
when a group includes duplicate gems. ([@colorbox][]) - #5633: Fix broken
--fail-fast
. ([@mmyoji][]) - ๐
#5630: Fix false positive for
Style/FormatStringToken
when using placeholder arguments informat
method. ([@koic][]) - #5651: Fix NoMethodError when specified config file that does not exist. ([@onk][])
- #5647: Fix encoding method of RuboCop::MagicComment::SimpleComment. ([@htwroclau][])
- ๐
#5619: Do not register an offense in
Style/InverseMethods
when comparing constants with<
,>
,<=
, or>=
. If the code is being used to determine class hierarchy, the correction might not be accurate. ([@rrosenblum][]) - ๐
#5641: Disable
Style/TrivialAccessors
auto-correction fordef
withprivate
. ([@pocke][]) - ๐ Fix bug where
Style/SafeNavigation
does not auto-correct all chained methods resulting in aLint/SafeNavigationChain
offense. ([@rrosenblum][]) - #5436: Allow empty kwrest args in
UncommunicativeName
cops. ([@pocke][]) - #5674: Fix auto-correction of
Layout/EmptyComment
when the empty comment appears on the same line as code. ([@rrosenblum][]) - ๐
#5679: Fix a false positive for
Style/EmptyLineAfterGuardClause
when guard clause is beforerescue
orensure
. ([@koic][]) - ๐ #5694: Match Rails versions with multiple digits when reading the TargetRailsVersion from the bundler lock files. ([@roberts1000][])
- ๐
#5700: Fix a false positive for
Style/EmptyLineAfterGuardClause
when guard clause is beforeelse
. ([@koic][]) - ๐ Fix false positive in
Naming/ConstantName
when using conditional assignment. ([@drenmi][])
๐ Changes
- 0๏ธโฃ #5626: Change
Naming/UncommunicativeMethodParamName
addto
to allowed names in default config. ([@unused][]) - ๐ง #5640: Warn about user configuration overriding other user configuration only with
--debug
. ([@jonas054][]) - #5637: Fix error for
Layout/SpaceInsideArrayLiteralBrackets
when contains an array literal as an argument after a heredoc is started. ([@koic][]) - ๐ #5610: Use
gems.locked
orGemfile.lock
to determine the bestTargetRubyVersion
when it is not specified in the config. ([@roberts1000][]) - ๐
#5390: Allow exceptions to
Style/InlineComment
for inline comments which enable or disable rubocop cops. ([@jfelchner][]) - โ Add progress bar to offenses formatter. ([@drewpterry][])
- ๐ #5498: Correct
IndentHeredoc
message for Ruby 2.3 when using<<~
operator with invalid indentation. ([@hamada14][])
- ๐
#5597: Add new
-
v0.53.0 Changes
March 05, 2018๐ New features
- #3666: Add new
Naming/UncommunicativeBlockParamName
cop. ([@garettarrowood][]) - #3666: Add new
Naming/UncommunicativeMethodParamName
cop. ([@garettarrowood][]) - ๐ #5356: Add new
Lint/UnneededCopEnableDirective
cop. ([@garettarrowood][]) - ๐ #5248: Add new
Lint/BigDecimalNew
cop. ([@koic][]) - โ Add new
Style/TrailingBodyOnClass
cop. ([@garettarrowood][]) - โ Add new
Style/TrailingBodyOnModule
cop. ([@garettarrowood][]) - ๐
#3394: Add new
Style/TrailingCommaInArrayLiteral
cop. ([@garettarrowood][]) - ๐
#3394: Add new
Style/TrailingCommaInHashLiteral
cop. ([@garettarrowood][]) - ๐ #5319: Add new
Security/Open
cop. ([@mame][]) - โ Add
EnforcedStyleForEmptyBrackets
configuration toLayout/SpaceInsideReferenceBrackets
.([@garettarrowood][]) - ๐
#5050: Add auto-correction to
Style/ModuleFunction
. ([@garettarrowood][]) - #5358:
--no-auto-gen-timestamp
CLI option suppresses the inclusion of the date and time it was generated in auto-generated config. ([@dominicsayers][]) - #4274: Add new
Layout/EmptyComment
cop. ([@koic][]) - ๐ง #4477: Add new configuration directive:
inherit_mode
for merging arrays. ([@leklund][]) - 0๏ธโฃ #5532: Include
.axlsx
file by default. ([@georf][]) - ๐ #5490: Add new
Lint/OrderedMagicComments
cop. ([@koic][]) - ๐
#4008: Add new
Style/ExpandPathArguments
cop. ([@koic][]) - #4812: Add
beginning_only
andending_only
style options toLayout/EmptyLinesAroundClassBody
cop. ([@jmks][]) - 0๏ธโฃ #5591: Include
.arb
file by default. ([@deivid-rodriguez][]) - ๐ #5473: Use
gems.locked
orGemfile.lock
to determine the bestTargetRailsVersion
when it is not specified in the config. ([@roberts1000][]) - โ Add new
Naming/MemoizedInstanceVariableName
cop. ([@satyap][]) - ๐
#5376: Add new
Style/EmptyLineAfterGuardClause
cop. ([@unkmas][]) - โ Add new
Rails/ActiveRecordAliases
cop. ([@elebow][])
๐ Bug fixes
- #4105: Fix
Lint/IndentationWidth
whenLint/EndAlignment
is configured withstart_of_line
. ([@brandonweiss][]) - ๐ #5453: Fix erroneous downcase in
Performance/Casecmp
auto-correction. ([@walinga][]) - ๐
#5343: Fix offense detection in
Style/TrailingMethodEndStatement
. ([@garettarrowood][]) - ๐
#5334: Fix semicolon removal for
Style/TrailingBodyOnMethodDefinition
auto-correction. ([@garettarrowood][]) - #5350: Fix
Metric/LineLength
false offenses for URLs in double quotes. ([@garettarrowood][]) - #5333: Fix
Layout/EmptyLinesAroundArguments
false positives for inline access modifiers. ([@garettarrowood][]) - #5339: Fix
Layout/EmptyLinesAroundArguments
false positives for multiline heredoc arguments. ([@garettarrowood][]) - ๐
#5383: Fix
Rails/Presence
false detection of receiver for locally definedblank?
&present?
methods. ([@garettarrowood][]) - ๐ #5314: Fix false positives for
Lint/NestedPercentLiteral
when percent characters are nested. ([@asherkach][]) - ๐ #5357: Fix
Lint/InterpolationCheck
false positives on escaped interpolations. ([@pocke][]) - ๐
#5409: Fix multiline indent for
Style/SymbolArray
andStyle/WordArray
auto-correct. ([@flyerhzm][]) - ๐
#5393: Fix
Rails/Delegate
's false positive with a method call with arguments. ([@pocke][]) - ๐
#5348: Fix false positive for
Style/SafeNavigation
when safe guarding more comparison methods. ([@rrosenblum][]) - ๐
#4889: Auto-correcting
Style/SafeNavigation
will add safe navigation to all methods in a method chain. ([@rrosenblum][]) - ๐
#5287: Do not register an offense in
Style/SafeNavigation
if there is an unsafe method used in a method chain. ([@rrosenblum][]) - ๐
#5401: Fix
Style/RedundantReturn
to trigger when begin-end, rescue, and ensure blocks present. ([@asherkach][]) - ๐
#5426: Make
Rails/InverseOf
acceptinverse_of: nil
to opt-out. ([@wata727][]) - ๐
#5448: Improve
Rails/LexicallyScopedActionFilter
. ([@wata727][]) - ๐
#3947: Fix false positive for
Rails/FilePath
when usingRails.root.join
in string interpolation of argument. ([@koic][]) - ๐
#5479: Fix false positives for
Rails/Presence
when using withelsif
. ([@wata727][]) - ๐ #5427: Fix exception when executing from a different drive on Windows. ([@orgads][])
- #5429: Detect tabs other than indentation by
Layout/Tab
. ([@pocke][]) - ๐
#5496: Fix a false positive of
Style/FormatStringToken
with unrelatedformat
call. ([@pocke][]) - ๐
#5503: Fix
Rails/CreateTableWithTimestamps
false positive when usingto_proc
syntax. ([@wata727][]) - ๐ #5512: Improve
Lint/Void
to detectKernel#tap
as method that ignores the block's value. ([@untitaker][]) - ๐
#5520: Fix
Style/RedundantException
auto-correction does not keep parenthesization. ([@dpostorivo][]) - โก๏ธ #5524: Return the instance based on the new type when calls
RuboCop::AST::Node#updated
. ([@wata727][]) - ๐
#5527: Avoid behavior-changing corrections in
Style/SafeNavigation
. ([@jonas054][]) - ๐ #5539: Fix compilation error and ruby code generation when passing args to funcall and predicates. ([@Edouard-chin][])
- #4669: Use binary file contents for cache key so changing EOL characters invalidates the cache. ([@jonas054][])
- ๐ #3947: Fix false positive for
Performance::RegexpMatch
when usingMatchData
before guard clause. ([@koic][]) - ๐
#5515: Fix
Style/EmptyElse
auto-correct for nested if and case statements. ([@asherkach][]) - #5582: Fix
end
alignment for variable assignment with line break after=
inLayout/EndAlignment
. ([@jonas054][]) - ๐
#5602: Fix false positive for
Style/ColonMethodCall
when using Java package namespace. ([@koic][]) - ๐
#5603: Fix falsy offense for
Style/RedundantSelf
with pseudo variables. ([@pocke][]) - #5547: Fix auto-correction of of
Layout/BlockEndNewline
when there is top level code outside of a class. ([@rrosenblum][]) - ๐ #5599: Fix the suggestion being used by
Lint/NumberConversion
to use base 10 with Integer. ([@rrosenblum][]) - ๐
#5534: Fix
Style/EachWithObject
auto-correction leaves an empty line. ([@flyerhzm][]) - ๐ Fix
Layout/EmptyLinesAroundAccessModifier
false-negative when next string after access modifier started with end. ([@unkmas][])
๐ Changes
- ๐ #5589: Remove
Performance/HashEachMethods
cop as it no longer provides a performance benefit. ([@urbanautomaton][]) - ๐
#3394: Remove
Style/TrailingCommmaInLiteral
in favor of two new cops. ([@garettarrowood][]) - ๐ Rename
Lint/UnneededDisable
toLint/UnneededCopDisableDirective
. ([@garettarrowood][]) - #5365: Add
*.gemfile
to Bundler cop target. ([@sue445][]) - ๐ง #4477: Warn when user configuration overrides other user configuration. ([@jonas054][])
- ๐
#5240: Make
Style/StringHashKeys
to accepts environment variables. ([@pocke][]) - ๐ง #5395: Always exit 2 when specified configuration file does not exist. ([@pocke][])
- ๐ #5402: Remove undefined
ActiveSupport::TimeZone#strftime
method from defined dangerous methods ofRails/TimeZone
cop. ([@koic][]) - ๐ #4704: Move
Lint/EndAlignment
,Lint/DefEndAlignment
,Lint/BlockAlignment
, andLint/ConditionPosition
to theLayout
namespace. ([@bquorning][]) - #5283: Change file path output by
Formatter::JSONFormatter
from relative path to smart path. ([@koic][]) - ๐
Style/SafeNavigation
will now register an offense for methods thatnil
responds to. ([@rrosenblum][]) - 0๏ธโฃ #5542: Exclude
.git/
by default. ([@pocke][]) - ๐ Tell Read the Docs to build downloadable docs. ([@eostrom][])
- ๐
Change
Style/SafeNavigation
to no longer register an offense for method chains exceeding 2 methods. ([@rrosenblum][]) - โ Remove auto-correction from
Lint/SafeNavigationChain
. ([@rrosenblum][]) - ๐ Change the highlighting of
Lint/SafeNavigationChain
to highlight the entire method chain beyond the safe navigation portion. ([@rrosenblum][])
- #3666: Add new
-
v0.52.1 Changes
December 27, 2017๐ 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
-
v0.52.0 Changes
December 12, 2017๐ New features
- ๐ #5101: Allow to specify
TargetRubyVersion
2.5. ([@walf443][]) - ๐ง #1575: Add new
Layout/ClassStructure
cop that checks whether definitions in a class are in the configured order. This cop is disabled by default. ([@jonatas][]) - ๐ New cop
Rails/InverseOf
checks for association arguments that require setting theinverse_of
option manually. ([@bdewater][]) - #4811: Add new
Layout/SpaceInsideReferenceBrackets
cop. ([@garettarrowood][]) - #4811: Add new
Layout/SpaceInsideArrayLiteralBrackets
cop. ([@garettarrowood][]) - ๐
#4252: Add new
Style/TrailingBodyOnMethodDefinition
cop. ([@garettarrowood][]) - โ Add new
Style/TrailingMethodEndStatment
cop. ([@garettarrowood][]) - #5074: Add Layout/EmptyLinesAroundArguments cop. ([@garettarrowood][])
- ๐
#4650: Add new
Style/StringHashKeys
cop. ([@donjar][]) - #1583: Add a quiet formatter. ([@drenmi][])
- โ Add new
Style/RandomWithOffset
cop. ([@donjar][]) - ๐ #4892: Add new
Lint/ShadowedArgument
cop and remove argument shadowing detection fromLint/UnusedBlockArgument
andLint/UnusedMethodArgument
. ([@akhramov][]) - ๐ #4674: Add a new
Lint/MissingCopEnableDirective
cop. ([@tdeo][]) - โ Add new
Rails/EnvironmentComparison
cop. ([@tdeo][]) - โ Add
AllowedChars
option toStyle/AsciiComments
cop. ([@hedgesky][]) - ๐
#5031: Add new
Style/EmptyBlockParameter
andStyle/EmptyLambdaParameter
cops. ([@pocke][]) - ๐ #5057: Add new
Gemspec/RequiredRubyVersion
cop. ([@koic][]) - #5087: Add new
Gemspec/RedundantAssignment
cop. ([@koic][]) - โ Add
unannotated
option toStyle/FormatStringToken
cop. ([@drenmi][]) - ๐
#5077: Add new
Rails/CreateTableWithTimestamps
cop. ([@wata727][]) - โ Add new
Style/ColonMethodDefinition
cop. ([@rrosenblum][]) - โ Add new
Style/ExtendSelf
cop. ([@drenmi][]) - ๐
#5185: Add new
Rails/RedundantReceiverInWithOptions
cop. ([@koic][]) - ๐
#5177: Add new
Rails/LexicallyScopedActionFilter
cop. ([@wata727][]) - ๐
#5173: Add new
Style/EvalWithLocation
cop. ([@pocke][]) - ๐
#5208: Add new
Rails/Presence
cop. ([@wata727][]) - ๐ Allow auto-correction of ClassAndModuleChildren. ([@siegfault][], [@melch][])
๐ Bug fixes
- #5096: Fix incorrect detection and auto-correction of multiple extend/include/prepend. ([@marcandre][])
- #5219: Fix incorrect empty line detection for block arguments in
Layout/EmptyLinesAroundArguments
. ([@garettarrowood][]) - #4662: Fix incorrect indent level detection when first line of heredoc is blank. ([@sambostock][])
- ๐
#5016: Fix a false positive for
Style/ConstantName
with constant names using non-ASCII capital letters with accents. ([@timrogers][]) - #4866: Prevent
Layout/BlockEndNewline
cop from introducing trailing whitespaces. ([@bgeuken][]) - #3396: Concise error when config. file not found. ([@jaredbeck][])
- ๐ #4881: Fix a false positive for
Performance/HashEachMethods
when unused argument(s) exists in other blocks. ([@pocke][]) - ๐ #4883: Fix auto-correction for
Performance/HashEachMethods
. ([@pocke][]) - ๐
#4896: Fix Style/DateTime wrongly triggered on classes
...::DateTime
. ([@dpostorivo][]) - ๐ #4938: Fix behavior of
Lint/UnneededDisable
, which was returning offenses even after being disabled in a comment. ([@tdeo][]) - ๐
#4887: Add undeclared configuration option
EnforcedStyleForEmptyBraces
forLayout/SpaceBeforeBlockBraces
cop. ([@drenmi][]) - #4987: Skip permission check when using stdin option. ([@mtsmfm][])
- ๐
#4909: Make
Rails/HasManyOrHasOneDependent
aware of multiple associations inwith_options
. ([@koic][]) - #4794: Fix an error in
Layout/MultilineOperationIndentation
when an operation spans multiple lines and contains a ternary expression. ([@rrosenblum][]) - ๐
#4885: Fix false offense detected by
Style/MixinUsage
cop. ([@koic][]) - ๐
#3363: Fix
Style/EmptyElse
auto-correction removes comments from branches. ([@dpostorivo][]) - #5025: Fix error with Layout/MultilineMethodCallIndentation cop and lambda.(...). ([@dpostorivo][])
- ๐
#4781: Prevent
Style/UnneededPercentQ
from breaking on strings that are concated with backslash. ([@pocke][]) - ๐
#4363: Fix
Style/PercentLiteralDelimiters
incorrectly automatically modifies escaped percent literal delimiter. ([@koic][]) - #5053: Fix
Naming/ConstantName
false offense on assigning to a nonoffensive assignment. ([@garettarrowood][]) - ๐
#5019: Fix auto-correct for
Style/HashSyntax
cop when hash is used as unspaced argument. ([@drenmi][]) - ๐
#5052: Improve accuracy of
Style/BracesAroundHashParameters
auto-correction. ([@garettarrowood][]) - ๐
#5059: Fix a false positive for
Style/MixinUsage
wheninclude
call is a method argument. ([@koic][]) - ๐ #5071: Fix a false positive in
Lint/UnneededSplatExpansion
, whenArray.new
resides in an array literal. ([@akhramov][]) - ๐ #4071: Prevent generating wrong code by Style/ColonMethodCall and Style/RedundantSelf. ([@pocke][])
- ๐
#5089: Fix false positive for
Style/SafeNavigation
when safe guarding arithmetic operation or assignment. ([@tiagotex][]) - ๐
#5099: Prevent
Style/MinMax
from breaking on implicit receivers. ([@drenmi][]) - ๐
#5079: Fix false positive for
Style/SafeNavigation
when safe guarding comparisons. ([@tiagotex][]) - ๐
#5075: Fix auto-correct for
Style/RedundantParentheses
cop when unspaced ternary is present. ([@tiagotex][]) - #5155: Fix a false negative for
Naming/ConstantName
cop when using frozen object assignment. ([@koic][]) - ๐ Fix a false positive in
Style/SafeNavigation
when the right hand side is negated. ([@rrosenblum][]) - #5128: Fix
Bundler/OrderedGems
when gems are references from variables (ignores them in the sorting). ([@tdeo][])
๐ Changes
- #4848: Exclude lambdas and procs from
Metrics/ParameterLists
. ([@reitermarkus][]) - #5120: Improve speed of RuboCop::PathUtil#smart_path. ([@walf443][])
- ๐
#4888: Improve offense message of
Style/StderrPuts
. ([@jaredbeck][]) - ๐ #4886: Fix false offense for Style/CommentedKeyword. ([@michniewicz][])
- ๐ #4977: Make
Lint/RedundantWithIndex
cop aware of offset argument. ([@koic][]) - #2679: Handle dependencies to
Metrics/LineLength: Max
when generating.rubocop_todo.yml
. ([@jonas054][]) - #4943: Make cop generator compliant with the repo's rubocop config. ([@tdeo][])
- ๐
#5011: Remove
SupportedStyles
from "Configuration parameters" in.rubocop_todo.yml
. ([@pocke][]) - ๐
Lint/RescueWithoutErrorClass
has been replaced byStyle/RescueStandardError
. ([@rrosenblum][]) - ๐ง #4811: Remove
Layout/SpaceInsideBrackets
in favor of two new configurable cops. ([@garettarrowood][]) - #5042: Make offense locations of metrics cops to contain whole a method. ([@pocke][])
- #5044: Add last_line and last_column into outputs of the JSON formatter. ([@pocke][])
- #4633: Make metrics cops aware of
define_method
. ([@pocke][]) - 0๏ธโฃ #5037: Make display cop names to enable by default. ([@pocke][])
- #4449: Make
Layout/IndentHeredoc
aware of line length. ([@pocke][]) - 0๏ธโฃ #5146: Make
--show-cops
option aware of--force-default-config
. ([@pocke][]) - ๐ #3001: Add configuration to
Lint/MissingCopEnableDirective
cop. ([@tdeo][]) - ๐ #4932: Do not fail if configuration contains
Lint/Syntax
cop with the same settings as the default. ([@tdeo][]) - ๐ #5175: Make Style/RedundantBegin aware of do-end block in Ruby 2.5. ([@pocke][])
- ๐ #5101: Allow to specify
-
v0.51.0 Changes
October 18, 2017๐ New features
- ๐
#4791: Add new
Rails/UnknownEnv
cop. ([@pocke][]) - ๐ #4690: Add new
Lint/UnneededRequireStatement
cop. ([@koic][]) - ๐
#4813: Add new
Style/StderrPuts
cop. ([@koic][]) - ๐ #4796: Add new
Lint/RedundantWithObject
cop. ([@koic][]) - ๐
#4663: Add new
Style/CommentedKeyword
cop. ([@donjar][]) - โ Add
IndentationWidth
configuration forLayout/Tab
cop. ([@rrosenblum][]) - ๐ #4854: Add new
Lint/RegexpAsCondition
cop. ([@pocke][]) - #4862: Add
MethodDefinitionMacros
option toNaming/PredicateName
cop. ([@koic][]) - #4874: Add new
Gemspec/OrderedDependencies
cop. ([@sue445][]) - ๐
#4840: Add new
Style/MixinUsage
cop. ([@koic][]) - ๐
#1952: Add new
Style/DateTime
cop. ([@dpostorivo][]) - ๐ #4727: Make
Lint/Void
check for nonmutating methods as well. ([@donjar][])
๐ Bug fixes
- ๐
#3312: Make
Rails/Date
Correct false positive on#to_time
for strings ending in UTC-"Z".([@erikdstock][]) - ๐
#4741: Make
Style/SafeNavigation
correctly exclude methods called without dot. ([@drenmi][]) - ๐ #4740: Make
Lint/RescueWithoutErrorClass
aware of modifier formrescue
. ([@drenmi][]) - ๐
#4745: Make
Style/SafeNavigation
ignore negated continuations. ([@drenmi][]) - ๐ #4732: Prevent
Performance/HashEachMethods
from registering an offense when#each
follows#to_a
. ([@drenmi][]) - ๐ #4730: False positive on Lint/InterpolationCheck. ([@koic][])
- ๐
#4751: Prevent
Rails/HasManyOrHasOneDependent
cop from registering offense if:through
option was specified. ([@smakagon][]) - #4737: Fix ReturnInVoidContext cop when
return
is in top scope. ([@frodsan][]) - #4776: Non utf-8 magic encoding comments are now respected. ([@deivid-rodriguez][])
- ๐
#4241: Prevent
Rails/Blank
andRails/Present
from breaking when there is no explicit receiver. ([@rrosenblum][]) - ๐
#4814: Prevent
Rails/Blank
from breaking on send with an argument. ([@pocke][]) - #4759: Make
Naming/HeredocDelimiterNaming
andNaming/HeredocDelimiterCase
aware of more delimiter patterns. ([@drenmi][]) - ๐ #4823: Make
Lint/UnusedMethodArgument
andLint/UnusedBlockArgument
aware of overriding assignments. ([@akhramov][]) - ๐ #4830: Prevent
Lint/BooleanSymbol
from truncating symbol's value in the message when offense is located in the new syntax hash. ([@akhramov][]) - ๐
#4747: Fix
Rails/HasManyOrHasOneDependent
cop incorrectly flagswith_options
blocks. ([@koic][]) - ๐
#4836: Make
Rails/OutputSafety
aware of safe navigation operator. ([@drenmi][]) - ๐ #4843: Make
Lint/ShadowedException
cop aware of same system error code. ([@koic][]) - ๐
#4757: Make
Style/TrailingUnderscoreVariable
work for nested assignments. ([@donjar][]) - ๐
#4597: Fix
Style/StringLiterals
cop not registering an offense on single quoted strings containing an escaped single quote when configured to use double quotes. ([@promisedlandt][]) - ๐ #4850:
Lint/UnusedMethodArgument
respectsIgnoreEmptyMethods
setting by ignoring unused method arguments for singleton methods. ([@jmks][]) - #2040: Document how to write a custom cop. ([@jonatas][])
๐ Changes
- ๐ #4746: The
Lint/InvalidCharacterLiteral
cop has been removed since it was never being actually triggered. ([@deivid-rodriguez][]) - ๐ #4789: Analyzing code that needs to support MRI 1.9 is no longer supported. ([@deivid-rodriguez][])
- ๐ง #4582:
Severity
and other common parameters can be configured on department level. ([@jonas054][]) - ๐ #4787: Analyzing code that needs to support MRI 2.0 is no longer supported. ([@deivid-rodriguez][])
- #4787: RuboCop no longer installs on MRI 2.0. ([@deivid-rodriguez][])
- #4266: Download the inherited config files of a remote file from the same remote. ([@tdeo][])
- ๐ #4853: Make
Lint/LiteralInCondition
cop aware of!
andnot
. ([@pocke][]) - ๐ #4864: Rename
Lint/LiteralInCondition
toLint/LiteralAsCondition
. ([@pocke][])
- ๐
#4791: Add new
-
v0.50.0 Changes
September 14, 2017๐ New features
- ๐
#4464: Add
EnforcedStyleForEmptyBraces
parameter toLayout/SpaceBeforeBlockBraces
cop. ([@palkan][]) - ๐
#4453: New cop
Style/RedundantConditional
checks for conditionals that return true/false. ([@petehamilton][]) - #4448: Add new
TapFormatter
. ([@cyberdelia][]) - ๐
#4467: Add new
Style/HeredocDelimiters
cop(Note: This cop was renamed toNaming/HeredocDelimiterNaming
). ([@drenmi][]) - ๐ #4153: New cop
Lint/ReturnInVoidContext
checks for the use of a return with a value in a context where it will be ignored. ([@harold-s][]) - ๐ #4506: Add auto-correct support to
Lint/ScriptPermission
. ([@rrosenblum][]) - ๐
#4514: Add configuration options to
Style/YodaCondition
to support checking all comparison operators or equality operators only. ([@smakagon][]) - ๐ #4515: Add new
Lint/BooleanSymbol
cop. ([@droptheplot][]) - ๐
#4535: Make
Rails/PluralizationGrammar
use singular methods for-1
/-1.0
. ([@promisedlandt][]) - ๐
#4541: Add new
Rails/HasManyOrHasOneDependent
cop. ([@oboxodo][]) - ๐
#4552: Add new
Style/Dir
cop. ([@drenmi][]) - ๐
#4548: Add new
Style/HeredocDelimiterCase
cop(Note: This cop is renamed toNaming/HeredocDelimiterCase
). ([@drenmi][]) - ๐ #2943: Add new
Lint/RescueWithoutErrorClass
cop. ([@drenmi][]) - ๐
#4568: Fix auto-correction for
Style/TrailingUnderscoreVariable
. ([@smakagon][]) - ๐ #4586: Add new
Performance/UnfreezeString
cop. ([@pocke][]) - ๐
#2976: Add
Whitelist
configuration option toStyle/NestedParenthesizedCalls
cop. ([@drenmi][]) - ๐
#3965: Add new
Style/OrAssignment
cop. ([@donjar][]) - #4655: Make
rake new_cop
create parent directories if they do not already exist. ([@highb][]) - ๐ #4368: Make
Performance/HashEachMethod
inspect send nodes with any receiver. ([@gohdaniel15][]) - ๐
#4508: Add new
Style/ReturnNil
cop. ([@donjar][]) - #4629: Add Metrics/MethodLength cop for
define_method
. ([@jekuta][]) - ๐ #4702: Add new
Lint/UriEscapeUnescape
cop. ([@koic][]) - ๐ #4696: Add new
Performance/UriDefaultParser
cop. ([@koic][]) - ๐ #4694: Add new
Lint/UriRegexp
cop. ([@koic][]) - ๐
#4711: Add new
Style/MinMax
cop. ([@drenmi][]) - #4720: Add new
Bundler/InsecureProtocolSource
cop. ([@koic][]) - ๐ #4708: Add new
Lint/RedundantWithIndex
cop. ([@koic][]) - ๐ #4480: Add new
Lint/InterpolationCheck
cop. ([@GauthamGoli][]) - ๐ #4628: Add new
Lint/NestedPercentLiteral
cop. ([@asherkach][])
๐ Bug fixes
- #4709: Use cached remote config on network failure. ([@kristjan][])
- #4688: Accept yoda condition which isn't commutative. ([@fujimura][])
- ๐
#4676: Make
Style/RedundantConditional
cop work with elsif. ([@akhramov][]) - ๐
#4656: Modify
Style/ConditionalAssignment
auto-correction to work with unbracketed arrays. ([@akhramov][]) - #4615: Don't consider
<=>
a comparison method. ([@iGEL][]) - โ๏ธ #4664: Fix typos in Rails/HttpPositionalArguments. ([@JoeCohen][])
- ๐ #4618: Fix
Lint/FormatParameterMismatch
false positive if format string includes%%5B
(CGI encoded left bracket). ([@barthez][]) - ๐
#4604: Fix
Style/LambdaCall
to auto-correctobj.call
toobj.
. ([@iGEL][]) - ๐
#4443: Prevent
Style/YodaCondition
from breakingnot LITERAL
. ([@pocke][]) - ๐
#4434: Prevent bad auto-correct in
Style/Alias
for non-literal arguments. ([@drenmi][]) - ๐
#4451: Make
Style/AndOr
cop aware of comparison methods. ([@drenmi][]) - ๐ #4457: Fix false negative in
Lint/Void
with initialize and setter methods. ([@pocke][]) - ๐
#4418: Register an offense in
Style/ConditionalAssignment
when the assignment line is the longest line, and it does not exceed the max line length. ([@rrosenblum][]) - ๐
#4491: Prevent bad auto-correct in
Style/EmptyElse
for nestedif
. ([@pocke][]) - #4485: Handle 304 status for remote config files. ([@daniloisr][])
- ๐ #4529: Make
Lint/UnreachableCode
aware ofif
andcase
. ([@pocke][]) - #4469: Include permissions in file cache. ([@pocke][])
- ๐ #4270: Fix false positive in
Performance/RegexpMatch
for named captures. ([@pocke][]) - ๐ #4525: Fix regexp for checking comment config of
rubocop:disable all
inLint/UnneededDisable
. ([@meganemura][]) - ๐
#4555: Make
Style/VariableName
aware of optarg, kwarg and other arguments. ([@pocke][]) - ๐
#4481: Prevent
Style/WordArray
andStyle/SymbolArray
from registering offenses where percent arrays don't work. ([@drenmi][]) - #4447: Prevent
Layout/EmptyLineBetweenDefs
from removing too many lines. ([@drenmi][]) - ๐
#3892: Make
Style/NumericPredicate
ignore numeric comparison of global variables. ([@drenmi][]) - #4101: Skip auto-correct for literals with trailing comment and chained method call in
Layout/Multiline*BraceLayout
. ([@jonas054][]) - ๐
#4518: Fix bug where
Style/SafeNavigation
does not register an offense when there are chained method calls. ([@rrosenblum][]) - ๐
#3040: Ignore safe navigation in
Rails/Delegate
. ([@cgriego][]) - ๐ #4587: Fix false negative for void unary operators in
Lint/Void
cop. ([@pocke][]) - ๐ #4589: Fix false positive in
Performance/RegexpMatch
cop for=~
is in a class method. ([@pocke][]) - ๐ #4578: Fix false positive in
Lint/FormatParameterMismatch
for format with "asterisk" (*
) width and precision. ([@smakagon][]) - ๐ #4285: Make
Lint/DefEndAlignment
aware of multiple modifiers. ([@drenmi][]) - #4634: Handle heredoc that contains empty lines only in
Layout/IndentHeredoc
cop. ([@pocke][]) - ๐ #4646: Make
Lint/Debugger
aware ofKernel
and cbase. ([@pocke][]) - ๐
#4643: Modify
Style/InverseMethods
to not register a separate offense for an inverse method nested inside of the block of an inverse method offense. ([@rrosenblum][]) - โก๏ธ #4593: Fix false positive in
Rails/SaveBang
whensave/update_attribute
is used with acase
statement. ([@theRealNG][]) - ๐ #4322: Fix Style/MultilineMemoization from auto-correcting to invalid ruby. ([@dpostorivo][])
- #4722: Fix
rake new_cop
problem that doesn't addrequire
line. ([@koic][]) - #4723: Fix
RaiseArgs
auto-correction issue forraise
with 3 arguments. ([@smakagon][])
๐ Changes
- ๐ #4470: Improve the error message for
Lint/AssignmentInCondition
. ([@brandonweiss][]) - 0๏ธโฃ #4553: Add
node_modules
to default excludes. ([@iainbeeston][]) - ๐
#4445: Make
Style/Encoding
cop enabled by default. ([@deivid-rodriguez][]) - ๐
#4452: Add option to
Rails/Delegate
for enforcing the prefixed method name case. ([@klesse413][]) - ๐ #4493: Make
Lint/Void
cop aware ofEnumerable#each
andfor
. ([@pocke][]) - ๐ #4492: Make
Lint/DuplicateMethods
aware ofalias
andalias_method
. ([@pocke][]) - ๐ #4478: Fix confusing message of
Performance/Caller
cop. ([@pocke][]) - ๐ #4543: Make
Lint/DuplicateMethods
aware ofattr_*
methods. ([@pocke][]) - #4550: Mark
RuboCop::CLI#run
as a public API. ([@yujinakayama][]) - ๐ #4551: Make
Performance/Caller
aware ofcaller_locations
. ([@pocke][]) - ๐
#4547: Rename
Style/HeredocDelimiters
toStyle/HeredocDelimiterNaming
. ([@drenmi][]) - ๐
#4157: Enhance offense message for
Style/RedudantReturn
cop. ([@gohdaniel15][]) - ๐ #4521: Move naming related cops into their own
Naming
department. ([@drenmi][]) - ๐
#4600: Make
Style/RedundantSelf
aware of arguments of a block. ([@Envek][]) - ๐ #4658: Disable auto-correction for
Performance/TimesMap
by default. ([@Envek][])
- ๐
#4464: Add
-
v0.49.1 Changes
May 29, 2017๐ Bug fixes
- ๐
#4411: Handle properly safe navigation in
Style/YodaCondition
. ([@bbatsov][]) - ๐
#4412: Handle properly literal comparisons in
Style/YodaCondition
. ([@bbatsov][]) - ๐
Handle properly class variables and global variables in
Style/YodaCondition
. ([@bbatsov][]) - ๐
#4392: Fix the auto-correct of
Style/Next
when theend
is misaligned. ([@rrosenblum][]) - ๐ #4407: Prevent
Performance/RegexpMatch
from blowing up onmatch
without arguments. ([@pocke][]) - ๐
#4414: Handle pseudo-assignments in
for
loops inStyle/ConditionalAssignment
. ([@bbatsov][]) - 0๏ธโฃ #4419: Handle combination
AllCops: DisabledByDefault: true
andRails: Enabled: true
. ([@jonas054][]) - ๐
#4422: Fix missing space in message for
Style/MultipleComparison
. ([@timrogers][]) - ๐
#4420: Ensure
Style/EmptyMethod
honours indentation when auto-correcting. ([@drenmi][]) - ๐
#4442: Prevent
Style/WordArray
from breaking on strings that aren't valid UTF-8. ([@pocke][]) - #4441: Prevent
Layout/SpaceAroundBlockParameters
from breaking on lambda. ([@pocke][])
๐ Changes
- #4436: Display 'Running parallel inspection' only with --debug. ([@pocke][])
- ๐
#4411: Handle properly safe navigation in
-
v0.49.0 Changes
May 24, 2017๐ New features
- #117: Add
--parallel
option for running RuboCop in multiple processes or threads. ([@jonas054][]) - โ Add auto-correct support to
Style/MixinGrouping
. ([@rrosenblum][]) - ๐ท #4236: Add new
Rails/ApplicationJob
andRails/ApplicationRecord
cops. ([@tjwp][]) - ๐ #4078: Add new
Performance/Caller
cop. ([@alpaca-tc][]) - ๐ #4314: Check slow hash accessing in
Array#sort
byPerformance/CompareWithBlock
. ([@pocke][]) - ๐
#3438: Add new
Style/FormatStringToken
cop. ([@backus][]) - ๐ #4342: Add new
Lint/ScriptPermission
cop. ([@yhirano55][]) - ๐
#4145: Add new
Style/YodaCondition
cop. ([@smakagon][]) - #4403: Add public API
Cop.autocorrect_incompatible_with
for specifying other cops that should not auto-correct together. ([@backus][]) - ๐
#4354: Add auto-correct to
Style/FormatString
. ([@hoshinotsuyoshi][]) - ๐
#4021: Add new
Style/MultipleComparison
cop. ([@dabroz][]) - ๐ New
Lint/RescueType
cop. ([@rrosenblum][]) - #4328: Add
--ignore-parent-exclusion
flag to ignore AllCops/Exclude inheritance. ([@nelsonjr][])
๐ Changes
- ๐
#4262: Add new
MinSize
configuration toStyle/SymbolArray
, consistent with the same configuration inStyle/WordArray
. ([@scottmatthewman][]) - ๐ #3400: Remove auto-correct support from Lint/Debugger. ([@ilansh][])
- ๐ #4278: Move all cops dealing with whitespace into a new department called
Layout
. ([@jonas054][]) - #4320: Update
Rails/OutputSafety
to disallow wrappingraw
orhtml_safe
withsafe_join
. ([@klesse413][]) - #4336: Store
rubocop_cache
in safer directories. ([@jonas054][]) - ๐ #4361: Use relative path for offense message in
Lint/DuplicateMethods
. ([@pocke][]) - 0๏ธโฃ #4385: Include
.jb
file by default. ([@pocke][])
๐ Bug fixes
- ๐
#4265: Require a space before first argument of a method call in
Style/SpaceBeforeFirstArg
cop. ([@cjlarose][]) - ๐ #4237: Fix false positive in
Lint/AmbiguousBlockAssociation
cop for lambdas. ([@smakagon][]) - ๐ #4242: Add
Capfile
to the list of known Ruby filenames. ([@bbatsov][]) - ๐
#4240: Handle
||=
inRails/RelativeDateConstant
. ([@bbatsov][]) - ๐
#4241: Prevent
Rails/Blank
andRails/Present
from breaking when there is no explicit receiver. ([@rrosenblum][]) - ๐
#4249: Handle multiple assignment in
Rails/RelativeDateConstant
. ([@bbatsov][]) - ๐ #4250: Improve a bit the Ruby code detection config. ([@bbatsov][])
- ๐
#4283: Fix
Style/EmptyCaseCondition
auto-correct bug - when firstwhen
branch includes comma-delimited alternatives. ([@ilansh][]) - ๐ #4268: Handle end-of-line comments when auto-correcting Style/EmptyLinesAroundAccessModifier. ([@vergenzt][])
- ๐
#4275: Prevent
Style/MethodCallWithArgsParentheses
from blowing up onyield
. ([@drenmi][]) - #3969: Handle multiline method call alignment for arguments to methods. ([@jonas054][])
- 0๏ธโฃ #4304: Allow enabling whole departments when
DisabledByDefault
istrue
. ([@jonas054][]) - ๐
#4264: Prevent
Rails/SaveBang
from blowing up when using the assigned variable in a hash. ([@drenmi][]) - #4310: Treat paths containing invalid byte sequences as non-matches. ([@mclark][])
- ๐ #4063: Fix Rails/ReversibleMigration misdetection. ([@gprado][])
- ๐ #4339: Fix false positive in
Security/Eval
cop for multiline string lietral. ([@pocke][]) - ๐ #4339: Fix false negative in
Security/Eval
cop forBinding#eval
. ([@pocke][]) - #4327: Prevent
Layout/SpaceInsidePercentLiteralDelimiters
from registering offenses on execute-strings. ([@drenmi][]) - ๐
#4371: Prevent
Style/MethodName
from complaining about unary operator definitions. ([@drenmi][]) - ๐ #4366: Prevent
Performance/RedundantMerge
from blowing up on double splat arguments. ([@drenmi][]) - ๐
#4352: Fix the auto-correct of
Style/AndOr
when Enumerable accessors ([]
) are used. ([@rrosenblum][]) - ๐
#4393: Prevent
Style/InverseMethods
from registering an offense for methods that are double negated. ([@rrosenblum][]) - #4394: Prevent some cops from breaking on safe navigation operator. ([@drenmi][])
- ๐
#4260: Prevent
Rails/SkipsModelValidations
from registering an offense forFileUtils.touch
. ([@rrosenblum][])
- #117: Add
-
v0.48.1 Changes
April 03, 2017๐ Changes
- ๐
#4219: Add a link to style guide for
Style/IndentationConsistency
cop. ([@pocke][]) - ๐ #4168: Removed
-n
option. ([@sadovnik][]) - ๐
#4039: Change
Style/PercentLiteralDelimiters
default configuration to match Style Guide update. ([@drenmi][]) - ๐ #4235: Improved copy of offense message in
Lint/AmbiguousBlockAssociation
cop. ([@smakagon][])
๐ Bug fixes
- ๐
#4171: Prevent
Rails/Blank
from breaking when RHS ofor
is a naked falsiness check. ([@drenmi][]) - ๐ #4189: Make
Lint/AmbiguousBlockAssociation
aware of lambdas passed as arguments. ([@drenmi][]) - ๐
#4179: Prevent
Rails/Blank
from breaking when LHS ofor
is a naked falsiness check. ([@rrosenblum][]) - ๐
#4172: Fix false positives in
Style/MixinGrouping
cop. ([@drenmi][]) - ๐ #4185: Make
Lint/NestedMethodDefinition
aware of#*_exec
class of methods. ([@drenmi][]) - ๐
#4197: Fix false positive in
Style/RedundantSelf
cop with parallel assignment. ([@drenmi][]) - ๐
#4199: Fix incorrect auto correction in
Style/SymbolArray
andStyle/WordArray
cop. ([@pocke][]) - ๐ #4218: Make
Lint/NestedMethodDefinition
aware of class shovel scope. ([@drenmi][]) - ๐ #4198: Make
Lint/AmbguousBlockAssociation
aware of operator methods. ([@drenmi][]) - ๐
#4152: Make
Style/MethodCallWithArgsParentheses
not require parens on setter methods. ([@drenmi][]) - #4226: Show in
--help
output that--stdin
takes a file name argument. ([@jonas054][]) - ๐
#4217: Fix false positive in
Rails/FilePath
cop with non string argument. ([@soutaro][]) - ๐
#4106: Make
Style/TernaryParentheses
unsafe auto-correct detector aware of literals and constants. ([@drenmi][]) - ๐ #4228: Fix false positive in
Lint/AmbiguousBlockAssociation
cop. ([@smakagon][]) - ๐
#4234: Fix false positive in
Rails/RelativeDate
for lambdas and procs. ([@smakagon][])
- ๐
#4219: Add a link to style guide for
-
v0.48.0 Changes
March 26, 2017๐ New features
- ๐ง #4107: New
TargetRailsVersion
configuration parameter can be used to specify which version of Rails the inspected code is intended to run on. ([@maxbeizer][]) - ๐
#4104: Add
prefix
andpostfix
styles toStyle/NegatedIf
. ([@brandonweiss][]) - ๐
#4083: Add new configuration
NumberOfEmptyLines
forStyle/EmptyLineBetweenDefs
. ([@dorian][]) - ๐
#4045: Add new configuration
Strict
forStyle/NumericLiteral
to make the change to this cop in 0.47.0 configurable. ([@iGEL][]) - 0๏ธโฃ #4005: Add new
AllCops/EnabledByDefault
option. ([@betesh][]) - #3893: Add a new configuration,
IncludeActiveSupportAliases
, toPerformance/DoublStartEndWith
. This configuration will check for ActiveSupport'sstarts_with?
andends_with?
. ([@rrosenblum][]) - ๐
#3889: Add new
Style/EmptyLineAfterMagicComment
cop. ([@backus][]) - ๐
#3800: Make
Style/EndOfLine
configurable withlf
,crlf
, andnative
(default) styles. ([@jonas054][]) - ๐
#3936: Add new
Style/MixinGrouping
cop. ([@drenmi][]) - ๐
#4003: Add new
Rails/RelativeDateConstant
cop. ([@sinsoku][]) - ๐
#3984: Add new
Style/EmptyLinesAroundBeginBody
cop. ([@pocke][]) - ๐
#3995: Add new
Style/EmptyLinesAroundExceptionHandlingKeywords
cop. ([@pocke][]) - ๐
#4019: Make configurable
Style/MultilineMemoization
cop. ([@pocke][]) - ๐ #4018: Add auto-correct
Lint/EmptyEnsure
cop. ([@pocke][]) - ๐
#4028: Add new
Style/IndentHeredoc
cop. ([@pocke][]) - ๐ #3931: Add new
Lint/AmbiguousBlockAssociation
cop. ([@smakagon][]) - โ Add new
Style/InverseMethods
cop. ([@rrosenblum][]) - ๐
#4038: Allow
default
key in theStyle/PercentLiteralDelimiters
cop config to set all preferred delimiters. ([@kddeisz][]) - โ Add
IgnoreMacros
option toStyle/MethodCallWithArgsParentheses
. ([@drenmi][]) - ๐
#3937: Add new
Rails/ActiveSupportAliases
cop. ([@tdeo][]) - โ Add new
Rails/Blank
cop. ([@rrosenblum][]) - โ Add new
Rails/Present
cop. ([@rrosenblum][]) - #4004: Allow not treating comment lines as group separators in
Bundler/OrderedGems
cop. ([@konto-andrzeja][])
๐ Changes
- โก๏ธ #4100: Rails/SaveBang should flag
update_attributes
. ([@andriymosin][]) - ๐
#4083:
Style/EmptyLineBetweenDefs
doesn't allow more than one empty line between method definitions by default (seeNumberOfEmptyLines
). ([@dorian][]) - 0๏ธโฃ #3997: Include all ruby files by default and exclude non-ruby files. ([@dorian][])
- #4012: Mark
foo[:bar]
as not complex inStyle/TernaryParentheses
cop withrequire_parentheses_when_complex
style. ([@onk][]) - ๐ #3915: Make configurable whitelist for
Lint/SafeNavigationChain
cop. ([@pocke][]) - ๐
#3944: Allow keyword arguments in
Style/RaiseArgs
cop. ([@mikegee][]) - โ Add auto-correct to
Performance/DoubleStartEndWith
. ([@rrosenblum][]) - ๐
#3951: Make
Rails/Date
cop to register an offence for a string without timezone. ([@sinsoku][]) - ๐ #4020: Fixed
new_cop.rake
suggested path. ([@dabroz][]) - #4055: Add parameters count to offense message for
Metrics/ParameterLists
cop. ([@pocke][]) - ๐ #4081: Allow
Marshal.load
if argument is aMarshal.dump
inSecurity/MarshalLoad
cop. ([@droptheplot][]) - ๐
#4124: Make
Style/SymbolArray
cop to enable by default. ([@pocke][]) - #3331: Change
Style/MultilineMethodCallIndentation
indented_relative_to_receiver
to indent relative to the receiver and not relative to the caller. ([@jfelchner][]) - #4137: Allow lines to be exempted from
IndentationWidth
by regex. ([@jfelchner][])
๐ Bug fixes
- ๐
#4007: Skip
Rails/SkipsModelValidations
for methods that don't accept arguments. ([@dorian][]) - #3923: Allow asciibetical sorting in
Bundler/OrderedGems
. ([@mikegee][]) - ๐ #3855: Make
Lint/NonLocalExitFromIterator
aware of method definitions. ([@drenmi][]) - #2643: Allow uppercase and dashes in
MagicComment
. ([@mikegee][]) - ๐
#3959: Don't wrap "percent arrays" with extra brackets when auto-correcting
Style/MutableConstant
. ([@mikegee][]) - ๐ #3978: Fix false positive in
Performance/RegexpMatch
withEnglish
module. ([@pocke][]) - #3242: Ignore
Errno::ENOENT
during cache cleanup fromFile.mtime
too. ([@mikegee][]) - ๐
#3958:
Style/SpaceInsideHashLiteralBraces
doesn't add and offence when checking an hash where a value is a left brace string (e.g. { k: '{' }). ([@nodo][]) - ๐
#4006: Prevent
Style/WhileUntilModifier
from breaking on a multiline modifier. ([@drenmi][]) - ๐
#3345: Allow
Style/WordArray
'sWordRegex
configuration value to be an instance ofString
. ([@mikegee][]) - #4013: Follow redirects for RemoteConfig. ([@buenaventure][])
- ๐ #3917: Rails/FilePath Match nodes in a method call only once. ([@unmanbearpig][])
- ๐
#3673: Fix regression on
Style/RedundantSelf
when assigning to same local variable. ([@bankair][]) - #4047: Allow
find_zone
andfind_zone!
methods inRails/TimeZone
. ([@attilahorvath][]) - โ #3457: Clear a warning and prevent new warnings. ([@mikegee][])
- ๐ #4066: Register an offense in
Lint/ShadowedException
when an exception is shadowed and there is an implicit begin. ([@rrosenblum][]) - ๐ #4001: Lint/UnneededDisable of Metrics/LineLength that isn't unneeded. ([@wkurniawan07][])
- ๐ง #3960: Let
Include
/Exclude
paths in all files beginning with.rubocop
be relative to the configuration file's directory and not to the current directory. ([@jonas054][]) - ๐ #4049: Bugfix for
Style/EmptyLiteral
cop. ([@ota42y][]) - ๐
#4112: Fix false positives about double quotes in
Style/StringLiterals
,Style/UnneededCapitalW
andStyle/UnneededPercentQ
cops. ([@pocke][]) - ๐
#4109: Fix incorrect auto correction in
Style/SelfAssignment
cop. ([@pocke][]) - ๐
#4110: Fix incorrect auto correction in
Style/BracesAroundHashParameters
cop. ([@musialik][]) - ๐
#4084: Fix incorrect auto correction in
Style/TernaryParentheses
cop. ([@musialik][]) - ๐ #4102: Fix
Security/JSONLoad
,Security/MarshalLoad
andSecurity/YAMLLoad
cops patterns not matching ::Const. ([@musialik][]) - #3580: Handle combinations of
# rubocop:disable all
and# rubocop:disable SomeCop
. ([@jonas054][]) - ๐
#4124: Fix auto correction bugs in
Style/SymbolArray
cop. ([@pocke][]) - ๐
#4128: Prevent
Style/CaseIndentation
cop from registering offenses on single-line case statements. ([@drenmi][]) - ๐
#4143: Prevent
Style/IdenticalConditionalBranches
from registering offenses when a case statement has an empty when. ([@dpostorivo][]) - #4160: Fix a regression where
UselessAssignment
cop may not properly detect useless assignments when there's only a single conditional expression in the top level scope. ([@yujinakayama][]) - #4162: Fix a false negative in
UselessAssignment
cop with nested conditionals. ([@yujinakayama][])
- ๐ง #4107: New