forked from msimonborg/phone-your-rep-api
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rubocop.yml
64 lines (50 loc) · 1.01 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.4
Lint/AmbiguousBlockAssociation:
Exclude:
- 'app/models/**/*'
Metrics/LineLength:
Max: 100
Exclude:
- 'db/**/*'
- 'config/initializers/devise.rb'
Metrics/AbcSize:
Max: 20
Exclude:
- 'db/**/*'
Metrics/MethodLength:
Max: 15
Exclude:
- 'db/**/*'
Metrics/ClassLength:
Exclude:
- 'lib/state_rep_updater.rb'
Style/ClassAndModuleChildren:
Exclude:
- 'test/test_helper.rb'
- 'config/initializers/rack-attack.rb'
Style/FileName:
Exclude:
- 'config/initializers/rack-attack.rb'
Lint/AssignmentInCondition:
Exclude:
- 'bin/spring'
Metrics/BlockLength:
Exclude:
- 'db/schema.rb'
- '**/*.rake'
- 'config/routes.rb'
- 'spec/**/*'
- 'config/initializers/jpartial.rb'
Style/DotPosition:
EnforcedStyle: trailing
Style/Documentation:
Enabled: false
Rails/Output:
Exclude:
- 'lib/shapefiles.rb'
Style/PercentLiteralDelimiters:
PreferredDelimiters:
'%i': '[]'
'%w': '[]'