-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
51 lines (40 loc) · 1.1 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
inherit_from: rubocop-todo.yml
AllCops:
TargetRubyVersion: 2.2
Exclude:
- 'config/**/*'
- 'spec/dummy/config/**/*'
- 'db/**/*'
- 'spec/dummy/db/**/*'
- 'script/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
- 'bin/*'
# Use UTF-8 as the source file encoding.
Encoding:
Enabled: false
# Limit lines to 80 characters.
LineLength:
Max: 120
AndOr:
Enabled: false
MethodLength:
CountComments: false # count full line comments?
Max: 30
# Limit modules to have a length of 200
Metrics/ModuleLength:
Max: 200
Metrics/BlockLength:
Max: 250
# Limit classes to have a length of 200
Metrics/ClassLength:
Max: 200
################################################################## DISABLED COPS
# These cops are disabled because we think they are a Bad Idea. If you add one
# here, make sure to add a comment describing what the cop does, and why this
# is a bad idea.
# Forces the argument names of the block given to #reduce to be `a, e`. Only
# applies on single-line blocks, but why would we want to force people to use
# less descriptive names?
Documentation:
Enabled: false