-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
41 lines (32 loc) · 987 Bytes
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# all the style related cops comes from https://github.com/Shopify/ruby-style-guide
inherit_gem:
rubocop-shopify: rubocop.yml
require:
- rubocop-minitest
- rubocop-performance
- rubocop-rake
AllCops:
Exclude:
- "data/**/*"
NewCops: enable
Layout/LineLength:
Enabled: false
Metrics/CollectionLiteralLength:
Enabled: false
# The problem with assert(foo) is that it'll pass if foo is 1.
# But there are times when we want to be sure that foo is true, not just truthy.
# So, let's allow `assert_equal true, foo` without complaints.
Minitest/AssertTruthy:
Enabled: false
Minitest/MultipleAssertions:
Enabled: false
# The problem with refute(foo) is that it'll pass if foo is nil.
# But there are times when we want to be sure that foo is false, not just falsy.
# So, let's allow `assert_equal false, foo` without complaints.
Minitest/RefuteFalse:
Enabled: false
Lint/Debugger:
Exclude:
- "bin/console"
Gemspec/DevelopmentDependencies:
Enabled: true