-
Notifications
You must be signed in to change notification settings - Fork 35
/
.rubocop.yml
88 lines (68 loc) · 1.58 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
# use the shared Yast defaults
inherit_from:
/usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml
# Offense count: 221
Metrics/AbcSize:
Max: 312
# Offense count: 14
Metrics/BlockNesting:
Max: 5
Metrics/BlockLength:
Max: 86
Exclude:
- "test/**/*"
- "src/include/network/routines.rb"
# Offense count: 5
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 2000
# some includes are really long
Metrics/ModuleLength:
Max: 1500
# Offense count: 81
Metrics/CyclomaticComplexity:
Max: 50
# Offense count: 321
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 501
# Offense count: 1
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 6
# Offense count: 74
Metrics/PerceivedComplexity:
Max: 59
# To not break old API
Naming/MethodName:
Enabled: false
# very inconsistent params in old API
Naming/MethodParameterName:
Enabled: false
# very inconsistent params in old API
Naming/BlockParameterName:
Enabled: false
# Offense count: 94
Style/Documentation:
Enabled: false
# Offense count: 97
# Configuration parameters: EnforcedStyle, SupportedStyles.
Naming/VariableName:
Enabled: false
# Offense count: 1
Style/ClassVars:
Enabled: false
# Offense count: 20
# Configuration parameters: Exclude.
Naming/FileName:
Exclude:
- "src/modules/*"
# to keep API compatible
Style/TrivialAccessors:
Enabled: false
# this needs more testing if we can have frozen string literals
Style/FrozenStringLiteralComment:
Enabled: false
# to keep API compatible
Style/OptionalBooleanParameter:
Enabled: false