forked from theforeman/foreman_ansible
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop_todo.yml
272 lines (239 loc) · 9.57 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2024-07-23 18:25:51 UTC using RuboCop version 1.64.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: Severity, Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'foreman_ansible.gemspec'
# Offense count: 311
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/ArgumentAlignment:
Enabled: false
# Offense count: 5
# This cop supports safe autocorrection (--autocorrect).
Layout/ClosingHeredocIndentation:
Exclude:
- 'test/unit/helpers/ansible_reports_helper_test.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/BooleanSymbol:
Exclude:
- 'app/models/ansible_variable.rb'
# Offense count: 2
# Configuration parameters: AllowedParentClasses.
Lint/MissingSuper:
Exclude:
- 'app/services/foreman_ansible/import_playbooks_error_notification.rb'
- 'app/services/foreman_ansible/import_roles_and_variables_error_notification.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Minitest/AssertEmpty:
Exclude:
- 'test/functional/hosts_controller_test.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Minitest/AssertEmptyLiteral:
Exclude:
- 'test/unit/concerns/host_managed_extensions_test.rb'
- 'test/unit/concerns/hostgroup_extensions_test.rb'
- 'test/unit/services/inventory_creator_test.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Minitest/AssertIncludes:
Exclude:
- 'test/functional/api/v2/ansible_inventories_controller_test.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Minitest/AssertTruthy:
Exclude:
- 'test/unit/services/inventory_creator_test.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:
- 'app/helpers/foreman_ansible/ansible_roles_helper.rb'
# Offense count: 1
# Configuration parameters: Include.
# Include: db/**/*.rb
Rails/CreateTableWithTimestamps:
Exclude:
- 'db/migrate/20160705082036_create_ansible_role.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedMethods, AllowedPatterns.
# AllowedMethods: order, limit, select, lock
Rails/FindEach:
Exclude:
- 'app/graphql/mutations/hosts/assign_ansible_roles.rb'
- 'db/migrate/20221003153000_add_ansible_callback_enabled_to_templates.rb'
# Offense count: 4
# Configuration parameters: Include.
# Include: app/models/**/*.rb
Rails/HasManyOrHasOneDependent:
Exclude:
- 'app/models/ansible_role.rb'
- 'app/models/concerns/foreman_ansible/host_managed_extensions.rb'
- 'app/models/concerns/foreman_ansible/hostgroup_extensions.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: numeric, symbolic
Rails/HttpStatus:
Exclude:
- 'test/functional/api/v2/hostgroups_controller_test.rb'
- 'test/functional/api/v2/hosts_controller_test.rb'
# Offense count: 2
# Configuration parameters: IgnoreScopes, Include.
# Include: app/models/**/*.rb
Rails/InverseOf:
Exclude:
- 'app/models/concerns/foreman_ansible/host_managed_extensions.rb'
- 'app/models/concerns/foreman_ansible/hostgroup_extensions.rb'
# Offense count: 17
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, Include.
# SupportedStyles: assert_not, refute
# Include: **/test/**/*
Rails/RefuteMethods:
Exclude:
- 'test/functional/api/v2/ansible_roles_controller_test.rb'
- 'test/functional/api/v2/ansible_variables_controller_test.rb'
- 'test/functional/api/v2/hostgroups_controller_test.rb'
- 'test/functional/api/v2/hosts_controller_test.rb'
- 'test/unit/services/api_roles_importer_test.rb'
- 'test/unit/services/inventory_creator_test.rb'
- 'test/unit/services/ui_roles_importer_test.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: MinBranchesCount.
Style/CaseLikeIf:
Exclude:
- 'app/helpers/foreman_ansible/ansible_roles_data_preparations.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: compact, expanded
Style/EmptyMethod:
Exclude:
- 'app/controllers/ansible_variables_controller.rb'
- 'app/controllers/api/v2/ansible_roles_controller.rb'
- 'app/controllers/api/v2/ansible_variables_controller.rb'
# Offense count: 49
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
Enabled: false
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/GlobalStdStream:
Exclude:
- 'db/migrate/20180410125416_rename_ansible_job_categories.rb'
# Offense count: 2
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowedReceivers.
# AllowedReceivers: Thread.current
Style/HashEachMethods:
Exclude:
- 'db/migrate/20210120150019_add_position_to_ansible_role.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
# SupportedShorthandSyntax: always, never, either, consistent, either_consistent
Style/HashSyntax:
Exclude:
- 'app/models/concerns/foreman_ansible/host_managed_extensions.rb'
# Offense count: 3
# This cop supports safe autocorrection (--autocorrect).
Style/IfUnlessModifier:
Exclude:
- 'app/services/foreman_ansible/proxy_api.rb'
- 'app/services/foreman_ansible/variables_importer.rb'
- 'db/seeds.d/62_ansible_proxy_feature.rb'
# Offense count: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
Exclude:
- 'app/helpers/foreman_ansible/ansible_roles_data_preparations.rb'
# Offense count: 2
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantAssignment:
Exclude:
- 'app/services/foreman_ansible/api_roles_importer.rb'
- 'app/services/foreman_ansible/inventory_creator.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantBegin:
Exclude:
- 'lib/tasks/foreman_ansible_tasks.rake'
# Offense count: 6
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantRegexpEscape:
Exclude:
- 'config/routes.rb'
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Mode.
Style/StringConcatenation:
Exclude:
- 'app/lib/proxy_api/ansible.rb'
# Offense count: 29
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Exclude:
- 'app/controllers/api/v2/ansible_override_values_controller.rb'
- 'app/controllers/api/v2/ansible_variables_controller.rb'
- 'app/helpers/foreman_ansible/ansible_roles_helper.rb'
- 'app/models/ansible_variable.rb'
- 'app/views/api/v2/ansible_variables/create.json.rabl'
- 'app/views/api/v2/ansible_variables/destroy.json.rabl'
- 'app/views/ui_ansible_roles/index.json.rabl'
- 'app/views/ui_ansible_roles/main.json.rabl'
- 'app/views/ui_ansible_roles/show.json.rabl'
- 'test/functional/api/v2/ansible_inventories_controller_test.rb'
- 'test/unit/services/inventory_creator_test.rb'
# Offense count: 4
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
Style/TernaryParentheses:
Exclude:
- 'app/helpers/foreman_ansible/ansible_roles_data_preparations.rb'
# Offense count: 10
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
Exclude:
- 'app/helpers/foreman_ansible/ansible_roles_data_preparations.rb'
- 'app/lib/proxy_api/ansible.rb'
- 'app/models/foreman_ansible/ansible_provider.rb'
- 'db/seeds.d/100_common_parameters.rb'
- 'db/seeds.d/90_notification_blueprints.rb'
- 'lib/foreman_ansible/register.rb'
- 'test/unit/helpers/ansible_reports_helper_test.rb'
# Offense count: 65
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Enabled: false