relnotes/v0.26.0.md
Nothing particularly exciting this time around. The new release comes with lots of bug fixes, more auto-corrections and several new cops.
Note that the Style/Encoding cop is now disabled by default. See
#1304 for the
rationale behind this change.
Below is the list of all the gory details. Enjoy!
HTMLFormatter generates a html file with a list of files with offences in them. (@SkuliOskarsson)SpaceInsideRangeLiteral checks for spaces around .. and ... in range literals. (@bbatsov)InfiniteLoop checks for places where Kernel#loop should have been used. (@bbatsov)SymbolProc checks for places where a symbol can be used as proc instead of a block. (@bbatsov)UselessAssignment cop now suggests a variable name for possible typos if there's a variable-ish identifier similar to the unused variable name in the same scope. (@yujinakayama)PredicateName cop now has separate configurations for prefixes that denote predicate method names and predicate prefixes that should be removed. (@bbatsov)Tab cop does auto-correction. (@yous)MultilineIfThen cop does auto-correction. (@bbatsov)DotPosition cop does auto-correction. (@yous)SpaceBeforeFirstArg cop does auto-correction. (@yous)module_function in Style/AccessModifierIndentation and Style/EmptyLinesAroundAccessModifier. (@bbatsov)Style/Encoding is no longer a no-op on Ruby 2.x. It's also disabled by default, as projects not supporting 1.9 don't need to run it. (@bbatsov)%W literals with special escaped characters in UnneededCapitalW. (@jonas054)VariableName. (@bbatsov)UselessAssignment when there's a reference for the variable in an exclusive branch. (@yujinakayama)RedundantBegin cop deletes new line. (@yous)PercentLiteralDelimiters. (@jonas054)BracesAroundHashParameters auto-correction removes whitespace around content inside braces. (@jspanjers)AndOr when enforced style is conditionals. (@bbatsov)while and until in AndOr when enforced style is conditionals. (@yujinakayama)FormatString. (@bbatsov)