diff options
Diffstat (limited to 'spec/ruby/.rubocop.yml')
-rw-r--r-- | spec/ruby/.rubocop.yml | 65 |
1 files changed, 60 insertions, 5 deletions
diff --git a/spec/ruby/.rubocop.yml b/spec/ruby/.rubocop.yml index eab4c3c4a6..be32ce8900 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: 3.0 DisplayCopNames: true Exclude: - command_line/fixtures/bad_syntax.rb DisabledByDefault: true + NewCops: disable Layout/TrailingWhitespace: Enabled: true @@ -32,15 +33,16 @@ Lint/AssignmentInCondition: Lint/BooleanSymbol: Enabled: false +Lint/DeprecatedOpenSSLConstant: + Exclude: + - library/openssl/digest/**/*.rb + Lint/InterpolationCheck: Enabled: false Lint/LiteralAsCondition: Enabled: false -Lint/RedundantRequireStatement: - Enabled: false - Lint/RedundantSplatExpansion: Enabled: false @@ -56,12 +58,58 @@ 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/InheritException: + Enabled: false + +Lint/SafeNavigationChain: + Enabled: false + +Lint/ElseLayout: + Exclude: + - 'language/if_spec.rb' + Lint/EmptyExpression: Exclude: - 'language/**/*.rb' @@ -71,6 +119,10 @@ Lint/EmptyWhen: - language/case_spec.rb - optional/capi/spec_helper.rb +Lint/ErbNewArguments: + Exclude: + - 'library/erb/new_spec.rb' + Lint/FormatParameterMismatch: Exclude: - 'core/kernel/shared/sprintf.rb' @@ -117,6 +169,9 @@ Lint/Debugger: Lint/Loop: Enabled: false +Style/BlockComments: + Enabled: true + Style/Lambda: Enabled: true EnforcedStyle: literal |