-
Notifications
You must be signed in to change notification settings - Fork 7
/
.rubocop.yml
116 lines (99 loc) · 2.77 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml
# Offense count: 82
Metrics/AbcSize:
Max: 231
# Offense count: 15
Metrics/BlockNesting:
Max: 5
# Offense count: 6
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 650
# Offense count: 30
Metrics/CyclomaticComplexity:
Max: 48
# Offense count: 152
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Layout/LineLength:
Max: 110
# Offense count: 117
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 283
# Offense count: 7
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 1286
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 7
# Offense count: 28
Metrics/PerceivedComplexity:
Max: 54
# Offense count: 40
Style/Documentation:
Enabled: false
# this needs more testing if we can have frozen string literals
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 147
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
Enabled: false
# Offense count: 4
Lint/EmptyWhen:
Exclude:
- 'src/modules/DASDController.rb'
- 'src/modules/ZFCPController.rb'
# Offense count: 29
# Configuration parameters: CountComments, Max, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Exclude:
- '**/*.gemspec'
- 'src/include/s390/dasd/dialogs.rb'
- 'src/include/s390/dump/ui.rb'
- 'src/include/s390/iucvterminal-server/ui.rb'
- 'src/include/s390/iucvterminal/ui.rb'
- 'src/include/s390/onpanic/ui.rb'
- 'src/modules/DASDController.rb'
# RSpec is known as DSL with big blocks
- 'test/**/*'
# Offense count: 3
Naming/AccessorMethodName:
Exclude:
- 'src/modules/IUCVTerminal.rb'
# Offense count: 9
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts,
# AllowedAcronyms.
Naming/FileName:
Exclude:
- 'src/clients/iucvterminal-server.rb'
- 'src/clients/s390-disk-controller.rb'
- 'src/modules/DASDController.rb'
- 'src/modules/Dump.rb'
- 'src/modules/IUCVTerminal.rb'
- 'src/modules/IUCVTerminalServer.rb'
- 'src/modules/OnPanic.rb'
- 'src/modules/Xpram.rb'
- 'src/modules/ZFCPController.rb'
# Offense count: 19
# Configuration parameters: .
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Enabled: false
# Offense count: 14
Style/MultipleComparison:
Exclude:
- 'src/include/s390/dasd/dialogs.rb'
- 'src/include/s390/dump/ui.rb'
- 'src/include/s390/iucvterminal-server/ui.rb'
- 'src/include/s390/onpanic/ui.rb'
- 'src/include/s390/xpram/ui.rb'
- 'src/include/s390/zfcp/dialogs.rb'
- 'src/modules/Dump.rb'