net-ldap 0.16.3 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/History.rdoc +36 -0
  3. data/README.rdoc +9 -2
  4. data/lib/net/ldap.rb +25 -2
  5. data/lib/net/ldap/connection.rb +1 -1
  6. data/lib/net/ldap/dataset.rb +2 -2
  7. data/lib/net/ldap/entry.rb +13 -2
  8. data/lib/net/ldap/error.rb +1 -26
  9. data/lib/net/ldap/password.rb +4 -0
  10. data/lib/net/ldap/version.rb +1 -1
  11. metadata +12 -88
  12. data/.gitignore +0 -10
  13. data/.rubocop.yml +0 -20
  14. data/.rubocop_todo.yml +0 -723
  15. data/.travis.yml +0 -57
  16. data/CONTRIBUTING.md +0 -54
  17. data/Gemfile +0 -2
  18. data/Rakefile +0 -23
  19. data/net-ldap.gemspec +0 -37
  20. data/script/changelog +0 -47
  21. data/script/ldap-docker +0 -12
  22. data/script/package +0 -7
  23. data/script/release +0 -16
  24. data/test/ber/core_ext/test_array.rb +0 -22
  25. data/test/ber/core_ext/test_string.rb +0 -25
  26. data/test/ber/test_ber.rb +0 -153
  27. data/test/fixtures/ca/docker-ca.pem +0 -18
  28. data/test/fixtures/ldif/06-retcode.ldif +0 -75
  29. data/test/fixtures/ldif/50-seed.ldif +0 -374
  30. data/test/integration/test_add.rb +0 -26
  31. data/test/integration/test_ber.rb +0 -30
  32. data/test/integration/test_bind.rb +0 -221
  33. data/test/integration/test_delete.rb +0 -29
  34. data/test/integration/test_open.rb +0 -87
  35. data/test/integration/test_password_modify.rb +0 -93
  36. data/test/integration/test_return_codes.rb +0 -46
  37. data/test/integration/test_search.rb +0 -77
  38. data/test/support/vm/openldap/.gitignore +0 -1
  39. data/test/test_auth_adapter.rb +0 -15
  40. data/test/test_dn.rb +0 -43
  41. data/test/test_entry.rb +0 -66
  42. data/test/test_filter.rb +0 -223
  43. data/test/test_filter_parser.rb +0 -29
  44. data/test/test_helper.rb +0 -73
  45. data/test/test_ldap.rb +0 -114
  46. data/test/test_ldap_connection.rb +0 -505
  47. data/test/test_ldif.rb +0 -104
  48. data/test/test_password.rb +0 -10
  49. data/test/test_rename.rb +0 -77
  50. data/test/test_search.rb +0 -39
  51. data/test/test_snmp.rb +0 -118
  52. data/test/test_ssl_ber.rb +0 -44
  53. data/test/testdata.ldif +0 -101
  54. data/testserver/ldapserver.rb +0 -200
  55. data/testserver/testdata.ldif +0 -101
@@ -1,723 +0,0 @@
1
- # This configuration was generated by
2
- # `rubocop --auto-gen-config`
3
- # on 2020-07-12 00:41:11 -0400 using RuboCop version 0.49.1.
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: 4
10
- # Cop supports --auto-correct.
11
- Layout/AlignArray:
12
- Exclude:
13
- - 'lib/net/ldap.rb'
14
- - 'lib/net/ldap/auth_adapter/sasl.rb'
15
- - 'lib/net/ldap/connection.rb'
16
-
17
- # Offense count: 4
18
- # Cop supports --auto-correct.
19
- # Configuration parameters: EnforcedStyle, SupportedStyles, IndentOneStep, IndentationWidth.
20
- # SupportedStyles: case, end
21
- Layout/CaseIndentation:
22
- Exclude:
23
- - 'lib/net/ldap/filter.rb'
24
-
25
- # Offense count: 1
26
- # Cop supports --auto-correct.
27
- Layout/EmptyLineAfterMagicComment:
28
- Exclude:
29
- - 'net-ldap.gemspec'
30
-
31
- # Offense count: 5
32
- # Cop supports --auto-correct.
33
- # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
34
- Layout/EmptyLineBetweenDefs:
35
- Exclude:
36
- - 'lib/net/ldap.rb'
37
- - 'lib/net/ldap/dataset.rb'
38
- - 'lib/net/snmp.rb'
39
-
40
- # Offense count: 1
41
- # Cop supports --auto-correct.
42
- Layout/EmptyLines:
43
- Exclude:
44
- - 'lib/net/snmp.rb'
45
-
46
- # Offense count: 1
47
- # Cop supports --auto-correct.
48
- # Configuration parameters: EnforcedStyle, SupportedStyles.
49
- # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
50
- Layout/EmptyLinesAroundClassBody:
51
- Exclude:
52
- - 'lib/net/ldap.rb'
53
-
54
- # Offense count: 1
55
- # Cop supports --auto-correct.
56
- Layout/EmptyLinesAroundExceptionHandlingKeywords:
57
- Exclude:
58
- - 'lib/net/ldap/connection.rb'
59
-
60
- # Offense count: 2
61
- # Cop supports --auto-correct.
62
- # Configuration parameters: SupportedStyles, IndentationWidth.
63
- # SupportedStyles: special_inside_parentheses, consistent, align_brackets
64
- Layout/IndentArray:
65
- EnforcedStyle: consistent
66
-
67
- # Offense count: 2
68
- # Cop supports --auto-correct.
69
- # Configuration parameters: SupportedStyles, IndentationWidth.
70
- # SupportedStyles: special_inside_parentheses, consistent, align_braces
71
- Layout/IndentHash:
72
- EnforcedStyle: consistent
73
-
74
- # Offense count: 6
75
- # Cop supports --auto-correct.
76
- # Configuration parameters: Width, IgnoredPatterns.
77
- Layout/IndentationWidth:
78
- Exclude:
79
- - 'lib/net/ber.rb'
80
- - 'lib/net/ldap/password.rb'
81
- - 'lib/net/snmp.rb'
82
-
83
- # Offense count: 3
84
- # Cop supports --auto-correct.
85
- Layout/LeadingCommentSpace:
86
- Exclude:
87
- - 'lib/net/ber/core_ext/array.rb'
88
- - 'lib/net/ldap.rb'
89
- - 'lib/net/ldap/connection.rb'
90
-
91
- # Offense count: 1
92
- # Cop supports --auto-correct.
93
- # Configuration parameters: EnforcedStyle, SupportedStyles.
94
- # SupportedStyles: symmetrical, new_line, same_line
95
- Layout/MultilineMethodCallBraceLayout:
96
- Exclude:
97
- - 'lib/net/ldap/filter.rb'
98
-
99
- # Offense count: 5
100
- # Cop supports --auto-correct.
101
- # Configuration parameters: EnforcedStyle, SupportedStyles.
102
- # SupportedStyles: space, no_space
103
- Layout/SpaceAroundEqualsInParameterDefault:
104
- Exclude:
105
- - 'lib/net/ldap/connection.rb'
106
- - 'lib/net/snmp.rb'
107
-
108
- # Offense count: 4
109
- # Cop supports --auto-correct.
110
- Layout/SpaceAroundKeyword:
111
- Exclude:
112
- - 'lib/net/ldap/entry.rb'
113
- - 'lib/net/snmp.rb'
114
-
115
- # Offense count: 7
116
- # Cop supports --auto-correct.
117
- # Configuration parameters: AllowForAlignment.
118
- Layout/SpaceAroundOperators:
119
- Exclude:
120
- - 'lib/net/ber/ber_parser.rb'
121
- - 'lib/net/ldap/connection.rb'
122
- - 'lib/net/ldap/entry.rb'
123
- - 'lib/net/ldap/filter.rb'
124
-
125
- # Offense count: 1
126
- # Cop supports --auto-correct.
127
- # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SupportedStylesForEmptyBraces, SpaceBeforeBlockParameters.
128
- # SupportedStyles: space, no_space
129
- # SupportedStylesForEmptyBraces: space, no_space
130
- Layout/SpaceInsideBlockBraces:
131
- Exclude:
132
- - 'lib/net/ldap/dataset.rb'
133
-
134
- # Offense count: 8
135
- # Cop supports --auto-correct.
136
- Layout/SpaceInsideParens:
137
- Exclude:
138
- - 'lib/net/ldap/entry.rb'
139
- - 'lib/net/snmp.rb'
140
-
141
- # Offense count: 1
142
- Lint/AmbiguousBlockAssociation:
143
- Exclude:
144
- - 'testserver/ldapserver.rb'
145
-
146
- # Offense count: 1
147
- Lint/EmptyWhen:
148
- Exclude:
149
- - 'lib/net/ldap/pdu.rb'
150
-
151
- # Offense count: 1
152
- # Cop supports --auto-correct.
153
- # Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
154
- # SupportedStylesAlignWith: keyword, variable, start_of_line
155
- Lint/EndAlignment:
156
- Exclude:
157
- - 'testserver/ldapserver.rb'
158
-
159
- # Offense count: 30
160
- Lint/ImplicitStringConcatenation:
161
- Exclude:
162
- - 'test/test_filter.rb'
163
-
164
- # Offense count: 1
165
- Lint/NonLocalExitFromIterator:
166
- Exclude:
167
- - 'lib/net/ldap/connection.rb'
168
-
169
- # Offense count: 1
170
- Lint/RescueException:
171
- Exclude:
172
- - 'lib/net/ldap/pdu.rb'
173
-
174
- # Offense count: 9
175
- # Cop supports --auto-correct.
176
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
177
- Lint/UnusedBlockArgument:
178
- Exclude:
179
- - 'lib/net/ldap.rb'
180
- - 'lib/net/snmp.rb'
181
-
182
- # Offense count: 7
183
- # Cop supports --auto-correct.
184
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
185
- Lint/UnusedMethodArgument:
186
- Exclude:
187
- - 'lib/net/ldap/entry.rb'
188
- - 'lib/net/ldap/pdu.rb'
189
- - 'test/test_ldap.rb'
190
- - 'test/test_ldap_connection.rb'
191
- - 'test/test_search.rb'
192
-
193
- # Offense count: 1
194
- # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
195
- Lint/UselessAccessModifier:
196
- Exclude:
197
- - 'lib/net/ldap/connection.rb'
198
-
199
- # Offense count: 6
200
- Lint/UselessAssignment:
201
- Exclude:
202
- - 'test/integration/test_add.rb'
203
- - 'test/test_ldap_connection.rb'
204
- - 'test/test_search.rb'
205
- - 'test/test_snmp.rb'
206
-
207
- # Offense count: 48
208
- Metrics/AbcSize:
209
- Max: 116
210
-
211
- # Offense count: 4
212
- # Configuration parameters: CountComments, ExcludedMethods.
213
- Metrics/BlockLength:
214
- Max: 119
215
-
216
- # Offense count: 11
217
- # Configuration parameters: CountBlocks.
218
- Metrics/BlockNesting:
219
- Max: 4
220
-
221
- # Offense count: 11
222
- # Configuration parameters: CountComments.
223
- Metrics/ClassLength:
224
- Max: 429
225
-
226
- # Offense count: 23
227
- Metrics/CyclomaticComplexity:
228
- Max: 41
229
-
230
- # Offense count: 216
231
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
232
- # URISchemes: http, https
233
- Metrics/LineLength:
234
- Max: 360
235
-
236
- # Offense count: 74
237
- # Configuration parameters: CountComments.
238
- Metrics/MethodLength:
239
- Max: 128
240
-
241
- # Offense count: 1
242
- # Configuration parameters: CountComments.
243
- Metrics/ModuleLength:
244
- Max: 103
245
-
246
- # Offense count: 15
247
- Metrics/PerceivedComplexity:
248
- Max: 38
249
-
250
- # Offense count: 1
251
- Style/AccessorMethodName:
252
- Exclude:
253
- - 'lib/net/ldap.rb'
254
-
255
- # Offense count: 10
256
- # Cop supports --auto-correct.
257
- # Configuration parameters: EnforcedStyle, SupportedStyles.
258
- # SupportedStyles: prefer_alias, prefer_alias_method
259
- Style/Alias:
260
- Exclude:
261
- - 'lib/net/ber/core_ext/array.rb'
262
- - 'lib/net/ldap.rb'
263
- - 'lib/net/ldap/entry.rb'
264
- - 'lib/net/ldap/filter.rb'
265
- - 'lib/net/ldap/pdu.rb'
266
-
267
- # Offense count: 33
268
- # Cop supports --auto-correct.
269
- # Configuration parameters: EnforcedStyle, SupportedStyles.
270
- # SupportedStyles: always, conditionals
271
- Style/AndOr:
272
- Exclude:
273
- - 'lib/net/ber/ber_parser.rb'
274
- - 'lib/net/ldap.rb'
275
- - 'lib/net/ldap/connection.rb'
276
- - 'lib/net/ldap/dataset.rb'
277
- - 'lib/net/ldap/filter.rb'
278
- - 'lib/net/ldap/pdu.rb'
279
-
280
- # Offense count: 1
281
- # Cop supports --auto-correct.
282
- # Configuration parameters: EnforcedStyle, SupportedStyles.
283
- # SupportedStyles: percent_q, bare_percent
284
- Style/BarePercentLiterals:
285
- Exclude:
286
- - 'test/test_entry.rb'
287
-
288
- # Offense count: 1
289
- # Cop supports --auto-correct.
290
- Style/BlockComments:
291
- Exclude:
292
- - 'test/test_rename.rb'
293
-
294
- # Offense count: 2
295
- # Cop supports --auto-correct.
296
- # Configuration parameters: EnforcedStyle, SupportedStyles.
297
- # SupportedStyles: braces, no_braces, context_dependent
298
- Style/BracesAroundHashParameters:
299
- Exclude:
300
- - 'lib/net/ldap/auth_adapter/gss_spnego.rb'
301
- - 'lib/net/snmp.rb'
302
-
303
- # Offense count: 4
304
- # Cop supports --auto-correct.
305
- Style/CharacterLiteral:
306
- Exclude:
307
- - 'lib/net/ldap/dataset.rb'
308
- - 'lib/net/ldap/entry.rb'
309
-
310
- # Offense count: 1
311
- Style/ClassAndModuleCamelCase:
312
- Exclude:
313
- - 'lib/net/ldap/auth_adapter/gss_spnego.rb'
314
-
315
- # Offense count: 23
316
- # Configuration parameters: EnforcedStyle, SupportedStyles.
317
- # SupportedStyles: nested, compact
318
- Style/ClassAndModuleChildren:
319
- Enabled: false
320
-
321
- # Offense count: 2
322
- # Cop supports --auto-correct.
323
- # Configuration parameters: EnforcedStyle, SupportedStyles.
324
- # SupportedStyles: is_a?, kind_of?
325
- Style/ClassCheck:
326
- Exclude:
327
- - 'lib/net/ber/core_ext/array.rb'
328
- - 'lib/net/ldap/error.rb'
329
-
330
- # Offense count: 1
331
- # Cop supports --auto-correct.
332
- # Configuration parameters: Keywords.
333
- # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
334
- Style/CommentAnnotation:
335
- Exclude:
336
- - 'lib/net/ber.rb'
337
-
338
- # Offense count: 1
339
- # Cop supports --auto-correct.
340
- # Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
341
- # SupportedStyles: assign_to_condition, assign_inside_condition
342
- Style/ConditionalAssignment:
343
- Exclude:
344
- - 'lib/net/ldap/dn.rb'
345
-
346
- # Offense count: 87
347
- Style/ConstantName:
348
- Exclude:
349
- - 'lib/net/ldap.rb'
350
- - 'lib/net/ldap/connection.rb'
351
- - 'lib/net/ldap/filter.rb'
352
- - 'lib/net/ldap/pdu.rb'
353
- - 'lib/net/snmp.rb'
354
- - 'test/test_ldif.rb'
355
- - 'testserver/ldapserver.rb'
356
-
357
- # Offense count: 17
358
- Style/Documentation:
359
- Exclude:
360
- - 'spec/**/*'
361
- - 'test/**/*'
362
- - 'lib/net/ber/core_ext.rb'
363
- - 'lib/net/ldap.rb'
364
- - 'lib/net/ldap/auth_adapter.rb'
365
- - 'lib/net/ldap/auth_adapter/sasl.rb'
366
- - 'lib/net/ldap/auth_adapter/simple.rb'
367
- - 'lib/net/ldap/connection.rb'
368
- - 'lib/net/ldap/error.rb'
369
- - 'lib/net/ldap/instrumentation.rb'
370
- - 'lib/net/ldap/password.rb'
371
- - 'lib/net/ldap/pdu.rb'
372
- - 'lib/net/snmp.rb'
373
- - 'testserver/ldapserver.rb'
374
-
375
- # Offense count: 1
376
- # Cop supports --auto-correct.
377
- # Configuration parameters: EnforcedStyle, SupportedStyles.
378
- # SupportedStyles: compact, expanded
379
- Style/EmptyMethod:
380
- Exclude:
381
- - 'test/test_auth_adapter.rb'
382
-
383
- # Offense count: 3
384
- # Cop supports --auto-correct.
385
- Style/EvenOdd:
386
- Exclude:
387
- - 'lib/net/ldap/dn.rb'
388
-
389
- # Offense count: 1
390
- # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
391
- # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
392
- Style/FileName:
393
- Exclude:
394
- - 'lib/net-ldap.rb'
395
-
396
- # Offense count: 9
397
- # Configuration parameters: AllowedVariables.
398
- Style/GlobalVars:
399
- Exclude:
400
- - 'testserver/ldapserver.rb'
401
-
402
- # Offense count: 2
403
- # Configuration parameters: MinBodyLength.
404
- Style/GuardClause:
405
- Exclude:
406
- - 'lib/net/ldap/filter.rb'
407
-
408
- # Offense count: 159
409
- # Cop supports --auto-correct.
410
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
411
- # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
412
- Style/HashSyntax:
413
- Exclude:
414
- - 'lib/net/ber.rb'
415
- - 'lib/net/ber/ber_parser.rb'
416
- - 'lib/net/ldap.rb'
417
- - 'lib/net/ldap/auth_adapter/gss_spnego.rb'
418
- - 'lib/net/ldap/connection.rb'
419
- - 'lib/net/ldap/pdu.rb'
420
- - 'lib/net/snmp.rb'
421
- - 'test/test_auth_adapter.rb'
422
- - 'test/test_ldap.rb'
423
- - 'test/test_ldap_connection.rb'
424
- - 'test/test_search.rb'
425
- - 'test/test_ssl_ber.rb'
426
- - 'testserver/ldapserver.rb'
427
-
428
- # Offense count: 1
429
- Style/IfInsideElse:
430
- Exclude:
431
- - 'lib/net/ldap/instrumentation.rb'
432
-
433
- # Offense count: 6
434
- # Cop supports --auto-correct.
435
- # Configuration parameters: MaxLineLength.
436
- Style/IfUnlessModifier:
437
- Exclude:
438
- - 'lib/net/ber.rb'
439
- - 'lib/net/ber/core_ext/integer.rb'
440
- - 'lib/net/ldap.rb'
441
- - 'lib/net/ldap/filter.rb'
442
- - 'lib/net/snmp.rb'
443
-
444
- # Offense count: 21
445
- # Cop supports --auto-correct.
446
- # Configuration parameters: EnforcedStyle, SupportedStyles.
447
- # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
448
- Style/MethodDefParentheses:
449
- Exclude:
450
- - 'lib/net/ber.rb'
451
- - 'lib/net/ldap/pdu.rb'
452
- - 'lib/net/snmp.rb'
453
- - 'testserver/ldapserver.rb'
454
-
455
- # Offense count: 2
456
- Style/MethodMissing:
457
- Exclude:
458
- - 'lib/net/ldap/dn.rb'
459
- - 'lib/net/ldap/entry.rb'
460
-
461
- # Offense count: 2
462
- # Cop supports --auto-correct.
463
- Style/MultilineIfModifier:
464
- Exclude:
465
- - 'lib/net/ldap/connection.rb'
466
-
467
- # Offense count: 25
468
- # Cop supports --auto-correct.
469
- Style/MutableConstant:
470
- Exclude:
471
- - 'lib/net/ber.rb'
472
- - 'lib/net/ldap.rb'
473
- - 'lib/net/ldap/connection.rb'
474
- - 'lib/net/ldap/dn.rb'
475
- - 'lib/net/ldap/filter.rb'
476
- - 'lib/net/ldap/version.rb'
477
- - 'lib/net/snmp.rb'
478
- - 'test/test_ldif.rb'
479
- - 'testserver/ldapserver.rb'
480
-
481
- # Offense count: 1
482
- # Cop supports --auto-correct.
483
- # Configuration parameters: EnforcedStyle, SupportedStyles.
484
- # SupportedStyles: both, prefix, postfix
485
- Style/NegatedIf:
486
- Exclude:
487
- - 'test/test_helper.rb'
488
-
489
- # Offense count: 1
490
- # Cop supports --auto-correct.
491
- Style/NegatedWhile:
492
- Exclude:
493
- - 'lib/net/ldap/filter.rb'
494
-
495
- # Offense count: 3
496
- # Cop supports --auto-correct.
497
- # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
498
- # SupportedStyles: skip_modifier_ifs, always
499
- Style/Next:
500
- Exclude:
501
- - 'lib/net/ldap/connection.rb'
502
- - 'testserver/ldapserver.rb'
503
-
504
- # Offense count: 1
505
- # Cop supports --auto-correct.
506
- Style/NilComparison:
507
- Exclude:
508
- - 'lib/net/ldap/connection.rb'
509
-
510
- # Offense count: 1
511
- # Cop supports --auto-correct.
512
- # Configuration parameters: IncludeSemanticChanges.
513
- Style/NonNilCheck:
514
- Exclude:
515
- - 'lib/net/ber/ber_parser.rb'
516
-
517
- # Offense count: 1
518
- # Cop supports --auto-correct.
519
- Style/Not:
520
- Exclude:
521
- - 'lib/net/ldap/filter.rb'
522
-
523
- # Offense count: 11
524
- # Cop supports --auto-correct.
525
- # Configuration parameters: Strict.
526
- Style/NumericLiterals:
527
- MinDigits: 8
528
-
529
- # Offense count: 3
530
- # Cop supports --auto-correct.
531
- # Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
532
- # SupportedStyles: predicate, comparison
533
- Style/NumericPredicate:
534
- Exclude:
535
- - 'spec/**/*'
536
- - 'lib/net/ber/core_ext/integer.rb'
537
- - 'lib/net/ldap/dn.rb'
538
- - 'testserver/ldapserver.rb'
539
-
540
- # Offense count: 3
541
- Style/OpMethod:
542
- Exclude:
543
- - 'lib/net/ldap/filter.rb'
544
-
545
- # Offense count: 6
546
- # Cop supports --auto-correct.
547
- # Configuration parameters: AllowSafeAssignment.
548
- Style/ParenthesesAroundCondition:
549
- Exclude:
550
- - 'lib/net/ldap.rb'
551
- - 'lib/net/ldap/auth_adapter/gss_spnego.rb'
552
- - 'lib/net/ldap/auth_adapter/sasl.rb'
553
- - 'lib/net/ldap/auth_adapter/simple.rb'
554
-
555
- # Offense count: 11
556
- # Cop supports --auto-correct.
557
- # Configuration parameters: PreferredDelimiters.
558
- Style/PercentLiteralDelimiters:
559
- Exclude:
560
- - 'net-ldap.gemspec'
561
- - 'test/integration/test_add.rb'
562
- - 'test/integration/test_delete.rb'
563
- - 'test/integration/test_open.rb'
564
- - 'test/integration/test_password_modify.rb'
565
- - 'test/test_entry.rb'
566
- - 'test/test_helper.rb'
567
-
568
- # Offense count: 11
569
- # Cop supports --auto-correct.
570
- Style/PerlBackrefs:
571
- Exclude:
572
- - 'lib/net/ldap/dataset.rb'
573
- - 'lib/net/ldap/filter.rb'
574
- - 'testserver/ldapserver.rb'
575
-
576
- # Offense count: 10
577
- # Cop supports --auto-correct.
578
- # Configuration parameters: EnforcedStyle, SupportedStyles.
579
- # SupportedStyles: compact, exploded
580
- Style/RaiseArgs:
581
- Exclude:
582
- - 'lib/net/ldap/connection.rb'
583
- - 'lib/net/ldap/pdu.rb'
584
- - 'lib/net/snmp.rb'
585
-
586
- # Offense count: 1
587
- # Cop supports --auto-correct.
588
- Style/RedundantBegin:
589
- Exclude:
590
- - 'lib/net/snmp.rb'
591
-
592
- # Offense count: 4
593
- # Cop supports --auto-correct.
594
- Style/RedundantParentheses:
595
- Exclude:
596
- - 'lib/net/ldap/filter.rb'
597
- - 'test/test_filter.rb'
598
-
599
- # Offense count: 3
600
- # Cop supports --auto-correct.
601
- # Configuration parameters: AllowMultipleReturnValues.
602
- Style/RedundantReturn:
603
- Exclude:
604
- - 'lib/net/ber/core_ext/string.rb'
605
- - 'lib/net/ldap/auth_adapter.rb'
606
- - 'lib/net/ldap/entry.rb'
607
-
608
- # Offense count: 8
609
- # Cop supports --auto-correct.
610
- Style/RedundantSelf:
611
- Exclude:
612
- - 'lib/net/ber/core_ext/array.rb'
613
- - 'lib/net/ber/core_ext/string.rb'
614
- - 'lib/net/ldap/dn.rb'
615
- - 'lib/net/ldap/filter.rb'
616
-
617
- # Offense count: 2
618
- # Cop supports --auto-correct.
619
- # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
620
- # SupportedStyles: slashes, percent_r, mixed
621
- Style/RegexpLiteral:
622
- Exclude:
623
- - 'lib/net/ldap/filter.rb'
624
- - 'net-ldap.gemspec'
625
-
626
- # Offense count: 1
627
- # Cop supports --auto-correct.
628
- Style/RescueModifier:
629
- Exclude:
630
- - 'test/ber/core_ext/test_string.rb'
631
-
632
- # Offense count: 8
633
- # Cop supports --auto-correct.
634
- # Configuration parameters: AllowAsExpressionSeparator.
635
- Style/Semicolon:
636
- Exclude:
637
- - 'lib/net/ldap/dn.rb'
638
- - 'lib/net/ldap/error.rb'
639
- - 'testserver/ldapserver.rb'
640
-
641
- # Offense count: 5
642
- # Cop supports --auto-correct.
643
- # Configuration parameters: EnforcedStyle, SupportedStyles.
644
- # SupportedStyles: use_perl_names, use_english_names
645
- Style/SpecialGlobalVars:
646
- Exclude:
647
- - 'lib/net/snmp.rb'
648
- - 'net-ldap.gemspec'
649
- - 'testserver/ldapserver.rb'
650
-
651
- # Offense count: 656
652
- # Cop supports --auto-correct.
653
- # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
654
- # SupportedStyles: single_quotes, double_quotes
655
- Style/StringLiterals:
656
- Enabled: false
657
-
658
- # Offense count: 1
659
- Style/StructInheritance:
660
- Exclude:
661
- - 'test/test_ldap.rb'
662
-
663
- # Offense count: 11
664
- # Cop supports --auto-correct.
665
- # Configuration parameters: MinSize, SupportedStyles.
666
- # SupportedStyles: percent, brackets
667
- Style/SymbolArray:
668
- EnforcedStyle: brackets
669
-
670
- # Offense count: 4
671
- # Cop supports --auto-correct.
672
- # Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
673
- # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
674
- Style/TernaryParentheses:
675
- Exclude:
676
- - 'lib/net/ber/core_ext/integer.rb'
677
- - 'lib/net/ldap/connection.rb'
678
- - 'lib/net/ldap/dataset.rb'
679
-
680
- # Offense count: 1
681
- # Cop supports --auto-correct.
682
- # Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
683
- # Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
684
- Style/TrivialAccessors:
685
- Exclude:
686
- - 'lib/net/ldap/connection.rb'
687
-
688
- # Offense count: 5
689
- # Cop supports --auto-correct.
690
- Style/UnneededPercentQ:
691
- Exclude:
692
- - 'net-ldap.gemspec'
693
- - 'test/test_entry.rb'
694
-
695
- # Offense count: 1
696
- # Cop supports --auto-correct.
697
- # Configuration parameters: MaxLineLength.
698
- Style/WhileUntilModifier:
699
- Exclude:
700
- - 'lib/net/ldap/filter.rb'
701
-
702
- # Offense count: 1
703
- # Cop supports --auto-correct.
704
- # Configuration parameters: SupportedStyles, WordRegex.
705
- # SupportedStyles: percent, brackets
706
- Style/WordArray:
707
- EnforcedStyle: percent
708
- MinSize: 3
709
-
710
- # Offense count: 2
711
- # Cop supports --auto-correct.
712
- Style/YodaCondition:
713
- Exclude:
714
- - 'lib/net/ber/ber_parser.rb'
715
- - 'testserver/ldapserver.rb'
716
-
717
- # Offense count: 6
718
- # Cop supports --auto-correct.
719
- Style/ZeroLengthPredicate:
720
- Exclude:
721
- - 'lib/net/ldap/connection.rb'
722
- - 'lib/net/ldap/filter.rb'
723
- - 'testserver/ldapserver.rb'