-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.rubocop.yml
53 lines (41 loc) · 1.03 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
AllCops:
Exclude:
- db/schema.rb
- spec/**/*.rb
- bin/*
# Commonly used screens these days easily fit more than 80 characters.
Metrics/LineLength:
Max: 120
# Too short methods lead to extraction of single-use methods, which can make
# the code easier to read (by naming things), but can also clutter the class
Metrics/MethodLength:
Max: 30
# The guiding principle of classes is SRP, SRP can't be accurately measured by LoC
Metrics/ClassLength:
Max: 1500
Metrics/AbcSize:
Max: 30
Metrics/BlockLength:
Max: 50
Exclude:
- '**/*.gemspec'
- config/routes.rb
# Mixing the styles looks just silly.
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
# Check with yard instead.
Style/Documentation:
Enabled: false
Style/MultilineBlockChain:
Enabled: false
Layout/MultilineOperationIndentation:
Enabled: false
Style/SymbolArray:
Enabled: false
# Chinese comment is OK
Style/AsciiComments:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false