From 45cf4f218728a15eb36d14a6c9912086525f5e3f Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Mon, 25 Apr 2022 14:53:54 +0200 Subject: Update to ruby/spec@3affe1e --- spec/ruby/.rubocop.yml | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) (limited to 'spec/ruby/.rubocop.yml') diff --git a/spec/ruby/.rubocop.yml b/spec/ruby/.rubocop.yml index eab4c3c4a6..e807b59321 100644 --- a/spec/ruby/.rubocop.yml +++ b/spec/ruby/.rubocop.yml @@ -1,11 +1,12 @@ inherit_from: .rubocop_todo.yml AllCops: - TargetRubyVersion: 2.6 + TargetRubyVersion: 2.7 DisplayCopNames: true Exclude: - command_line/fixtures/bad_syntax.rb DisabledByDefault: true + NewCops: disable Layout/TrailingWhitespace: Enabled: true @@ -56,12 +57,52 @@ Lint/UnusedMethodArgument: Lint/UselessAssignment: Enabled: false -Lint/UselessComparison: +Lint/BinaryOperatorWithIdenticalOperands: Enabled: false +Lint/EmptyConditionalBody: + Enabled: false # buggy + Lint/Void: Enabled: false +Lint/ConstantDefinitionInBlock: + Enabled: false + +Lint/RaiseException: + Enabled: false + +Lint/FloatComparison: + Enabled: false + +Lint/DeprecatedClassMethods: + Enabled: false + +Lint/UnreachableLoop: + Enabled: false + +Lint/MissingSuper: + Enabled: false + +Lint/UselessMethodDefinition: + Enabled: false + +Lint/UselessTimes: + Enabled: false + +Lint/MixedRegexpCaptureTypes: + Enabled: false + +Lint/DuplicateElsifCondition: + Enabled: false + +Lint/OutOfRangeRegexpRef: + Enabled: false + +Lint/ElseLayout: + Exclude: + - 'language/if_spec.rb' + Lint/EmptyExpression: Exclude: - 'language/**/*.rb' -- cgit v1.2.3