forked from frab/frab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
52 lines (41 loc) · 1.07 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
AllCops:
TargetRubyVersion: 2.3
# Old ruby style syntax may still be needed
Style/HashSyntax:
Enabled: true
# 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 { 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, avoid manual vertical alignment
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