-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
72 lines (57 loc) · 1.25 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
65
66
67
68
69
70
71
72
---
# Built-in config:
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
# We do not typically use/need class documentation
Documentation:
Enabled: false
Metrics/LineLength:
Max: 120
Metrics/MethodLength:
Max: 20
Metrics/ModuleLength:
Exclude:
- 'spec/**/*_spec.rb'
Style/RaiseArgs:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/SingleLineBlockParams:
Enabled: false
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
Metrics/ParameterLists:
Max: 6
Style/StringLiteralsInInterpolation:
EnforcedStyle: single_quotes
Style/SymbolArray:
EnforcedStyle: percent
MinSize: 3
Style/SingleLineMethods:
Enabled: false
Rails:
Enabled: true
# Run rails specific checks
AllCops:
TargetRubyVersion: 2.4
Include:
- '**/*.rb'
# Include important files that don't end in .rb
- '**/Rakefile'
- '**/config.ru'
- '**/*.rake'
- 'Gemfile'
Exclude:
# exclude files in /vendor because some CI systems put gems in here e.g.
# TravisCI
- 'vendor/**/*'
# exclude the autogenerated schema file as we don't have any control over
# its format
- 'db/schema.rb'
- 'bin/**/*'
- 'doc/**/*'
- 'db/migrate/**/*'
Naming/FileName:
Exclude:
- Gemfile
- Gemfile.lock