relnotes/v0.21.0.md
This release brings a few new cops and extended auto-correction support. The most significant change is that we've changed the syntax for excluding/including to be closer to that of shell globbing.
Below is the list of all the gory details. Enjoy!
UnneededCapitalW checks for %W when interpolation not necessary and %w would do. (@sfeldon)UnderscorePrefixedVariableName checks for _-prefixed variables that are actually used. (@yujinakayama)UnusedMethodArgument checks for unused method arguments. (@yujinakayama)UnusedBlockArgument checks for unused block arguments. (@yujinakayama)RedundantBegin cop does auto-correction. (@tamird)RescueException cop does auto-correction. (@tamird)TrivialAccessors cop does auto-correction. (@tamird)AllowDSLWriters options to TrivialAccessors. (@tamird)Debugger cop check for forgotten calls to byebug. (@bquorning)auto_correct task to Rake integration. (@irrationalfab)--only option can take a comma-separated list of cops. (@jonas054)Delegate that checks for delegations that could be replaced by the delegate method. (@geniou)Encoding cop to only enforce encoding comment if there are non ASCII characters. (@geniou)FinalNewline cop as its check is now performed by TrailingBlankLines. (@jonas054)Dir#[] for config parameters added. (@jonas054)LineEndConcatenation cop. (@mockdeep)IndentationWidth handling method calls. (@tamird)EndAlignment not handling element assignment correctly. (@tamird)IndentationWidth not handling element assignment correctly. (@tamird)[Corrected] in --auto-correct mode if correction wasn't done. (@jonas054)-c .rubocop.yml. (@bquorning)IndentationWidth. (@jonas054)--lint is used together with --only, all lint cops are run in addition to the given cops. (@jonas054)Exclude property when rubocop . is called. (@jonas054)private) and def on the same line (Ruby >= 2.1) in IndentationWidth. (@jonas054)--auto-gen-config logic for RegexpLiteral. (@jonas054)ConditionPosition regarding statement modifiers. (@bbatsov)dstr nodes. (@bbatsov)