-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
59 lines (43 loc) · 1.03 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
# All the options are defined here: https://rubocop.readthedocs.io/en/latest/
require:
- rubocop-rails
- rubocop-rspec
AllCops:
Exclude:
- 'db/**/*'
- 'script/**/*'
- 'bin/**/*'
Layout/EmptyLinesAroundClassBody:
EnforcedStyle: empty_lines_except_namespace
Layout/ExtraSpacing:
AllowBeforeTrailingComments: true
Layout/LineLength:
Enabled: false
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
Layout/SpaceBeforeBlockBraces:
Enabled: false
Layout/SpaceInsideBlockBraces:
Enabled: false
Lint/AmbiguousBlockAssociation:
Exclude:
- spec/**/*
Metrics/BlockLength:
Exclude:
- config/**/*
- spec/**/*
Metrics/MethodLength:
Max: 20
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/SymbolArray:
EnforcedStyle: brackets
# These are relatively new cops that are disabled by default unless explicitly enabled
Style/HashEachMethods:
Enabled: true
Style/HashTransformKeys:
Enabled: true
Style/HashTransformValues:
Enabled: true