Rubocop v0.25.0 Release Notes
Release Date: 2014-08-15 // over 9 years ago-
🆕 New features
- #1259: Allow AndOr cop to auto-correct by adding method call parenthesis. ([@vrthra][])
- 💅 #1232: Add EnforcedStyle option to cop
AndOr
to restrict it to conditionals. ([@vrthra][]) - 🔧 #835: New cop
PercentQLiterals
checks if use of%Q
and%q
matches configuration. ([@jonas054][]) - 🔧 #835: New cop
BarePercentLiterals
checks if usage of%()
or%Q()
matches configuration. ([@jonas054][]) - #1079: New cop
MultilineBlockLayout
checks if a multiline block has an expression on the same line as the start of the block. ([@barunio][]) - 💅 #1217:
Style::EmptyLinesAroundAccessModifier
cop does auto-correction. ([@tamird][]) - #1220: New cop
PerceivedComplexity
is similar toCyclomaticComplexity
, but reports when methods have a high complexity for a human reader. ([@jonas054][]) Debugger
cop now checks forbinding.pry_remote
. ([@yous][])- #1238: Add
MinBodyLength
option toNext
cop. ([@bbatsov][]) - #1241:
TrailingComma
cop does auto-correction. ([@yous][]) - #1078: New cop
BlockEndNewline
checks if the end statement of a multiline block is on its own line. ([@barunio][]) - #1078:
BlockAlignment
cop does auto-correction. ([@barunio][])
🔄 Changes
- 💅 #1220: New namespace
Metrics
created and someStyle
cops moved there. ([@jonas054][]) - 🔒 Drop support for Ruby 1.9.2 in accordance with the end of the security maintenance extension. ([@yujinakayama][])
🐛 Bugs fixed
- #1251: Fix
PercentLiteralDelimiters
auto-correct indentation error. ([@hannestyden][]) - #1197: Fix false positive for new lambda syntax in
SpaceInsideBlockBraces
. ([@jonas054][]) - #1201: Fix error at anonymous keyword splat arguments in some variable cops. ([@yujinakayama][])
- 🛠 Fix false positive in
UnneededPercentQ
for/%Q(something)/
. ([@jonas054][]) - 🛠 Fix
SpacesInsideBrackets
forHash#[]
calls with spaces after left bracket. ([@mcls][]) - #1210: Fix false positive in
UnneededPercentQ
for%Q(\t")
. ([@jonas054][]) - 🛠 Fix false positive in
UnneededPercentQ
for heredoc strings with%q
/%Q
. ([@jonas054][]) - #1214: Don't destroy code in
AlignHash
auto-correct. ([@jonas054][]) - #1219: Don't report bad alignment for
end
or}
inBlockAlignment
if it doesn't begin its line. ([@jonas054][]) - #1227: Don't permanently change yamler as it can affect other apps. ([@jonas054][])
- #1184: Fix a false positive in
Output
cop. ([@bbatsov][]) - #1256: Ignore block-pass in
TrailingComma
. ([@tamird][]) - #1255: Compare without context in
Auto-CorrectUnlessChangingAST
. ([@jonas054][]) - #1262: Handle regexp and backtick literals in
VariableInterpolation
. ([@bbatsov][])