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