relnotes/v1.70.0.md
Style/ItAssignment cop to detect local assignments to it inside blocks. (@dvandersluis)Lint/SharedMutableDefault cop to alert on mutable Hash defaults. (@corsonknowles)Lint/ConstantReassignment. (@lovro-bikic)target_gem_version API to change behavior of a cop at runtime depending on which gem version is present. (@earlopain)Lint/NonAtomicFileOperation to detect offenses with fully qualified constants. (@viralpraxis)--format option to accept fully qualified formatter class names. (@viralpraxis)Lint/Syntax when a syntax error occurs. (@earlopain)RuboCop::Cop::Util.to_string_literal to work correctly with frozen strings. (@viralpraxis)Lint/Void inside of non-modifier conditionals. (@GabeIsman)Style/MultipleComparison when setting AllowMethodComparison: false and comparing with simple method calls. (@koic)Layout/EmptyLinesAroundAccessModifier when an access modifier and an expression are on the same line. (@koic)Style/MethodCallWithArgsParentheses when setting EnforcedStyle: omit_parentheses and last argument is an endless range. (@earlopain)Style/RaiseArgs with anonymous splat and triple dot forwarding. (@earlopain)Lint/NestedMethodDefinition when defining a method on a constant or a method call. (@koic)Style/MultipleComparison when using multiple safe navigation method calls. (@koic)Style/RedundantInitialize when empty initialize method has arguments. (@marocchino)rubocop -d on a config with a remote inherit_from that causes a duplicate setting warning. (@dvandersluis)Style/RedundantLineContinuation with multiple line continuations. (@dvandersluis)Naming/BlockForwarding when method just returns the block argument. (@mvz)Layout/HashAlignment when there is a multiline positional argument and Layout/ArgumentAlignment is configured with EnforcedStyle: with_fixed_indentation. (@dvandersluis)Layout/SpaceAroundOperators when different comparison operators were aligned with each other. (@dvandersluis)Lint/LiteralInInterpolation cop error on invalid string literal. (@viralpraxis)Lint/NonAtomicFileOperation cop error on non-constant receiver. (@viralpraxis)Lint/Void cop error on if without body. (@viralpraxis)Style/ClassAndModuleChildren cop error on compact enforced style and unindented body. (@viralpraxis)Style/FloatDivision cop error if #to_f has implicit receiver. (@viralpraxis)Style/HashExcept to recognize safe navigation when ActiveSupportExtensionsEnabled config is enabled. (@lovro-bikic)Style/HashSyntax cop error on implicit call method. (@viralpraxis)Style/MissingElse cop error if Style/EmptyElse's EnforcedStyle is not both and if expression contains elsif. (@viralpraxis)Style/MissingElse cop error if Style/EmptyElse's EnforcedStyle is not both and if expression contains multiple elsif. (@viralpraxis)Style/RedundantCondition cop error on parentheses and modifier if in else. (@viralpraxis)Style/RedundantRegexpArgument when the regex contains a single quote. (@mrzasa)Style/YodaExpression cop error in case of suffix form of operator. (@viralpraxis)Layout/LineContinuationSpacing to ignore continuations inside a regexp or xstr. (@dvandersluis)Style/SuperArguments to handle super with a block or with a chained method with a block. (@dvandersluis)NoMethodError in ConfigValidator when a Cop's config is not a Hash and raise ValidationError instead. (@amomchilov)Style/ObjectThen. (@dvandersluis)Layout/HashAlignment. (@dvandersluis)Layout/HeredocArgumentClosingParenthesis. (@dvandersluis)Layout/LineLength. (@dvandersluis)Style/SendWithLiteralMethodName. (@dvandersluis)Lint/NumericOperationWithConstantResult. (@earlopain)Style/SlicingWithRange when calling .[] or &.[] with a correctable range. (@dvandersluis)Lint/DuplicateSetElement to detect offences within SortedSet. (@viralpraxis)Layout/TrailingWhitespace to support blank characters other than space and tab. (@krororo)Metrics/MethodLength to make use of AllowedMethods and AllowedPatterns for methods defined dynamically with define_method. (@dvandersluis)Style/AccessModifierDeclarations to add AllowModifiersOnAliasMethod configuration (default true). (@dvandersluis)Style/RedundantSelfAssignment to handle safe navigation on the right-hand side of the assignment. (@dvandersluis)