-
Notifications
You must be signed in to change notification settings - Fork 35
/
.rubocop.yml
44 lines (44 loc) · 1.08 KB
/
.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
42
43
44
AllCops:
Exclude:
- 'db/schema.rb'
- 'vendor/**/*'
- 'bin/*'
# Exclude specs from BlockLength as describe specs can often be longer
# Exclude configs from BlockLength
# Exclude db migrations from MethodLength & BlockLength as they may be longer
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
- 'config/**/*.rb'
- 'db/migrate/*.rb'
- 'lib/tasks/*.rake'
ExcludedMethods: ['describe', 'context', 'namespace', 'resource']
Metrics/MethodLength:
Max: 15
Exclude:
- 'db/schema.rb'
- 'db/migrate/*.rb'
- 'app/builders/transaction_csv_builder.rb'
Metrics/AbcSize:
Severity: refactor
Max: 15
Metrics/ClassLength:
Severity: refactor
Metrics/PerceivedComplexity:
Severity: refactor
# Don't require a documentation comment in top-level classes
Documentation:
Enabled: false
Metrics/LineLength:
Max: 100
Exclude:
- 'features/support/env.rb'
- 'lib/tasks/cucumber.rake'
- 'script/cucumber'
Style/NumericLiterals:
Exclude:
- 'spec/factories/**/*.rb'
Style/ConditionalAssignment:
Enabled: false
Style/NumericLiterals:
Enabled: false