relnotes/v0.39.0.md
Performance/TimesMap cop can auto-correct. (@lumeet)Style/ZeroLengthPredicate cop can auto-correct. (@lumeet)Style/ConditionalAssignment is now configurable to enforce assignment inside of conditions or to enforce assignment to conditions. (@rrosenblum)Performance/Detect and Performance/Count have a new configuration SafeMode that is defaulted to true. These cops have known issues with Rails and other ORM frameworks. With this default configuration, these cops will not run if the Rails cops are enabled. (@rrosenblum)Style/IfUnlessModifierOfIfUnless cop added. (@amuino)Style/SpaceAroundKeyword should allow yield[n] and super[n]. (@laurelfan)Style/OneLineConditional. (@lumeet)if-then in Style/Next. (@lumeet)Style/RedundantParentheses doesn't flag -(1.method) or +(1.method), since removing the parentheses would change the meaning of these expressions. (@alexdowad)Style/MultilineMethodCallIndentation doesn't fail when inspecting unary ops which span multiple lines. (@alexdowad)Lint/LiteralInInterpolation doesn't report offenses for iranges and eranges with non-literal endpoints. (@alexdowad)Lint/AssignmentInCondition catches method assignments (like obj.attr = val) in a condition. (@alexdowad)===, <=, and >= in Style/ConditionalAssignment. (@rrosenblum)"#{$!}" in Style/SpecialGlobalVars. (@lumeet)SafeYAML.load is private. (@jonas054)require: only does relative includes when it starts with a .. (@ptarjan)Style/IfUnlessModifier does not trigger if the body is another conditional. (@amuino)Performance/RedundantMerge will now register an offense inside of each_with_object. (@rrosenblum)