-
Notifications
You must be signed in to change notification settings - Fork 7
/
.rubocop.yml
51 lines (43 loc) · 1.31 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
require: rubocop-rspec
AllCops:
TargetRubyVersion: 2.3
Documentation:
# Skips checking to make sure top level modules / classes have a comment.
Enabled: false
Style/ClassAndModuleChildren:
# Skips checking the style of children definitions at classes and modules.
#
# Basically there are two different styles:
#
# `nested` - have each child on a separate line
# class Foo
# class Bar
# end
# end
#
# `compact` - combine definitions as much as possible
# class Foo::Bar
# end
#
# With it disabled, either or is valid.
Enabled: false
Metrics/LineLength:
# Commonly used screens these days easily fit more than 80 characters.
Max: 120
Metrics/MethodLength:
# 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
Max: 20
Layout/SpaceAroundEqualsInParameterDefault:
# No space makes the method definition shorter and differentiates
# from a regular assignment.
EnforcedStyle: no_space
Style/SymbolArray:
# We do not need to support Ruby 1.9, so this is good to use.
Enabled: true
Style/PercentLiteralDelimiters:
# Because percent literals are closer to method calls, use parenthesis.
PreferredDelimiters:
default: ()
'%i': '()'
'%w': '()'