conjur-api 5.3.8.pre.3 → 5.3.8.pre.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. metadata +2 -193
  4. data/.codeclimate.yml +0 -10
  5. data/.dockerignore +0 -1
  6. data/.github/CODEOWNERS +0 -10
  7. data/.gitignore +0 -32
  8. data/.gitleaks.toml +0 -219
  9. data/.overcommit.yml +0 -16
  10. data/.project +0 -18
  11. data/.rubocop.yml +0 -3
  12. data/.rubocop_settings.yml +0 -86
  13. data/.rubocop_todo.yml +0 -709
  14. data/.yardopts +0 -1
  15. data/CHANGELOG.md +0 -448
  16. data/CONTRIBUTING.md +0 -138
  17. data/Dockerfile +0 -16
  18. data/Gemfile +0 -7
  19. data/Jenkinsfile +0 -137
  20. data/LICENSE +0 -202
  21. data/README.md +0 -162
  22. data/Rakefile +0 -47
  23. data/SECURITY.md +0 -42
  24. data/bin/parse-changelog.sh +0 -12
  25. data/ci/configure_v4.sh +0 -12
  26. data/ci/configure_v5.sh +0 -19
  27. data/ci/oauth/keycloak/create_client +0 -18
  28. data/ci/oauth/keycloak/create_user +0 -21
  29. data/ci/oauth/keycloak/fetch_certificate +0 -18
  30. data/ci/oauth/keycloak/keycloak_functions.sh +0 -71
  31. data/ci/oauth/keycloak/standalone.xml +0 -578
  32. data/ci/oauth/keycloak/wait_for_server +0 -56
  33. data/ci/submit-coverage +0 -36
  34. data/conjur-api.gemspec +0 -41
  35. data/dev/Dockerfile.dev +0 -12
  36. data/dev/docker-compose.yml +0 -56
  37. data/dev/start +0 -22
  38. data/dev/stop +0 -5
  39. data/docker-compose.yml +0 -98
  40. data/example/demo_v4.rb +0 -49
  41. data/example/demo_v5.rb +0 -57
  42. data/features/authenticators.feature +0 -41
  43. data/features/authn.feature +0 -14
  44. data/features/authn_local.feature +0 -32
  45. data/features/exists.feature +0 -37
  46. data/features/group.feature +0 -11
  47. data/features/host.feature +0 -50
  48. data/features/host_factory_create_host.feature +0 -28
  49. data/features/host_factory_token.feature +0 -63
  50. data/features/load_policy.feature +0 -61
  51. data/features/members.feature +0 -51
  52. data/features/new_api.feature +0 -36
  53. data/features/permitted.feature +0 -70
  54. data/features/permitted_roles.feature +0 -30
  55. data/features/public_keys.feature +0 -11
  56. data/features/resource_fields.feature +0 -53
  57. data/features/role_fields.feature +0 -15
  58. data/features/rotate_api_key.feature +0 -13
  59. data/features/step_definitions/api_steps.rb +0 -52
  60. data/features/step_definitions/policy_steps.rb +0 -134
  61. data/features/step_definitions/result_steps.rb +0 -11
  62. data/features/support/env.rb +0 -19
  63. data/features/support/hooks.rb +0 -3
  64. data/features/support/world.rb +0 -12
  65. data/features/update_password.feature +0 -14
  66. data/features/user.feature +0 -58
  67. data/features/variable_fields.feature +0 -20
  68. data/features/variable_value.feature +0 -60
  69. data/features_v4/authn_local.feature +0 -27
  70. data/features_v4/exists.feature +0 -29
  71. data/features_v4/host.feature +0 -18
  72. data/features_v4/host_factory_token.feature +0 -49
  73. data/features_v4/members.feature +0 -39
  74. data/features_v4/permitted.feature +0 -15
  75. data/features_v4/permitted_roles.feature +0 -8
  76. data/features_v4/resource_fields.feature +0 -47
  77. data/features_v4/rotate_api_key.feature +0 -13
  78. data/features_v4/step_definitions/api_steps.rb +0 -17
  79. data/features_v4/step_definitions/result_steps.rb +0 -3
  80. data/features_v4/support/env.rb +0 -23
  81. data/features_v4/support/policy.yml +0 -34
  82. data/features_v4/support/world.rb +0 -12
  83. data/features_v4/variable_fields.feature +0 -11
  84. data/features_v4/variable_value.feature +0 -54
  85. data/lib/conjur/acts_as_resource.rb +0 -123
  86. data/lib/conjur/acts_as_role.rb +0 -142
  87. data/lib/conjur/acts_as_rolsource.rb +0 -32
  88. data/lib/conjur/acts_as_user.rb +0 -68
  89. data/lib/conjur/api/authenticators.rb +0 -43
  90. data/lib/conjur/api/authn.rb +0 -144
  91. data/lib/conjur/api/host_factories.rb +0 -71
  92. data/lib/conjur/api/ldap_sync.rb +0 -38
  93. data/lib/conjur/api/policies.rb +0 -56
  94. data/lib/conjur/api/pubkeys.rb +0 -53
  95. data/lib/conjur/api/resources.rb +0 -109
  96. data/lib/conjur/api/roles.rb +0 -98
  97. data/lib/conjur/api/router/v4.rb +0 -206
  98. data/lib/conjur/api/router/v5.rb +0 -269
  99. data/lib/conjur/api/variables.rb +0 -59
  100. data/lib/conjur/api.rb +0 -105
  101. data/lib/conjur/base.rb +0 -355
  102. data/lib/conjur/base_object.rb +0 -57
  103. data/lib/conjur/build_object.rb +0 -47
  104. data/lib/conjur/cache.rb +0 -26
  105. data/lib/conjur/cert_utils.rb +0 -63
  106. data/lib/conjur/cidr.rb +0 -71
  107. data/lib/conjur/configuration.rb +0 -460
  108. data/lib/conjur/escape.rb +0 -129
  109. data/lib/conjur/exceptions.rb +0 -4
  110. data/lib/conjur/group.rb +0 -41
  111. data/lib/conjur/has_attributes.rb +0 -98
  112. data/lib/conjur/host.rb +0 -27
  113. data/lib/conjur/host_factory.rb +0 -75
  114. data/lib/conjur/host_factory_token.rb +0 -78
  115. data/lib/conjur/id.rb +0 -71
  116. data/lib/conjur/layer.rb +0 -9
  117. data/lib/conjur/log.rb +0 -72
  118. data/lib/conjur/log_source.rb +0 -60
  119. data/lib/conjur/policy.rb +0 -34
  120. data/lib/conjur/policy_load_result.rb +0 -61
  121. data/lib/conjur/query_string.rb +0 -12
  122. data/lib/conjur/resource.rb +0 -29
  123. data/lib/conjur/role.rb +0 -29
  124. data/lib/conjur/role_grant.rb +0 -85
  125. data/lib/conjur/routing.rb +0 -29
  126. data/lib/conjur/user.rb +0 -40
  127. data/lib/conjur/variable.rb +0 -208
  128. data/lib/conjur/webservice.rb +0 -30
  129. data/lib/conjur-api/version.rb +0 -24
  130. data/lib/conjur-api.rb +0 -2
  131. data/publish.sh +0 -5
  132. data/spec/api/host_factories_spec.rb +0 -34
  133. data/spec/api_spec.rb +0 -254
  134. data/spec/base_object_spec.rb +0 -13
  135. data/spec/cert_utils_spec.rb +0 -173
  136. data/spec/cidr_spec.rb +0 -34
  137. data/spec/configuration_spec.rb +0 -330
  138. data/spec/has_attributes_spec.rb +0 -63
  139. data/spec/helpers/errors_matcher.rb +0 -34
  140. data/spec/helpers/request_helpers.rb +0 -10
  141. data/spec/id_spec.rb +0 -29
  142. data/spec/ldap_sync_spec.rb +0 -21
  143. data/spec/log_source_spec.rb +0 -13
  144. data/spec/log_spec.rb +0 -42
  145. data/spec/roles_spec.rb +0 -24
  146. data/spec/spec_helper.rb +0 -113
  147. data/spec/ssl_spec.rb +0 -109
  148. data/spec/uri_escape_spec.rb +0 -21
  149. data/test.sh +0 -76
  150. data/tmp/.keep +0 -0
data/.rubocop_todo.yml DELETED
@@ -1,709 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2018-08-28 12:08:58 +0200 using RuboCop version 0.58.2.
4
- # The point is for the user to remove these configuration records
5
- # one by one as the offenses are removed from the code base.
6
- # Note that changes in the inspected code, or installation of new
7
- # versions of RuboCop, may require this file to be generated again.
8
-
9
- # Offense count: 6
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: Include, TreatCommentsAsGroupSeparators.
12
- # Include: **/*.gemspec
13
- Gemspec/OrderedDependencies:
14
- Exclude:
15
- - 'conjur-api.gemspec'
16
-
17
- # Offense count: 1
18
- # Configuration parameters: Include.
19
- # Include: **/*.gemspec
20
- Gemspec/RequiredRubyVersion:
21
- Exclude:
22
- - 'conjur-api.gemspec'
23
-
24
- # Offense count: 2
25
- # Cop supports --auto-correct.
26
- # Configuration parameters: EnforcedStyleAlignWith.
27
- # SupportedStylesAlignWith: either, start_of_block, start_of_line
28
- Layout/BlockAlignment:
29
- Exclude:
30
- - 'lib/conjur/variable.rb'
31
-
32
- # Offense count: 2
33
- # Cop supports --auto-correct.
34
- Layout/BlockEndNewline:
35
- Exclude:
36
- - 'spec/api_spec.rb'
37
-
38
- # Offense count: 1
39
- # Cop supports --auto-correct.
40
- Layout/ClosingHeredocIndentation:
41
- Exclude:
42
- - 'spec/configuration_spec.rb'
43
-
44
- # Offense count: 1
45
- # Cop supports --auto-correct.
46
- Layout/CommentIndentation:
47
- Exclude:
48
- - 'lib/conjur/api/host_factories.rb'
49
-
50
- # Offense count: 1
51
- # Cop supports --auto-correct.
52
- Layout/EmptyLineAfterMagicComment:
53
- Exclude:
54
- - 'conjur-api.gemspec'
55
-
56
- # Offense count: 9
57
- # Cop supports --auto-correct.
58
- # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
59
- Layout/EmptyLineBetweenDefs:
60
- Exclude:
61
- - 'lib/conjur/base_object.rb'
62
- - 'lib/conjur/escape.rb'
63
- - 'lib/conjur/id.rb'
64
- - 'spec/has_attributes_spec.rb'
65
-
66
- # Offense count: 6
67
- # Cop supports --auto-correct.
68
- Layout/EmptyLines:
69
- Exclude:
70
- - 'example/demo_v4.rb'
71
- - 'example/demo_v5.rb'
72
- - 'lib/conjur/escape.rb'
73
- - 'spec/configuration_spec.rb'
74
- - 'spec/spec_helper.rb'
75
-
76
- # Offense count: 4
77
- # Cop supports --auto-correct.
78
- # Configuration parameters: EnforcedStyle.
79
- # SupportedStyles: empty_lines, no_empty_lines
80
- Layout/EmptyLinesAroundBlockBody:
81
- Exclude:
82
- - 'spec/api_spec.rb'
83
- - 'spec/configuration_spec.rb'
84
-
85
- # Offense count: 2
86
- # Cop supports --auto-correct.
87
- # Configuration parameters: EnforcedStyle.
88
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
89
- Layout/EmptyLinesAroundClassBody:
90
- Exclude:
91
- - 'lib/conjur/has_attributes.rb'
92
- - 'lib/conjur/host_factory_token.rb'
93
-
94
- # Offense count: 10
95
- # Cop supports --auto-correct.
96
- # Configuration parameters: EnforcedStyle.
97
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
98
- Layout/EmptyLinesAroundModuleBody:
99
- Exclude:
100
- - 'lib/conjur/acts_as_role.rb'
101
- - 'lib/conjur/acts_as_rolsource.rb'
102
- - 'lib/conjur/api/pubkeys.rb'
103
- - 'lib/conjur/base.rb'
104
- - 'lib/conjur/escape.rb'
105
- - 'lib/conjur/group.rb'
106
- - 'lib/conjur/layer.rb'
107
- - 'lib/conjur/policy.rb'
108
- - 'lib/conjur/resource.rb'
109
- - 'lib/conjur/variable.rb'
110
-
111
- # Offense count: 12
112
- # Cop supports --auto-correct.
113
- # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
114
- Layout/ExtraSpacing:
115
- Exclude:
116
- - 'conjur-api.gemspec'
117
- - 'spec/ldap_sync_spec.rb'
118
-
119
- # Offense count: 2
120
- # Cop supports --auto-correct.
121
- # Configuration parameters: EnforcedStyle, IndentationWidth.
122
- # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
123
- Layout/IndentFirstArgument:
124
- Exclude:
125
- - 'spec/ssl_spec.rb'
126
-
127
- # Offense count: 1
128
- # Cop supports --auto-correct.
129
- # Configuration parameters: EnforcedStyle, IndentationWidth.
130
- # SupportedStyles: special_inside_parentheses, consistent, align_brackets
131
- Layout/IndentFirstArrayElement:
132
- Exclude:
133
- - 'spec/api_spec.rb'
134
-
135
- # Offense count: 1
136
- # Cop supports --auto-correct.
137
- # Configuration parameters: EnforcedStyle.
138
- # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
139
- Layout/IndentHeredoc:
140
- Exclude:
141
- - 'spec/configuration_spec.rb'
142
-
143
- # Offense count: 23
144
- # Cop supports --auto-correct.
145
- Layout/LeadingCommentSpace:
146
- Exclude:
147
- - 'Gemfile'
148
- - 'lib/conjur/api/authn.rb'
149
- - 'lib/conjur/api/host_factories.rb'
150
- - 'lib/conjur/api/policies.rb'
151
- - 'lib/conjur/api/pubkeys.rb'
152
- - 'lib/conjur/api/resources.rb'
153
- - 'lib/conjur/api/roles.rb'
154
- - 'lib/conjur/api/variables.rb'
155
- - 'lib/conjur/base.rb'
156
- - 'spec/spec_helper.rb'
157
-
158
- # Offense count: 2
159
- # Cop supports --auto-correct.
160
- Layout/MultilineBlockLayout:
161
- Exclude:
162
- - 'spec/api_spec.rb'
163
-
164
- # Offense count: 3
165
- # Cop supports --auto-correct.
166
- # Configuration parameters: EnforcedStyle, IndentationWidth.
167
- # SupportedStyles: aligned, indented, indented_relative_to_receiver
168
- Layout/MultilineMethodCallIndentation:
169
- Exclude:
170
- - 'spec/cert_utils_spec.rb'
171
-
172
- # Offense count: 6
173
- # Cop supports --auto-correct.
174
- Layout/SpaceAfterComma:
175
- Exclude:
176
- - 'conjur-api.gemspec'
177
- - 'lib/conjur/has_attributes.rb'
178
- - 'spec/spec_helper.rb'
179
-
180
- # Offense count: 5
181
- # Cop supports --auto-correct.
182
- # Configuration parameters: EnforcedStyle.
183
- # SupportedStyles: space, no_space
184
- Layout/SpaceAroundEqualsInParameterDefault:
185
- Exclude:
186
- - 'lib/conjur/base_object.rb'
187
- - 'lib/conjur/configuration.rb'
188
- - 'lib/conjur/has_attributes.rb'
189
- - 'lib/conjur/id.rb'
190
- - 'lib/conjur/variable.rb'
191
-
192
- # Offense count: 21
193
- # Cop supports --auto-correct.
194
- # Configuration parameters: AllowForAlignment.
195
- Layout/SpaceAroundOperators:
196
- Exclude:
197
- - 'conjur-api.gemspec'
198
- - 'lib/conjur/has_attributes.rb'
199
- - 'spec/api_spec.rb'
200
- - 'spec/spec_helper.rb'
201
-
202
- # Offense count: 29
203
- # Cop supports --auto-correct.
204
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
205
- # SupportedStyles: space, no_space
206
- # SupportedStylesForEmptyBraces: space, no_space
207
- Layout/SpaceBeforeBlockBraces:
208
- Exclude:
209
- - 'conjur-api.gemspec'
210
- - 'lib/conjur/acts_as_role.rb'
211
- - 'lib/conjur/configuration.rb'
212
- - 'lib/conjur/has_attributes.rb'
213
- - 'spec/api_spec.rb'
214
- - 'spec/configuration_spec.rb'
215
- - 'spec/id_spec.rb'
216
- - 'spec/spec_helper.rb'
217
-
218
- # Offense count: 24
219
- # Cop supports --auto-correct.
220
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
221
- # SupportedStyles: space, no_space
222
- # SupportedStylesForEmptyBraces: space, no_space
223
- Layout/SpaceInsideBlockBraces:
224
- Exclude:
225
- - 'lib/conjur/acts_as_role.rb'
226
- - 'lib/conjur/api/authn.rb'
227
- - 'lib/conjur/has_attributes.rb'
228
- - 'spec/api_spec.rb'
229
- - 'spec/configuration_spec.rb'
230
- - 'spec/spec_helper.rb'
231
-
232
- # Offense count: 6
233
- # Cop supports --auto-correct.
234
- # Configuration parameters: EnforcedStyle.
235
- # SupportedStyles: space, no_space
236
- Layout/SpaceInsideParens:
237
- Exclude:
238
- - 'lib/conjur/acts_as_resource.rb'
239
- - 'lib/conjur/acts_as_role.rb'
240
-
241
- # Offense count: 5
242
- # Cop supports --auto-correct.
243
- # Configuration parameters: EnforcedStyle.
244
- # SupportedStyles: final_newline, final_blank_line
245
- Layout/TrailingBlankLines:
246
- Exclude:
247
- - 'Rakefile'
248
- - 'lib/conjur/acts_as_rolsource.rb'
249
- - 'lib/conjur/exceptions.rb'
250
- - 'lib/conjur/log.rb'
251
- - 'lib/conjur/log_source.rb'
252
-
253
- # Offense count: 93
254
- # Cop supports --auto-correct.
255
- # Configuration parameters: AllowInHeredoc.
256
- Layout/TrailingWhitespace:
257
- Enabled: false
258
-
259
- # Offense count: 1
260
- Lint/AmbiguousOperator:
261
- Exclude:
262
- - 'lib/conjur/acts_as_role.rb'
263
-
264
- # Offense count: 1
265
- Lint/AmbiguousRegexpLiteral:
266
- Exclude:
267
- - 'lib/conjur/cert_utils.rb'
268
-
269
- # Offense count: 1
270
- # Configuration parameters: AllowSafeAssignment.
271
- Lint/AssignmentInCondition:
272
- Exclude:
273
- - 'lib/conjur/acts_as_role.rb'
274
-
275
- # Offense count: 10
276
- Lint/ImplicitStringConcatenation:
277
- Exclude:
278
- - 'spec/cert_utils_spec.rb'
279
- - 'spec/configuration_spec.rb'
280
- - 'spec/ssl_spec.rb'
281
-
282
- # Offense count: 8
283
- Lint/ParenthesesAsGroupedExpression:
284
- Exclude:
285
- - 'spec/api_spec.rb'
286
- - 'spec/configuration_spec.rb'
287
-
288
- # Offense count: 1
289
- # Cop supports --auto-correct.
290
- Lint/ScriptPermission:
291
- Exclude:
292
- - 'Rakefile'
293
-
294
- # Offense count: 2
295
- Lint/ShadowingOuterLocalVariable:
296
- Exclude:
297
- - 'lib/conjur/api/resources.rb'
298
- - 'lib/conjur/configuration.rb'
299
-
300
- # Offense count: 1
301
- # Cop supports --auto-correct.
302
- Lint/UnneededSplatExpansion:
303
- Exclude:
304
- - 'lib/conjur/api/resources.rb'
305
-
306
- # Offense count: 21
307
- # Cop supports --auto-correct.
308
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
309
- Lint/UnusedMethodArgument:
310
- Exclude:
311
- - 'lib/conjur/api.rb'
312
- - 'lib/conjur/api/router/v4.rb'
313
- - 'lib/conjur/api/router/v5.rb'
314
- - 'lib/conjur/base_object.rb'
315
- - 'lib/conjur/cache.rb'
316
- - 'lib/conjur/has_attributes.rb'
317
- - 'lib/conjur/host_factory_token.rb'
318
- - 'lib/conjur/id.rb'
319
- - 'lib/conjur/log_source.rb'
320
- - 'spec/has_attributes_spec.rb'
321
-
322
- # Offense count: 1
323
- Lint/UriEscapeUnescape:
324
- Exclude:
325
- - 'lib/conjur/escape.rb'
326
-
327
- # Offense count: 4
328
- Lint/UselessAssignment:
329
- Exclude:
330
- - 'features/step_definitions/policy_steps.rb'
331
- - 'lib/conjur/acts_as_role.rb'
332
- - 'spec/ssl_spec.rb'
333
-
334
- # Offense count: 5
335
- Metrics/AbcSize:
336
- Max: 41
337
-
338
- # Offense count: 1
339
- # Configuration parameters: CountComments, ExcludedMethods.
340
- # ExcludedMethods: refine
341
- Metrics/BlockLength:
342
- Max: 27
343
-
344
- # Offense count: 1
345
- # Configuration parameters: CountComments.
346
- Metrics/ClassLength:
347
- Max: 112
348
-
349
- # Offense count: 2
350
- Metrics/CyclomaticComplexity:
351
- Max: 13
352
-
353
- # Offense count: 9
354
- # Configuration parameters: CountComments.
355
- Metrics/MethodLength:
356
- Max: 34
357
-
358
- # Offense count: 2
359
- # Configuration parameters: CountComments.
360
- Metrics/ModuleLength:
361
- Max: 112
362
-
363
- # Offense count: 2
364
- Metrics/PerceivedComplexity:
365
- Max: 15
366
-
367
- # Offense count: 2
368
- # Configuration parameters: EnforcedStyleForLeadingUnderscores.
369
- # SupportedStylesForLeadingUnderscores: disallowed, required, optional
370
- Naming/MemoizedInstanceVariableName:
371
- Exclude:
372
- - 'lib/conjur/configuration.rb'
373
- - 'lib/conjur/has_attributes.rb'
374
-
375
- # Offense count: 1
376
- # Cop supports --auto-correct.
377
- Performance/StringReplacement:
378
- Exclude:
379
- - 'spec/cert_utils_spec.rb'
380
-
381
- # Offense count: 2
382
- Security/Eval:
383
- Exclude:
384
- - 'features/step_definitions/api_steps.rb'
385
- - 'features_v4/step_definitions/api_steps.rb'
386
-
387
- # Offense count: 1
388
- # Cop supports --auto-correct.
389
- # Configuration parameters: AutoCorrect.
390
- Security/JSONLoad:
391
- Exclude:
392
- - 'lib/conjur/base.rb'
393
-
394
- # Offense count: 1
395
- # Cop supports --auto-correct.
396
- # Configuration parameters: EnforcedStyle.
397
- # SupportedStyles: prefer_alias, prefer_alias_method
398
- Style/Alias:
399
- Exclude:
400
- - 'lib/conjur/api.rb'
401
-
402
- # Offense count: 12
403
- # Cop supports --auto-correct.
404
- # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
405
- # SupportedStyles: line_count_based, semantic, braces_for_chaining
406
- # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
407
- # FunctionalMethods: let, let!, subject, watch
408
- # IgnoredMethods: lambda, proc, it
409
- Style/BlockDelimiters:
410
- Exclude:
411
- - 'spec/api_spec.rb'
412
- - 'spec/configuration_spec.rb'
413
- - 'spec/has_attributes_spec.rb'
414
-
415
- # Offense count: 6
416
- # Cop supports --auto-correct.
417
- # Configuration parameters: EnforcedStyle.
418
- # SupportedStyles: braces, no_braces, context_dependent
419
- Style/BracesAroundHashParameters:
420
- Exclude:
421
- - 'spec/api_spec.rb'
422
- - 'spec/has_attributes_spec.rb'
423
-
424
- # Offense count: 3
425
- # Cop supports --auto-correct.
426
- # Configuration parameters: AutoCorrect, EnforcedStyle.
427
- # SupportedStyles: nested, compact
428
- Style/ClassAndModuleChildren:
429
- Exclude:
430
- - 'lib/conjur/api.rb'
431
- - 'lib/conjur/query_string.rb'
432
-
433
- # Offense count: 2
434
- # Cop supports --auto-correct.
435
- # Configuration parameters: EnforcedStyle.
436
- # SupportedStyles: is_a?, kind_of?
437
- Style/ClassCheck:
438
- Exclude:
439
- - 'lib/conjur/api/variables.rb'
440
- - 'lib/conjur/cidr.rb'
441
-
442
- # Offense count: 5
443
- Style/ClassVars:
444
- Exclude:
445
- - 'lib/conjur/cache.rb'
446
- - 'lib/conjur/log.rb'
447
-
448
- # Offense count: 3
449
- # Cop supports --auto-correct.
450
- Style/ColonMethodCall:
451
- Exclude:
452
- - 'spec/log_spec.rb'
453
-
454
- # Offense count: 1
455
- Style/DateTime:
456
- Exclude:
457
- - 'lib/conjur/host_factory_token.rb'
458
-
459
- # Offense count: 23
460
- Style/Documentation:
461
- Enabled: false
462
-
463
- # Offense count: 3
464
- # Cop supports --auto-correct.
465
- Style/EmptyLiteral:
466
- Exclude:
467
- - 'lib/conjur/configuration.rb'
468
- - 'spec/configuration_spec.rb'
469
- - 'spec/has_attributes_spec.rb'
470
-
471
- # Offense count: 1
472
- # Cop supports --auto-correct.
473
- Style/Encoding:
474
- Exclude:
475
- - 'conjur-api.gemspec'
476
-
477
- # Offense count: 1
478
- # Cop supports --auto-correct.
479
- Style/ExpandPathArguments:
480
- Exclude:
481
- - 'conjur-api.gemspec'
482
-
483
- # Offense count: 76
484
- # Cop supports --auto-correct.
485
- # Configuration parameters: EnforcedStyle.
486
- # SupportedStyles: when_needed, always, never
487
- Style/FrozenStringLiteralComment:
488
- Enabled: false
489
-
490
- # Offense count: 29
491
- # Configuration parameters: AllowedVariables.
492
- Style/GlobalVars:
493
- Exclude:
494
- - 'features/step_definitions/policy_steps.rb'
495
- - 'features/support/env.rb'
496
- - 'features/support/hooks.rb'
497
- - 'features_v4/step_definitions/api_steps.rb'
498
- - 'features_v4/support/env.rb'
499
-
500
- # Offense count: 4
501
- # Configuration parameters: MinBodyLength.
502
- Style/GuardClause:
503
- Exclude:
504
- - 'lib/conjur/api.rb'
505
- - 'lib/conjur/configuration.rb'
506
- - 'lib/conjur/log.rb'
507
- - 'lib/conjur/log_source.rb'
508
-
509
- # Offense count: 7
510
- # Cop supports --auto-correct.
511
- # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
512
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
513
- Style/HashSyntax:
514
- Exclude:
515
- - 'Rakefile'
516
- - 'spec/api_spec.rb'
517
- - 'spec/configuration_spec.rb'
518
- - 'spec/ldap_sync_spec.rb'
519
-
520
- # Offense count: 10
521
- # Cop supports --auto-correct.
522
- Style/IfUnlessModifier:
523
- Exclude:
524
- - 'features/step_definitions/api_steps.rb'
525
- - 'features_v4/step_definitions/api_steps.rb'
526
- - 'lib/conjur/api/authn.rb'
527
- - 'lib/conjur/cidr.rb'
528
- - 'lib/conjur/has_attributes.rb'
529
- - 'lib/conjur/routing.rb'
530
-
531
- # Offense count: 23
532
- # Cop supports --auto-correct.
533
- # Configuration parameters: EnforcedStyle.
534
- # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
535
- Style/MethodDefParentheses:
536
- Exclude:
537
- - 'lib/conjur/acts_as_resource.rb'
538
- - 'lib/conjur/acts_as_rolsource.rb'
539
- - 'lib/conjur/acts_as_user.rb'
540
- - 'lib/conjur/api.rb'
541
- - 'lib/conjur/api/router/v5.rb'
542
- - 'lib/conjur/configuration.rb'
543
- - 'lib/conjur/escape.rb'
544
- - 'lib/conjur/has_attributes.rb'
545
- - 'lib/conjur/host_factory_token.rb'
546
- - 'lib/conjur/log_source.rb'
547
- - 'lib/conjur/role_grant.rb'
548
-
549
- # Offense count: 2
550
- # Cop supports --auto-correct.
551
- # Configuration parameters: EnforcedStyle.
552
- # SupportedStyles: module_function, extend_self
553
- Style/ModuleFunction:
554
- Exclude:
555
- - 'lib/conjur/api/router/v4.rb'
556
- - 'lib/conjur/api/router/v5.rb'
557
-
558
- # Offense count: 1
559
- Style/MultilineBlockChain:
560
- Exclude:
561
- - 'spec/cert_utils_spec.rb'
562
-
563
- # Offense count: 9
564
- # Cop supports --auto-correct.
565
- Style/MutableConstant:
566
- Exclude:
567
- - 'lib/conjur-api/version.rb'
568
- - 'spec/spec_helper.rb'
569
-
570
- # Offense count: 2
571
- # Cop supports --auto-correct.
572
- # Configuration parameters: Whitelist.
573
- # Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
574
- Style/NestedParenthesizedCalls:
575
- Exclude:
576
- - 'spec/id_spec.rb'
577
-
578
- # Offense count: 2
579
- # Cop supports --auto-correct.
580
- # Configuration parameters: AutoCorrect, EnforcedStyle.
581
- # SupportedStyles: predicate, comparison
582
- Style/NumericPredicate:
583
- Exclude:
584
- - 'spec/**/*'
585
- - 'lib/conjur/cidr.rb'
586
-
587
- # Offense count: 3
588
- # Cop supports --auto-correct.
589
- # Configuration parameters: PreferredDelimiters.
590
- Style/PercentLiteralDelimiters:
591
- Exclude:
592
- - 'conjur-api.gemspec'
593
- - 'spec/api_spec.rb'
594
-
595
- # Offense count: 1
596
- # Cop supports --auto-correct.
597
- Style/PerlBackrefs:
598
- Exclude:
599
- - 'lib/conjur/api.rb'
600
-
601
- # Offense count: 1
602
- # Cop supports --auto-correct.
603
- # Configuration parameters: EnforcedStyle.
604
- # SupportedStyles: compact, exploded
605
- Style/RaiseArgs:
606
- Exclude:
607
- - 'lib/conjur/api.rb'
608
-
609
- # Offense count: 4
610
- # Cop supports --auto-correct.
611
- Style/RedundantBegin:
612
- Exclude:
613
- - 'lib/conjur/acts_as_resource.rb'
614
- - 'lib/conjur/acts_as_role.rb'
615
- - 'lib/conjur/cert_utils.rb'
616
- - 'lib/conjur/configuration.rb'
617
-
618
- # Offense count: 2
619
- # Cop supports --auto-correct.
620
- # Configuration parameters: AllowMultipleReturnValues.
621
- Style/RedundantReturn:
622
- Exclude:
623
- - 'lib/conjur/base.rb'
624
- - 'lib/conjur/cidr.rb'
625
-
626
- # Offense count: 10
627
- # Cop supports --auto-correct.
628
- Style/RedundantSelf:
629
- Exclude:
630
- - 'lib/conjur/base.rb'
631
- - 'lib/conjur/configuration.rb'
632
- - 'lib/conjur/host_factory.rb'
633
- - 'lib/conjur/host_factory_token.rb'
634
-
635
- # Offense count: 1
636
- # Cop supports --auto-correct.
637
- # Configuration parameters: AllowAsExpressionSeparator.
638
- Style/Semicolon:
639
- Exclude:
640
- - 'lib/conjur/api/authn.rb'
641
-
642
- # Offense count: 2
643
- # Cop supports --auto-correct.
644
- # Configuration parameters: EnforcedStyle.
645
- # SupportedStyles: only_raise, only_fail, semantic
646
- Style/SignalException:
647
- Exclude:
648
- - 'lib/conjur/api/resources.rb'
649
- - 'lib/conjur/cidr.rb'
650
-
651
- # Offense count: 13
652
- # Cop supports --auto-correct.
653
- # Configuration parameters: AllowIfMethodIsEmpty.
654
- Style/SingleLineMethods:
655
- Exclude:
656
- - 'lib/conjur/base_object.rb'
657
- - 'lib/conjur/cache.rb'
658
- - 'lib/conjur/has_attributes.rb'
659
- - 'lib/conjur/id.rb'
660
- - 'spec/has_attributes_spec.rb'
661
-
662
- # Offense count: 3
663
- # Cop supports --auto-correct.
664
- # Configuration parameters: .
665
- # SupportedStyles: use_perl_names, use_english_names
666
- Style/SpecialGlobalVars:
667
- EnforcedStyle: use_perl_names
668
-
669
- # Offense count: 3
670
- # Cop supports --auto-correct.
671
- # Configuration parameters: MinSize.
672
- # SupportedStyles: percent, brackets
673
- Style/SymbolArray:
674
- EnforcedStyle: brackets
675
-
676
- # Offense count: 1
677
- # Cop supports --auto-correct.
678
- # Configuration parameters: EnforcedStyleForMultiline.
679
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
680
- Style/TrailingCommaInArrayLiteral:
681
- Exclude:
682
- - 'spec/roles_spec.rb'
683
-
684
- # Offense count: 1
685
- # Cop supports --auto-correct.
686
- # Configuration parameters: EnforcedStyleForMultiline.
687
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
688
- Style/TrailingCommaInHashLiteral:
689
- Exclude:
690
- - 'spec/cidr_spec.rb'
691
-
692
- # Offense count: 2
693
- # Cop supports --auto-correct.
694
- Style/UnneededPercentQ:
695
- Exclude:
696
- - 'conjur-api.gemspec'
697
-
698
- # Offense count: 2
699
- # Cop supports --auto-correct.
700
- Style/UnpackFirst:
701
- Exclude:
702
- - 'features/support/world.rb'
703
- - 'features_v4/support/world.rb'
704
-
705
- # Offense count: 537
706
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
707
- # URISchemes: http, https
708
- Metrics/LineLength:
709
- Max: 1247
data/.yardopts DELETED
@@ -1 +0,0 @@
1
- --hide-void-return --markup markdown --no-private --hide-api private lib/**/*.rb