-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.rubocop.yml
52 lines (48 loc) · 830 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
50
51
---
inherit_from: .rubocop_todo.yml
require:
- rubocop-minitest
- rubocop-rspec
AllCops:
NewCops: enable
Exclude:
- 'vendor/**/*'
DefaultFormatter: progress
DisplayCopNames: true
DisplayStyleGuide: true
ExtraDetails: 3.2
# Overrides.
Layout/LineLength:
AllowHeredoc: true
AllowURI: true
Exclude:
- 'spec/**/*_spec.rb'
URISchemes:
- http
- https
Max: 210
Metrics/AbcSize:
# Target: 15
Max: 190
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- 'aemo.gemspec'
# Target: 25
Max: 40
Metrics/ClassLength:
Max: 600
Metrics/CyclomaticComplexity:
# Target 6
Max: 40
Metrics/MethodLength:
# Target 10
Max: 80
Metrics/PerceivedComplexity:
# Target 7
Max: 38
Style/StringLiterals:
EnforcedStyle: single_quotes
SupportedStyles:
- single_quotes
- double_quotes