-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.rubocop.yml
47 lines (47 loc) · 1.1 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
Style/AlignHash:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table
AutoCorrect: true
Style/IndentationConsistency:
EnforcedStyle: rails
Style/StringLiterals:
ConsistentQuotesInMultiline: true
Metrics/ClassLength:
CountComments: false
Max: 500
Metrics/ModuleLength:
CountComments: false
Max: 500
Lint/EndAlignment:
AutoCorrect: true
Lint/DefEndAlignment:
AutoCorrect: true
Rails:
Enabled: true
Style/AutoResourceCleanup:
Description: 'Suggests the usage of an auto resource cleanup version of a method (if available).'
Enabled: true
Metrics/MethodLength:
CountComments: false # count full line comments?
Max: 40
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: single_quotes
NumericLiterals:
Enabled: false
Metrics/LineLength:
Max: 160
Documentation:
Enabled: false
Lint/Debugger: # Easy deletion of all debugger breakpoints. false for debug
Enabled: true
AllCops:
Exclude:
- 'bin/**/*'
- 'vendor/**/*'
- 'log/**/*'
TargetRubyVersion: 2.3
Metrics/AbcSize:
Max: 30
inherit_from: .rubocop_todo.yml