relnotes/v0.52.0.md
TargetRubyVersion 2.5. (@walf443)Layout/ClassStructure cop that checks whether definitions in a class are in the configured order. This cop is disabled by default. (@jonatas)Rails/InverseOf checks for association arguments that require setting the inverse_of option manually. (@bdewater)Layout/SpaceInsideReferenceBrackets cop. (@garettarrowood)Layout/SpaceInsideArrayLiteralBrackets cop. (@garettarrowood)Style/TrailingBodyOnMethodDefinition cop. (@garettarrowood)Style/TrailingMethodEndStatement cop. (@garettarrowood)Style/StringHashKeys cop. (@donjar)Style/RandomWithOffset cop. (@donjar)Lint/ShadowedArgument cop and remove argument shadowing detection from Lint/UnusedBlockArgument and Lint/UnusedMethodArgument. (@akhramov)Lint/MissingCopEnableDirective cop. (@tdeo)Rails/EnvironmentComparison cop. (@tdeo)AllowedChars option to Style/AsciiComments cop. (@hedgesky)Style/EmptyBlockParameter and Style/EmptyLambdaParameter cops. (@pocke)Gemspec/RequiredRubyVersion cop. (@koic)Gemspec/RedundantAssignment cop. (@koic)unannotated option to Style/FormatStringToken cop. (@drenmi)Rails/CreateTableWithTimestamps cop. (@wata727)Style/ColonMethodDefinition cop. (@rrosenblum)Style/ExtendSelf cop. (@drenmi)Rails/RedundantReceiverInWithOptions cop. (@koic)Rails/LexicallyScopedActionFilter cop. (@wata727)Style/EvalWithLocation cop. (@pocke)Rails/Presence cop. (@wata727)Layout/EmptyLinesAroundArguments. (@garettarrowood)Style/ConstantName with constant names using non-ASCII capital letters with accents. (@timrogers)Layout/BlockEndNewline cop from introducing trailing whitespaces. (@bgeuken)Performance/HashEachMethods when unused argument(s) exists in other blocks. (@pocke)Performance/HashEachMethods. (@pocke)...::DateTime. (@dpostorivo)Lint/UnneededDisable, which was returning offenses even after being disabled in a comment. (@tdeo)EnforcedStyleForEmptyBraces for Layout/SpaceBeforeBlockBraces cop. (@drenmi)Rails/HasManyOrHasOneDependent aware of multiple associations in with_options. (@koic)Layout/MultilineOperationIndentation when an operation spans multiple lines and contains a ternary expression. (@rrosenblum)Style/MixinUsage cop. (@koic)Style/EmptyElse autocorrection removes comments from branches. (@dpostorivo)Style/UnneededPercentQ from breaking on strings that are concatenated with backslash. (@pocke)Style/PercentLiteralDelimiters incorrectly automatically modifies escaped percent literal delimiter. (@koic)Naming/ConstantName false offense on assigning to a nonoffensive assignment. (@garettarrowood)Style/HashSyntax cop when hash is used as unspaced argument. (@drenmi)Style/BracesAroundHashParameters auto-correction. (@garettarrowood)Style/MixinUsage when include call is a method argument. (@koic)Lint/UnneededSplatExpansion, when Array.new resides in an array literal. (@akhramov)Style/SafeNavigation when safe guarding arithmetic operation or assignment. (@tiagotex)Style/MinMax from breaking on implicit receivers. (@drenmi)Style/SafeNavigation when safe guarding comparisons. (@tiagotex)Style/RedundantParentheses cop when unspaced ternary is present. (@tiagotex)Naming/ConstantName cop when using frozen object assignment. (@koic)Style/SafeNavigation when the right hand side is negated. (@rrosenblum)Bundler/OrderedGems when gems are references from variables (ignores them in the sorting). (@tdeo)Metrics/ParameterLists. (@reitermarkus)Style/StderrPuts. (@jaredbeck)Lint/RedundantWithIndex cop aware of offset argument. (@koic)Metrics/LineLength: Max when generating .rubocop_todo.yml. (@jonas054)SupportedStyles from "Configuration parameters" in .rubocop_todo.yml. (@pocke)Lint/RescueWithoutErrorClass has been replaced by Style/RescueStandardError. (@rrosenblum)Layout/SpaceInsideBrackets in favor of two new configurable cops. (@garettarrowood)define_method. (@pocke)Layout/IndentHeredoc aware of line length. (@pocke)--show-cops option aware of --force-default-config. (@pocke)Lint/MissingCopEnableDirective cop. (@tdeo)Lint/Syntax cop with the same settings as the default. (@tdeo)