Skip to content

Commit

Permalink
Disable silly cop
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Mar 7, 2023
1 parent 3c67a8a commit 297fc70
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,27 @@ AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.4
Exclude:
- 'frozen_old_spec/**/*'
- 'spec/**/*'
- 'test/**/*'
- 'tools/**/*'
- 'Rakefile'
- 'Gemfile'
- '*.gemspec'
- 'default.mspec'
- 'set_version/setter.rb'
- 'lib/backports/1.*/**/*'
- 'lib/backports/1.*.rb'
- 'lib/backports/2.{0,1}.*/**/*'
- 'lib/backports/random/*'
- 'lib/backports/force/*'
- 'lib/backports/rails/*'
- 'lib/backports/rails.rb'
- 'lib/backports/tools/*'
- 'lib/backports/basic_object.rb'
- 'lib/backports/std_lib.rb'
- "frozen_old_spec/**/*"
- "spec/**/*"
- "test/**/*"
- "tools/**/*"
- "Rakefile"
- "Gemfile"
- "*.gemspec"
- "default.mspec"
- "set_version/setter.rb"
- "lib/backports/1.*/**/*"
- "lib/backports/1.*.rb"
- "lib/backports/2.{0,1}.*/**/*"
- "lib/backports/random/*"
- "lib/backports/force/*"
- "lib/backports/rails/*"
- "lib/backports/rails.rb"
- "lib/backports/tools/*"
- "lib/backports/basic_object.rb"
- "lib/backports/std_lib.rb"
NewCops: enable


Layout/EmptyLineAfterGuardClause:
Enabled: false

Expand Down Expand Up @@ -57,7 +56,7 @@ Naming:

Security/Eval:
Exclude:
- 'lib/backports/2.5.0/string/undump.rb'
- "lib/backports/2.5.0/string/undump.rb"

Style/AccessModifierDeclarations:
Enabled: false
Expand All @@ -82,7 +81,7 @@ Style/EmptyElse:

Style/EvalWithLocation:
Exclude:
- 'lib/backports/2.5.0/string/undump.rb'
- "lib/backports/2.5.0/string/undump.rb"

Style/FrozenStringLiteralComment:
Enabled: false
Expand Down Expand Up @@ -120,7 +119,6 @@ Style/HashTransformKeys:
Style/HashTransformValues:
Enabled: false


# TODO: Can be changed after 1.8 support will be dropped

# 1.8 doesn't support leading comma style (which is currently preferred in
Expand All @@ -137,7 +135,7 @@ Style/HashEachMethods:
Style/HashSyntax:
EnforcedStyle: hash_rockets
Exclude:
- 'lib/backports/ractor/*.rb'
- "lib/backports/ractor/*.rb"

Style/Lambda:
EnforcedStyle: lambda
Expand Down Expand Up @@ -180,3 +178,5 @@ Style/DoubleNegation:
Layout/MultilineOperationIndentation:
EnforcedStyle: indented

Lint/BinaryOperatorWithIdenticalOperands:
Enabled: false

0 comments on commit 297fc70

Please sign in to comment.