relnotes/v1.40.0.md
Style/RedundantConstantBase cop. (@r7kamura)--[no-]auto-gen-enforced-style CLI option. (@ydah)Style/RequireOrder cop. (@r7kamura)Style/SelectByRegexp aware of !~ method. (@koic)Style/ArrayIntersect which replaces (array1 & array2).any? with array1.intersect?(array2), method Array#intersect? was added in ruby 3.1. (@KirIgor)Lint/AssignmentInCondition. (@r7kamura)Lint/ParenthesesAsGroupedExpression when using a block argument. (@ydah)Lint/SafeNavigationChain when using safe navigation with [] operator followed by method chain. (@koic)Style/GuardClause when using heredoc as an argument of raise in branch body. (@koic)EnforcedShorthandSyntax: always of Style/HashSyntax with Style/IfUnlessModifier when using Ruby 3.1. (@koic)Lint/ShadowingOuterLocalVariable when a block local variable has same name as an outer until scope variable. (@koic)Lint/EmptyConditionalBody when one using line if/;/end without then body. (@koic)Style/GuardClause when using raise in then body of if..elsif..end form. (@koic)Lint/RedundantCopDisableDirective cop. (@isarcasm)Layout/MultilineMethodCallBraceLayout when using method chain for heredoc argument in multiline literal brace layout. (@koic)Style/IfWithSemicolon when using one line if/;/end without then body. (@koic)Style/RedundantReturn when dynamic define methods. (@ydah)Bundler/DuplicatedGem, Bundler/InsecureProtocolSource, Gemspec/DeprecatedAttributeAssignment, Gemspec/DuplicatedAssignment, Gemspec/RequireMFA, Gemspec/RequiredRubyVersion, and Gemspec/RubyVersionGlobalsUsage cops to warning. (@koic)Style/RedundantArgument aware of Array#sum. (@koic)Metric cops. (@fatkodima)Lint/Void aware of used lambda and proc in void context. (@koic)Lint/InterpolationCheck from Safe: false to SafeAutoCorrect: false. (@r7kamura)Lint/DeprecatedConstants aware of deprecated Struct::Group and Struct::Passwd classes. (@koic)respond_to from default value of AllowedMethods for Style/SymbolProc. (@koic)Style/HashSyntax aware of without parentheses call expr follows. (@koic)Lint/SendWithMixinArgument. (@r7kamura)cc to AllowedNames of MethodParameterName cop. (@tjschuck)Style/SafeNavigation. (@fatkodima)