-
Notifications
You must be signed in to change notification settings - Fork 44
/
.rubocop.yml
77 lines (62 loc) · 1.49 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml
# Offense count: 153
Metrics/AbcSize:
Max: 304
# Offense count: 32
Metrics/BlockNesting:
Max: 8
Metrics/BlockLength:
Include:
- src/lib/**/*.rb
Exclude:
- src/lib/installation/clients/*.rb
# skip for now, as loop block is too huge
- src/lib/installation/proposal_runner.rb
# Offense count: 29
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 1100
Metrics/ModuleLength:
Max: 600
# Offense count: 88
Metrics/CyclomaticComplexity:
Max: 57
# Offense count: 201
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 431
# Offense count: 89
Metrics/PerceivedComplexity:
Max: 63
# Offense count: 85
Style/Documentation:
Enabled: false
# Offense count: 6
# Configuration parameters: Exclude.
Naming/FileName:
Include:
- src/lib/**/*.rb
Exclude:
- src/lib/installation/clients/*.rb
# Offense count: 179
# Configuration parameters: EnforcedStyle, SupportedStyles.
Naming/MethodName:
Include:
- src/lib/**/*.rb
Exclude:
- src/lib/installation/clients/*.rb
# Offense count: 22
# Configuration parameters: EnforcedStyle, SupportedStyles.
Naming/VariableName:
Include:
- src/lib/**/*.rb
Exclude:
- src/lib/installation/clients/*.rb
Naming/PredicateName:
Exclude:
# mocked Registration.is_registered?
- test/lib/upgrade_repo_manager_test.rb
Style/FrozenStringLiteralComment:
Enabled: false