conjur-api 5.3.0 → 5.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a3a19d6390e7e021ec28db797635aacc7ebbaf3e23a9142cf0fe6a028fefd1bc
4
- data.tar.gz: 62f3ea9b7e62e32e69eff388c1d46b7678a5ba715a813a473a82c0d7d1c5fe29
3
+ metadata.gz: c69b83e45b2a9d77d8ca416e581048574d19e42d540e01883ebadb0b3e70db7d
4
+ data.tar.gz: 735da4d3e1d375143b32bc6defa28d3247c90f66809170ba38ff2ae4d8da71a5
5
5
  SHA512:
6
- metadata.gz: e2343a406b582f16d10eab5f876774fb8dce4376d9c0908599a8ed38f863ac2e36091285cb43f47d361d10cca0362a0e6f22b1ced655521054143fd25d5d82ba
7
- data.tar.gz: 5d32c7db4693c2d33460e9932e9521d94751d95d94bb19a494b0b0f5198f674eeefaf5e169eb026f5f2a00388aa449fb19437fe2ae0add72937c7dfa1d0a5e90
6
+ metadata.gz: fbfb72a8fff290174df1e4b43e3119e52f4e45dec82855d16ba246a56f029c9c11ebb2e54d7dbd938dad0a9c2c00021bcc8bfb3207ed758e2476a22a065a5a8f
7
+ data.tar.gz: f113611c6bbb6e9ba8dea768794e7cc02d3907873bf816685bbd3380c0184cbb76eb51268d0ca90d326cd1a6977a6eea6ac258578f48167d8490c4b55ce4e6db
@@ -0,0 +1,8 @@
1
+ plugins:
2
+ rubocop:
3
+ enabled: true
4
+ channel: rubocop-0-58
5
+ reek:
6
+ enabled: true
7
+ brakeman:
8
+ enabled: true
@@ -0,0 +1,16 @@
1
+ PreCommit:
2
+ ALL:
3
+ problem_on_unmodified_line: warn
4
+
5
+ RuboCop:
6
+ enabled: true
7
+ flags: [
8
+ '--format=emacs', '--force-exclusion', '--display-cop-names',
9
+ '-c', '.rubocop_settings.yml']
10
+
11
+ Reek:
12
+ enabled: true
13
+ flags: [
14
+ '--single-line', '--no-color',
15
+ '-c', '/dev/null']
16
+
@@ -0,0 +1,3 @@
1
+ inherit_from:
2
+ - .rubocop_settings.yml
3
+ - .rubocop_todo.yml
@@ -0,0 +1,85 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.5
3
+
4
+ # These non-default settings best reflect our current code style.
5
+ Style/MethodDefParentheses:
6
+ EnforcedStyle: require_no_parentheses_except_multiline
7
+ Style/PercentLiteralDelimiters:
8
+ PreferredDelimiters:
9
+ "%i": ()
10
+ "%w": ()
11
+ Style/RescueStandardError:
12
+ EnforcedStyle: implicit
13
+ Style/AndOr:
14
+ EnforcedStyle: conditionals
15
+ Layout/IndentHeredoc:
16
+ EnforcedStyle: squiggly
17
+ Layout/MultilineMethodCallBraceLayout:
18
+ EnforcedStyle: symmetrical
19
+ Layout/SpaceAroundBlockParameters:
20
+ EnforcedStyleInsidePipes: no_space
21
+ Layout/SpaceAroundEqualsInParameterDefault:
22
+ EnforcedStyle: space
23
+ Layout/SpaceBeforeBlockBraces:
24
+ EnforcedStyle: space
25
+ EnforcedStyleForEmptyBraces: space
26
+ Layout/SpaceInsideBlockBraces:
27
+ EnforcedStyle: space
28
+ EnforcedStyleForEmptyBraces: no_space
29
+ SpaceBeforeBlockParameters: true
30
+ Layout/SpaceInsideHashLiteralBraces:
31
+ EnforcedStyle: space
32
+ EnforcedStyleForEmptyBraces: no_space
33
+ Layout/SpaceInsideParens:
34
+ EnforcedStyle: no_space
35
+ Layout/SpaceInsideReferenceBrackets:
36
+ EnforcedStyle: no_space
37
+ EnforcedStyleForEmptyBrackets: no_space
38
+ Layout/TrailingBlankLines:
39
+ EnforcedStyle: final_newline
40
+ Style/BarePercentLiterals:
41
+ EnforcedStyle: percent_q
42
+
43
+ # Either style of these arguably has its place depending on the context.
44
+ Style/FormatStringToken:
45
+ Enabled: false
46
+ Style/LambdaCall:
47
+ Enabled: false
48
+ Style/StringLiterals:
49
+ Enabled: false
50
+ Layout/SpaceInsideArrayLiteralBrackets:
51
+ Enabled: false
52
+ # However, these score at comparatively fewer offences, so I'll
53
+ # leave it here in case we want to enforce a style after all.
54
+ EnforcedStyle: no_space
55
+ EnforcedStyleForEmptyBrackets: no_space
56
+
57
+ # The default configuration of these makes it hard to use proportional fonts.
58
+ Layout/MultilineMethodCallIndentation:
59
+ EnforcedStyle: indented
60
+ Layout/AlignParameters:
61
+ EnforcedStyle: with_fixed_indentation
62
+ Layout/EndAlignment:
63
+ EnforcedStyleAlignWith: start_of_line
64
+ Layout/ExtraSpacing:
65
+ AllowForAlignment: false
66
+ Layout/FirstParameterIndentation:
67
+ EnforcedStyle: consistent
68
+ Layout/IndentHash:
69
+ EnforcedStyle: consistent
70
+ Layout/MultilineMethodCallIndentation:
71
+ EnforcedStyle: indented
72
+ Layout/MultilineOperationIndentation:
73
+ EnforcedStyle: indented
74
+ Layout/SpaceAroundOperators:
75
+ AllowForAlignment: false
76
+ Layout/SpaceBeforeFirstArg:
77
+ AllowForAlignment: false
78
+
79
+ Metrics/BlockLength:
80
+ CountComments: false
81
+ Max: 25
82
+ Exclude:
83
+ - 'Rakefile'
84
+ - '**/*.rake'
85
+ - 'spec/**/*.rb'
@@ -0,0 +1,709 @@
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/FirstParameterIndentation:
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/IndentArray:
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