-
Notifications
You must be signed in to change notification settings - Fork 8
/
.rubocop.yml
43 lines (35 loc) · 1.5 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
######################################################################
## This is intended to be a living document ##
## ##
## If anyone feels that things are too strict: ##
## ##
## Ask "Is the code clearer with or without the rule?" ##
## Then find the rule online and read the rational for it ##
## If you still belive that the code is easier to read, ##
## Disable it below, ALONG WITH A COMMENT SAYING WHY ##
######################################################################
AllCops:
Exclude:
- config/**/*.rb
# modern dev screens are large
Metrics/LineLength:
Max: 100
# 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: 20
# will probably be the default in ruby 3, so don't bother adding
Style/FrozenStringLiteralComment:
Enabled: false
# don't need to require documenting everything
Documentation:
Enabled: false
# while %i and friends are nice, [] is universally known
Style/SymbolArray:
Enabled: false
# this way the comment is explicitly linked to the line it's referring to
Style/CommentedKeyword:
Enabled: false
# allow multiline {} if the return value is used, clearer then begin/end
Style/BlockDelimiters:
EnforcedStyle: semantic