Rubocop v0.27.0 Release Notes
Release Date: 2014-10-30 // over 9 years ago-
๐ New features
- #1348: New cop
ElseAlignment
checks alignment ofelse
andelsif
keywords. ([@jonas054][]) - #1321: New cop
MultilineOperationIndentation
checks indentation/alignment of binary operations if they span more than one line. ([@jonas054][]) - #1077: New cop
Metrics/AbcSize
checks the ABC metric, based on assignments, branches, and conditions. ([@jonas054][], [@jfelchner][]) - ๐ง #1352:
WordArray
is now configurable with theWordRegex
option. ([@bquorning][]) - ๐
#1181: New cop
Style/StringLiteralsInInterpolation
checks quotes inside interpolated expressions in strings. ([@jonas054][]) - ๐
#872:
Style/IndentationWidth
is now configurable with theWidth
option. ([@jonas054][]) - 0๏ธโฃ #1396: Include
.opal
files by default. ([@bbatsov][]) - ๐
#771: Three new
Style
cops,EmptyLinesAroundMethodBody
,EmptyLinesAroundClassBody
, andEmptyLinesAroundModuleBody
replace theEmptyLinesAroundBody
cop. ([@jonas054][])
๐ Changes
- ๐
#1084: Disabled
Style/CollectionMethods
by default. ([@bbatsov][])
๐ Bugs fixed
AlignHash
no longer skips multiline hashes that contain some elements on the same line. ([@mvz][])- #1349:
BracesAroundHashParameters
no longer cleans up whitespace in auto-correct, as these extra corrections are likely to interfere with other cops' corrections. ([@jonas054][]) - #1350: Guard against
Blocks
cop introducing syntax errors in auto-correct. ([@jonas054][]) - ๐ #1374: To eliminate interference, auto-correction is now done by one cop at a time, with saving and re-parsing in between. ([@jonas054][])
- #1388: Fix a false positive in
FormatString
. ([@bbatsov][]) - #1389: Make
--out
to create parent directories. ([@yous][]) - Refine HTML formatter. ([@yujinakayama][])
- #1410: Handle specially Java primitive type references in
ColonMethodCall
. ([@bbatsov][])
- #1348: New cop