forked from voc/voctoweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
60 lines (47 loc) · 1.17 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
# old ruby style syntax may still be needed
Style/HashSyntax:
Enabled: false
# never break line due to length, except in data
# vim: set wrap
Metrics/LineLength:
Max: 1024
# use and/or for flow control, but not in boolean assignments
# http://devblog.avdi.org/2010/08/02/using-and-and-or-in-ruby/
Style/AndOr:
Enabled: false
# use not with .select and flow control
Style/Not:
Enabled: false
# use self for clarity (args?)
#Style/RedundantSelf:
# Enabled: false
# Good cop, but to spammy
#Style/StringLiterals:
#Enabled: false
# use { only for single line blocks, but allow block content on its own line to keep line length short
# each { |l|
# l.apply_long_method_name
# }
Style/BlockDelimiters:
Enabled: false
# Do not use lambda
Style/Lambda:
Enabled: false
# allow TODO instead of requiring TODO:
Style/CommentAnnotation:
Enabled: false
# vim prefers fixed indent
Style/AlignParameters:
Enabled: true
EnforcedStyle: with_fixed_indentation
# Do not write 1234 as 1_234
Style/NumericLiterals:
Enabled: false
# Relax for controllers with multiple formats
Metrics/AbcSize:
Max: 40
# too spammy
Style/Documentation:
Enabled: false
Style/AlignHash:
Enabled: false