relnotes/v0.38.0.md
Style/UnlessElse cop can auto-correct. (@lumeet)highlighted_area to offense. This method returns the range of the highlighted portion of an offense. (@rrosenblum)Style/OneLineConditional cop can auto-correct. (@lumeet)Style/ZeroLengthConditional flags code like array.length < 1, 1 > array.length, and so on. (@alexdowad)Lint/BlockAlignment cop can be configured to be stricter. (@ptarjan)Style/Not is able to autocorrect in cases where parentheses must be added to preserve the meaning of an expression. (@alexdowad)Style/Not auto-corrects comparison expressions by removing not and using the opposite comparison. (@alexdowad)require 'time' to remote_config.rb to avoid "undefined method `rfc2822'". (@necojackarc)Rake::TaskManager#last_comment with Rake::TaskManager#last_description for Rake 11 compatibility. (@tbrisker)Style/TrailingCommaInArguments & Style/TrailingCommaInLiteral cops with consistent_comma style. (@meganemura)Style/SpaceAroundKeyword for rescue(.... (@rrosenblum)Style/MultilineOperationIndentation treats operations inside blocks inside other operations correctly. (@jonas054)require: in config to be relative to the .rubocop.yml file itself. (@ptarjan)Style/MultilineLiteralBraceLayout auto-correct. (@jonas054)Style/MultilineArrayBraceLayout auto-correct. (@jonas054)Style/TrivialAccessors allows predicate methods by default. (@alexdowad)when clause with multiple arguments will not be missed. (@alexdowad)Lint/UselessAccessModifier recognizes method defs inside a begin block. (@alexdowad)Lint/UselessAccessModifier recognizes method definitions which are passed as an argument to a method call. (@alexdowad)Style/RedundantParentheses doesn't consider the parentheses in (!receiver.method arg) to be redundant, since they might change the meaning of an expression, depending on precedence. (@alexdowad)Performance/Casecmp doesn't flag uses of downcase/upcase which are not redundant. (@alexdowad)Style/FileName doesn't choke on empty files with spaces in their names. (@alexdowad)ConsistentQuotesInMultiline: true, Style/StringLiterals doesn't error out when inspecting a heredoc with differing indentation across multiple lines. (@alexdowad)Style/ConditionalAssignment behaves correctly when assignment statement uses a character which has a special meaning in a regex. (@alexdowad)Style/SpaceAroundKeyword doesn't flag !super.method, !yield.method, and so on. (@alexdowad)Style/Encoding can remove unneeded encoding comment when autocorrecting with when_needed style. (@alexdowad)Rails/Date when to_time is chained with safe method. (@palkan)Lint/NestedMethodDefinition allows methods defined inside Class.new(S) blocks. (@segiddins)Style/ClassAndModuleChildren doesn't flag nested class definitions, where the outer class has an explicit superclass (because such definitions can't be converted to compact style). (@alexdowad)ASCII-8BIT encoding and output as HTML or JSON. (@jonas054)ENV['HOME'] is undefined. (@mikegee)Style/BlockDelimiters does not flag blocks delimited by {} when a block call is the final value in a hash with implicit braces (one which is the last argument to an outer method call). (@alexdowad)expression instead of keyword (the offense now spans the entire method, class, or module). (@rrosenblum)options, formatters, and requires arrays. (@alexdowad)Style/SignalException does not flag calls to fail if a custom method named fail is defined in the same file. (@alexdowad)Style/FileName considers file names which contain a ? or ! character to still be "snake case". (@alexdowad)Lint/UnusedMethodArgument removes unused block arguments rather than simply prefixing them with an underscore. (@alexdowad)