summaryrefslogtreecommitdiff
path: root/spec/ruby/.rubocop.yml
diff options
context:
space:
mode:
authoreregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-21 22:01:34 +0000
committereregon <eregon@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-21 22:01:34 +0000
commitb448f23e2168af1fb7fc5210e99f92317b836de9 (patch)
tree87025f77054d23597a77fad3fefed2210731cea0 /spec/ruby/.rubocop.yml
parent2aefb19888a6c7b2be498308e32a2be1851bf918 (diff)
Update to ruby/spec@dd828d6
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec/ruby/.rubocop.yml')
-rw-r--r--spec/ruby/.rubocop.yml25
1 files changed, 24 insertions, 1 deletions
diff --git a/spec/ruby/.rubocop.yml b/spec/ruby/.rubocop.yml
index c544fa5fd08..58529f15b29 100644
--- a/spec/ruby/.rubocop.yml
+++ b/spec/ruby/.rubocop.yml
@@ -37,6 +37,9 @@ Lint/LiteralAsCondition:
Lint/UnneededRequireStatement:
Enabled: false
+Lint/UnneededSplatExpansion:
+ Enabled: false
+
Lint/UnifiedInteger:
Enabled: false
@@ -52,7 +55,6 @@ Lint/UselessAssignment:
Lint/UselessComparison:
Enabled: false
-# The cop registers too many false positives to `.should == something`
Lint/Void:
Enabled: false
@@ -65,11 +67,32 @@ Lint/EmptyWhen:
- language/case_spec.rb
- optional/capi/spec_helper.rb
+Lint/FormatParameterMismatch:
+ Exclude:
+ - 'core/kernel/shared/sprintf.rb'
+ - 'core/string/modulo_spec.rb'
+
Lint/NestedMethodDefinition:
Exclude:
- language/def_spec.rb
- language/fixtures/def.rb
+Lint/UnreachableCode:
+ Exclude:
+ - 'core/enumerator/lazy/fixtures/classes.rb'
+ - 'core/kernel/catch_spec.rb'
+ - 'core/kernel/throw_spec.rb'
+ - 'language/break_spec.rb'
+ - 'language/fixtures/break.rb'
+ - 'language/fixtures/break_lambda_toplevel.rb'
+ - 'language/fixtures/break_lambda_toplevel_block.rb'
+ - 'language/fixtures/break_lambda_toplevel_method.rb'
+ - 'language/fixtures/return.rb'
+ - 'language/next_spec.rb'
+ - 'language/return_spec.rb'
+ - 'optional/capi/kernel_spec.rb'
+ - 'shared/kernel/raise.rb'
+
Lint/UriRegexp:
Exclude:
- 'library/uri/regexp_spec.rb'