Rubocop v0.16.0 Release Notes
Release Date: 2013-12-25 // over 10 years ago-
๐ New features
- #612:
BracesAroundHashParameters
cop does auto-correction. ([@dblock][]) - #614:
ParenthesesAroundCondition
cop does auto-correction. ([@dblock][]) - #624:
EmptyLines
cop does auto-correction. ([@dblock][]) - ๐ New Rails cop
DefaultScope
ensuresdefault_scope
is called properly with a block argument. ([@bbatsov][]) - ๐ All cops now support the
Include
param, which specifies the files on which they should operate. ([@bbatsov][]) - ๐ All cops now support the
Exclude
param, which specifies the files on which they should not operate. ([@bbatsov][]) - #631:
IndentationWidth
cop now detects inconsistent indentation between lines that should have the same indentation. ([@jonas054][]) - #649:
EmptyLinesAroundBody
cop does auto-correction. ([@dblock][]) - #657:
Alias
cop does auto-correction. ([@dblock][]) - ๐ Rake task now support setting formatters. ([@pmenglund][])
- ๐ง #653:
CaseIndentation
cop is now configurable with parametersIndentWhenRelativeTo
andIndentOneStep
. ([@jonas054][]) - ๐ง #654:
For
cop is now configurable to enforce eithereach
(default) orfor
. ([@jonas054][]) - ๐ง #661:
EndAlignment
cop is now configurable for alignment withkeyword
(default) orvariable
. ([@jonas054][]) - ๐ Allow to overwrite the severity of a cop with the new
Severity
param. ([@codez][]) - ๐ New cop
FlipFlop
checks for flip flops. ([@agrimm][]) - #577: Introduced
MethodDefParentheses
to allow for for requiring either parentheses or no parentheses in method definitions. ReplacesDefWithoutParentheses
. ([@skanev][]) - ๐ #693: Generation of parameter values (i.e., not only
Enabled: false
) inrubocop-todo.yml
by the--auto-gen-config
option is now supported for some cops. ([@jonas054][]) - New cop
AccessorMethodName
checks accessor method names for non-idiomatic names likeget_attribute
andset_attribute
. ([@bbatsov][]) - New cop
PredicateName
checks the names of predicate methods for non-idiomatic names likeis_something
,has_something
, etc. ([@bbatsov][]) - ๐ Support Ruby 2.1 with Parser 2.1. ([@yujinakayama][])
๐ Changes
- โ Removed
SymbolNames
as it was generating way too many false positives. ([@bbatsov][]) - ๐ง Renamed
ReduceArguments
toSingleLineBlockParams
and made it configurable. ([@bbatsov][])
๐ Bugs fixed
- ๐ Handle properly heredocs in
StringLiterals
cop. ([@bbatsov][]) - ๐ Fix
SpaceAroundOperators
to not report missing space around operator fordef self.method *args
. ([@jonas054][]) - Properly handle
['AllCops']['Includes']
and['AllCops']['Excludes']
when passing config via-c
. ([@fancyremarker][], [@codez][]) - #611: Fix crash when loading an empty config file. ([@sinisterchipmunk][])
- ๐ Fix
DotPosition
cop withtrailing
style for method calls on same line. ([@vonTronje][]) - #627: Fix counting of slashes in complicated regexps in
RegexpLiteral
cop. ([@jonas054][]) - #638: Fix bug in auto-correct that changes
each{ |x|
toeach d o |x|
. ([@jonas054][]) - ๐ง #418: Stop searching for configuration files above the work directory of the isolated environment when running specs. ([@jonas054][])
- ๐ Fix error on implicit match conditionals (e.g.
if /pattern/; end
) inMultilineIfThen
. ([@agrimm][]) - #651: Handle properly method arguments in
RedundantSelf
. ([@bbatsov][]) - #628: Allow
self.Foo
inRedundantSelf
cop. ([@chulkilee][]) - 0๏ธโฃ #668: Fix crash in
EndOfLine
that occurs when default encoding isUS_ASCII
and an inspected file has non-ascii characters. ([@jonas054][]) - #664: Accept oneline while when condition has local variable assignment. ([@emou][])
- ๐ Fix auto-correct for
MethodDefParentheses
when parentheses are required. ([@skanev][])
- #612: