-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy path.rubocop.yml
126 lines (107 loc) · 3.29 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
117
118
119
120
121
122
123
124
125
126
# use the shared Yast defaults
inherit_from:
- /usr/share/YaST2/data/devtools/data/rubocop-1.24.1_yast_style.yml
# this needs more testing if we can have frozen string literals
Style/FrozenStringLiteralComment:
Enabled: false
Naming/FileName:
Include:
- "library/*/src/lib/**/*.rb"
# GeneralDialogs.AskDialog rules them all
Metrics/AbcSize:
Max: 455
# Offense count: 105
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 500
# RSpec is known as DSL with big blocks
Exclude:
- test/**/*
# Offense count: 64
# Configuration parameters: CountBlocks.
Metrics/BlockNesting:
Max: 7
# Offense count: 15
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 1000
# GeneralDialogs.AskDialog rules them all
Metrics/CyclomaticComplexity:
Max: 86
# Offense count: 112
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 526
# Offense count: 12
# Configuration parameters: CountComments.
Metrics/ModuleLength:
Max: 1063
# Offense count: 2
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 10
# Offense count: 81
Metrics/PerceivedComplexity:
Max: 87
# TODO: enable it, just ENOTIME
# Offense count: 1
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'src/modules/AutoinstFunctions.rb'
# Offense count: 361
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
Enabled: false
# TODO: enable it, just ENOTIME
# Offense count: 16
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
Naming/BlockParameterName:
Exclude:
- 'src/clients/clone_system.rb'
- 'src/include/autoinstall/PartitionDialog.rb'
- 'src/include/autoinstall/dialogs.rb'
- 'src/modules/AutoinstClone.rb'
- 'src/modules/AutoinstPartPlan.rb'
- 'src/modules/AutoinstSoftware.rb'
- 'src/modules/Profile.rb'
# TODO: enable it, just ENOTIME
# Offense count: 91
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: io, id, to, by, on, in, at, ip, db
Naming/MethodParameterName:
Enabled: false
# Offense count: 573
# Configuration parameters: EnforcedStyle.
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Enabled: false
# TODO: enable it, just ENOTIME
# Offense count: 81
Style/Documentation:
Enabled: false
# TODO: enable it, just ENOTIME
# Offense count: 29
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Enabled: false
# TODO: enable it, just ENOTIME
# Offense count: 31
Style/MultipleComparison:
Exclude:
- 'src/clients/files_auto.rb'
- 'src/clients/report_auto.rb'
- 'src/include/autoinstall/PartitionDialog.rb'
- 'src/include/autoinstall/StorageDialog.rb'
- 'src/include/autoinstall/ask.rb'
- 'src/include/autoinstall/classes.rb'
- 'src/include/autoinstall/conftree.rb'
- 'src/include/autoinstall/dialogs.rb'
- 'src/include/autoinstall/general_dialogs.rb'
- 'src/include/autoinstall/script_dialogs.rb'
- 'src/modules/AutoInstallRules.rb'
- 'src/modules/AutoinstConfig.rb'
- 'src/modules/AutoinstScripts.rb'