-
Notifications
You must be signed in to change notification settings - Fork 10
/
.rubocop.yml
97 lines (81 loc) · 2.56 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-0.71.0_yast_style.yml
# this needs more testing if we can have frozen string literals
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 1
# Configuration parameters: AllowKeywordBlockArguments.
Lint/UnderscorePrefixedVariableName:
Exclude:
- 'src/include/add-on/add-on-workflow.rb'
Naming/MethodName:
Enabled: false
Naming/VariableName:
Enabled: false
Lint/Loop:
Enabled: false
# Offense count: 11
Metrics/AbcSize:
Max: 200
# Offense count: 24
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 350
# Offense count: 5
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 4
# Offense count: 11
Metrics/CyclomaticComplexity:
Max: 40
# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
Max: 122
# Offense count: 16
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 280
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 1400
# Offense count: 2
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 7
# Offense count: 10
Metrics/PerceivedComplexity:
Max: 41
# Offense count: 10
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
Naming/FileName:
Exclude:
- 'src/clients/add-on.rb'
- 'src/clients/add-on_auto.rb'
- 'src/clients/add-on_proposal.rb'
- 'src/clients/inst_add-on.rb'
- 'src/clients/inst_add-on_software.rb'
- 'src/include/add-on/add-on-workflow.rb'
- 'src/lib/add-on/clients/add-on_auto.rb'
- 'src/lib/add-on/clients/inst_add-on.rb'
- 'src/modules/AddOnOthers.rb'
- 'test/y2add_on/clients/inst_add-on_test.rb'
# Offense count: 8
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'src/clients/add-on.rb'
- 'src/clients/add-on_proposal.rb'
- 'src/clients/inst_add-on_software.rb'
- 'src/clients/vendor.rb'
- 'src/include/add-on/add-on-workflow.rb'
- 'src/include/add-on/misc.rb'
- 'src/lib/add-on/clients/add-on_auto.rb'
- 'src/modules/AddOnOthers.rb'