-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.rubocop.yml
More file actions
47 lines (38 loc) · 795 Bytes
/
.rubocop.yml
File metadata and controls
47 lines (38 loc) · 795 Bytes
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
AllCops:
TargetRubyVersion: 2.5.1
# Rails: true
# Include:
# - '**/Rakefile'
# - '**/config.ru'
Exclude:
- 'doc/**/*'
- 'tmp/**/*'
- 'bin/**/*'
- 'db/**/*'
- 'test/**/*'
- 'config/**/*'
- 'script/**/*'
- 'vendor/**/*'
- 'spec/**/*'
- !ruby/regexp /old_and_unused\.rb$/
# Style/WhileUntilModifier:
# MaxLineLength: 160
# Style/IfUnlessModifier:
# MaxLineLength: 160
Metrics/LineLength:
Max: 160
Metrics/AbcSize:
Max: 120
Metrics/MethodLength:
CountComments: false # count full line comments?
Max: 120
NumericPredicate:
EnforcedStyle: comparison
Style/Documentation:
Enabled: false
Metrics/ModuleLength:
Exclude:
- 'lib/rack/cloudflare/countries.rb'
Naming/FileName:
Exclude:
- 'rack-cloudflare.gemspec'