forked from puppetlabs/puppetlabs-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop_todo.yml
158 lines (137 loc) · 4.58 KB
/
.rubocop_todo.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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-05-25 09:17:34 UTC using RuboCop version 1.48.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
Lint/DuplicateBranch:
Exclude:
- 'tooling/kube_tool/other_params.rb'
# Offense count: 1
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
Lint/UnreachableLoop:
Exclude:
- 'spec/spec_helper_acceptance_local.rb'
# Offense count: 531
Lint/UselessAssignment:
Enabled: false
# Offense count: 1066
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 84
# Offense count: 1
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns, inherit_mode.
# AllowedMethods: refine
Metrics/BlockLength:
Max: 27
# Offense count: 1
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 127
# Offense count: 1058
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Max: 15
# Offense count: 1594
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
Metrics/MethodLength:
Max: 69
# Offense count: 1058
# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/PerceivedComplexity:
Max: 17
# Offense count: 1
# Configuration parameters: AllowedNames.
# AllowedNames: module_parent
Naming/ClassAndModuleCamelCase:
Exclude:
- 'tooling/kube_tool.rb'
# Offense count: 4
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Exclude:
- 'spec/spec_helper_acceptance_local.rb'
# Offense count: 1
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: as, at, by, cc, db, id, if, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
Exclude:
- 'tooling/kube_tool/clean_up.rb'
# Offense count: 2640
# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
Naming/VariableName:
Enabled: false
# Offense count: 16
# Configuration parameters: Prefixes, AllowedPatterns.
# Prefixes: when, with, without
RSpec/ContextWording:
Exclude:
- 'spec/acceptance/integration_kubernetes_spec.rb'
- 'spec/acceptance/kubernetes_spec.rb'
- 'spec/classes/config/kubeadm_spec.rb'
- 'spec/classes/init_spec.rb'
- 'spec/classes/kube_addons_spec.rb'
- 'spec/classes/packages_spec.rb'
# Offense count: 13
# Configuration parameters: IgnoredMetadata.
RSpec/DescribeClass:
Exclude:
- '**/spec/features/**/*'
- '**/spec/requests/**/*'
- '**/spec/routing/**/*'
- '**/spec/system/**/*'
- '**/spec/views/**/*'
- 'spec/acceptance/integration_kubernetes_spec.rb'
- 'spec/acceptance/kubernetes_spec.rb'
- 'spec/classes/cluster_roles_spec.rb'
- 'spec/classes/config/kubeadm_spec.rb'
- 'spec/classes/config/worker_spec.rb'
- 'spec/classes/init_spec.rb'
- 'spec/classes/kube_addons_spec.rb'
- 'spec/classes/packages_spec.rb'
- 'spec/classes/repos_spec.rb'
- 'spec/classes/service_spec.rb'
- 'spec/defines/kubeadm_init_spec.rb'
- 'spec/defines/kubeadm_join_spec.rb'
- 'spec/defines/wait_for_default_sa_spec.rb'
# Offense count: 6
# Configuration parameters: CountAsOne.
RSpec/ExampleLength:
Max: 7
# Offense count: 40
# Configuration parameters: EnforcedStyle, IgnoreSharedExamples.
# SupportedStyles: always, named_only
RSpec/NamedSubject:
Exclude:
- 'spec/classes/config/kubeadm_spec.rb'
- 'spec/classes/kube_addons_spec.rb'
- 'spec/classes/packages_spec.rb'
- 'spec/classes/repos_spec.rb'
- 'spec/classes/service_spec.rb'
- 'spec/defines/kubeadm_join_spec.rb'
- 'spec/defines/wait_for_default_sa_spec.rb'
# Offense count: 2
# Configuration parameters: AllowedGroups.
RSpec/NestedGroups:
Max: 4
# Offense count: 3
# Configuration parameters: AllowedPatterns.
# AllowedPatterns: ^expect_, ^assert_
RSpec/NoExpectationExample:
Exclude:
- 'spec/acceptance/kubernetes_spec.rb'
# Offense count: 1
Style/CombinableLoops:
Exclude:
- 'tooling/kube_tool/create_certs.rb'
# Offense count: 2
Style/MixinUsage:
Exclude:
- 'spec/spec_helper.rb'
- 'spec/spec_helper_acceptance_local.rb'