-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
49 lines (37 loc) · 963 Bytes
/
.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
require:
- rubocop-rspec
- rubocop-performance
AllCops:
TargetRubyVersion: 2.6
Exclude:
- 'bin/*'
- 'vendor/**/*'
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Metrics/AbcSize:
Max: 20
Metrics/LineLength:
# Commonly used screens these days easily fit more than 80 characters.
Max: 120
Exclude:
- 'spec/**/*'
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
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
Metrics/CyclomaticComplexity:
Max: 8
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
RSpec/NestedGroups:
Max: 5