net-ldap 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of net-ldap might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26f8c374bc1cc4a9c355ae968cf1ca29d1efc335
4
- data.tar.gz: 2bd1fc2b1ef9bd5939200a06ba9ce4bf24ae85de
3
+ metadata.gz: d4f923e6ac7f10fc49fff6cfc20271a5eb318360
4
+ data.tar.gz: 1967da0f521b403b511ad50760baa18fa9cc6dd5
5
5
  SHA512:
6
- metadata.gz: 8d7caa7c7800648300d1cfb52dc09d54dd7df4eb39f2ed88e9f8fcdf8cb8119a4e6582541dfe4ebcca69739cd7166366621a2f76dd974fd7f370796a7c4fe14c
7
- data.tar.gz: 71856da21d5c8387cc25f9364d27c43cc48300bd7dd7213b6b35f5a3de42509479d9682f51bc8d894ddd36c21ff5cc0c04e034b051f376b4ab9f17518a249581
6
+ metadata.gz: '09bbb19ba3dba954202b1cb94aad491eb64e30a9582cc2c99e2b7ee6cc4cb79da7117bf2cbfc33a0ec851913fe15e76ef91534f92cc87cfe973e28fb1d8c03e1'
7
+ data.tar.gz: d01aab8d40574cbe7ea738dd0698b092072894ac5c1af9238a9f527651f16dc786e787234d80af116b547137b033fd8966c9c9dc7a48b93c9646f8a274dec677
@@ -13,5 +13,8 @@ Lint/AssignmentInCondition:
13
13
  Style/ParallelAssignment:
14
14
  Enabled: false
15
15
 
16
- Style/TrailingComma:
16
+ Style/TrailingCommaInLiteral:
17
+ EnforcedStyleForMultiline: comma
18
+
19
+ Style/TrailingCommaInArguments:
17
20
  EnforcedStyleForMultiline: comma
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2016-01-08 11:47:42 -0800 using RuboCop version 0.35.0.
3
+ # on 2016-08-17 14:58:12 -0700 using RuboCop version 0.42.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -9,8 +9,15 @@
9
9
  # Offense count: 1
10
10
  # Cop supports --auto-correct.
11
11
  # Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
12
+ # SupportedStyles: keyword, variable, start_of_line
12
13
  Lint/EndAlignment:
13
- Enabled: false
14
+ Exclude:
15
+ - 'testserver/ldapserver.rb'
16
+
17
+ # Offense count: 30
18
+ Lint/ImplicitStringConcatenation:
19
+ Exclude:
20
+ - 'test/test_filter.rb'
14
21
 
15
22
  # Offense count: 1
16
23
  Lint/NonLocalExitFromIterator:
@@ -29,22 +36,30 @@ Lint/ShadowingOuterLocalVariable:
29
36
 
30
37
  # Offense count: 10
31
38
  # Cop supports --auto-correct.
32
- # Configuration parameters: IgnoreEmptyBlocks.
39
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
33
40
  Lint/UnusedBlockArgument:
34
41
  Exclude:
35
42
  - 'lib/net/ldap.rb'
36
43
  - 'lib/net/snmp.rb'
37
44
  - 'test/support/vm/openldap/Vagrantfile'
38
45
 
39
- # Offense count: 3
46
+ # Offense count: 7
40
47
  # Cop supports --auto-correct.
41
48
  # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
42
49
  Lint/UnusedMethodArgument:
43
50
  Exclude:
44
51
  - 'lib/net/ldap/entry.rb'
45
52
  - 'lib/net/ldap/pdu.rb'
53
+ - 'test/test_ldap.rb'
54
+ - 'test/test_ldap_connection.rb'
46
55
  - 'test/test_search.rb'
47
56
 
57
+ # Offense count: 1
58
+ # Configuration parameters: ContextCreatingMethods.
59
+ Lint/UselessAccessModifier:
60
+ Exclude:
61
+ - 'lib/net/ldap/connection.rb'
62
+
48
63
  # Offense count: 9
49
64
  Lint/UselessAssignment:
50
65
  Exclude:
@@ -55,7 +70,7 @@ Lint/UselessAssignment:
55
70
  - 'test/test_search.rb'
56
71
  - 'test/test_snmp.rb'
57
72
 
58
- # Offense count: 48
73
+ # Offense count: 47
59
74
  Metrics/AbcSize:
60
75
  Max: 114
61
76
 
@@ -66,18 +81,19 @@ Metrics/BlockNesting:
66
81
  # Offense count: 10
67
82
  # Configuration parameters: CountComments.
68
83
  Metrics/ClassLength:
69
- Max: 423
84
+ Max: 431
70
85
 
71
- # Offense count: 21
86
+ # Offense count: 22
72
87
  Metrics/CyclomaticComplexity:
73
88
  Max: 41
74
89
 
75
- # Offense count: 229
76
- # Configuration parameters: AllowURI, URISchemes.
90
+ # Offense count: 225
91
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
92
+ # URISchemes: http, https
77
93
  Metrics/LineLength:
78
94
  Max: 360
79
95
 
80
- # Offense count: 71
96
+ # Offense count: 70
81
97
  # Configuration parameters: CountComments.
82
98
  Metrics/MethodLength:
83
99
  Max: 130
@@ -87,7 +103,7 @@ Metrics/MethodLength:
87
103
  Metrics/ModuleLength:
88
104
  Max: 104
89
105
 
90
- # Offense count: 13
106
+ # Offense count: 14
91
107
  Metrics/PerceivedComplexity:
92
108
  Max: 37
93
109
 
@@ -96,6 +112,18 @@ Style/AccessorMethodName:
96
112
  Exclude:
97
113
  - 'lib/net/ldap.rb'
98
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
+
99
127
  # Offense count: 4
100
128
  # Cop supports --auto-correct.
101
129
  Style/AlignArray:
@@ -106,7 +134,8 @@ Style/AlignArray:
106
134
 
107
135
  # Offense count: 10
108
136
  # Cop supports --auto-correct.
109
- # Configuration parameters: EnforcedStyle, SupportedStyles.
137
+ # Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
138
+ # SupportedStyles: with_first_parameter, with_fixed_indentation
110
139
  Style/AlignParameters:
111
140
  Exclude:
112
141
  - 'test/ber/test_ber.rb'
@@ -117,6 +146,7 @@ Style/AlignParameters:
117
146
  # Offense count: 37
118
147
  # Cop supports --auto-correct.
119
148
  # Configuration parameters: EnforcedStyle, SupportedStyles.
149
+ # SupportedStyles: always, conditionals
120
150
  Style/AndOr:
121
151
  Exclude:
122
152
  - 'lib/net/ber/ber_parser.rb'
@@ -130,6 +160,7 @@ Style/AndOr:
130
160
  # Offense count: 1
131
161
  # Cop supports --auto-correct.
132
162
  # Configuration parameters: EnforcedStyle, SupportedStyles.
163
+ # SupportedStyles: percent_q, bare_percent
133
164
  Style/BarePercentLiterals:
134
165
  Exclude:
135
166
  - 'test/test_entry.rb'
@@ -140,21 +171,23 @@ Style/BlockComments:
140
171
  Exclude:
141
172
  - 'test/test_rename.rb'
142
173
 
143
- # Offense count: 9
174
+ # Offense count: 6
144
175
  # Cop supports --auto-correct.
145
176
  # Configuration parameters: EnforcedStyle, SupportedStyles.
177
+ # SupportedStyles: braces, no_braces, context_dependent
146
178
  Style/BracesAroundHashParameters:
147
179
  Exclude:
148
180
  - 'lib/net/ldap/auth_adapter/gss_spnego.rb'
149
181
  - 'lib/net/snmp.rb'
150
- - 'test/test_auth_adapter.rb'
151
- - 'test/test_ldap_connection.rb'
182
+ - 'test/test_ldap.rb'
152
183
 
153
184
  # Offense count: 4
154
185
  # Cop supports --auto-correct.
155
- # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
186
+ # Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
187
+ # SupportedStyles: case, end
156
188
  Style/CaseIndentation:
157
- Enabled: false
189
+ Exclude:
190
+ - 'lib/net/ldap/filter.rb'
158
191
 
159
192
  # Offense count: 4
160
193
  # Cop supports --auto-correct.
@@ -170,12 +203,14 @@ Style/ClassAndModuleCamelCase:
170
203
 
171
204
  # Offense count: 23
172
205
  # Configuration parameters: EnforcedStyle, SupportedStyles.
206
+ # SupportedStyles: nested, compact
173
207
  Style/ClassAndModuleChildren:
174
208
  Enabled: false
175
209
 
176
210
  # Offense count: 2
177
211
  # Cop supports --auto-correct.
178
212
  # Configuration parameters: EnforcedStyle, SupportedStyles.
213
+ # SupportedStyles: is_a?, kind_of?
179
214
  Style/ClassCheck:
180
215
  Exclude:
181
216
  - 'lib/net/ber/core_ext/array.rb'
@@ -191,10 +226,19 @@ Style/ColonMethodCall:
191
226
  # Offense count: 1
192
227
  # Cop supports --auto-correct.
193
228
  # Configuration parameters: Keywords.
229
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
194
230
  Style/CommentAnnotation:
195
231
  Exclude:
196
232
  - 'lib/net/ber.rb'
197
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
+
198
242
  # Offense count: 88
199
243
  Style/ConstantName:
200
244
  Exclude:
@@ -206,13 +250,11 @@ Style/ConstantName:
206
250
  - 'test/test_ldif.rb'
207
251
  - 'testserver/ldapserver.rb'
208
252
 
209
- # Offense count: 21
210
- # Configuration parameters: Exclude.
253
+ # Offense count: 17
211
254
  Style/Documentation:
212
255
  Exclude:
213
256
  - 'spec/**/*'
214
257
  - 'test/**/*'
215
- - 'lib/net/ber.rb'
216
258
  - 'lib/net/ber/core_ext.rb'
217
259
  - 'lib/net/ldap.rb'
218
260
  - 'lib/net/ldap/auth_adapter.rb'
@@ -223,15 +265,17 @@ Style/Documentation:
223
265
  - 'lib/net/ldap/instrumentation.rb'
224
266
  - 'lib/net/ldap/password.rb'
225
267
  - 'lib/net/ldap/pdu.rb'
226
- - 'lib/net/ldap/version.rb'
227
268
  - 'lib/net/snmp.rb'
228
269
  - 'testserver/ldapserver.rb'
229
270
 
230
- # Offense count: 23
271
+ # Offense count: 19
231
272
  # Cop supports --auto-correct.
232
273
  # Configuration parameters: EnforcedStyle, SupportedStyles.
274
+ # SupportedStyles: leading, trailing
233
275
  Style/DotPosition:
234
- Enabled: false
276
+ Exclude:
277
+ - 'test/test_ldap_connection.rb'
278
+ - 'test/test_ssl_ber.rb'
235
279
 
236
280
  # Offense count: 1
237
281
  # Cop supports --auto-correct.
@@ -255,16 +299,19 @@ Style/EmptyLines:
255
299
  - 'lib/net/snmp.rb'
256
300
  - 'testserver/ldapserver.rb'
257
301
 
258
- # Offense count: 1
302
+ # Offense count: 2
259
303
  # Cop supports --auto-correct.
260
304
  # Configuration parameters: EnforcedStyle, SupportedStyles.
305
+ # SupportedStyles: empty_lines, no_empty_lines
261
306
  Style/EmptyLinesAroundClassBody:
262
307
  Exclude:
308
+ - 'lib/net/ldap.rb'
263
309
  - 'test/test_snmp.rb'
264
310
 
265
311
  # Offense count: 2
266
312
  # Cop supports --auto-correct.
267
313
  # Configuration parameters: EnforcedStyle, SupportedStyles.
314
+ # SupportedStyles: empty_lines, no_empty_lines
268
315
  Style/EmptyLinesAroundModuleBody:
269
316
  Exclude:
270
317
  - 'testserver/ldapserver.rb'
@@ -276,7 +323,7 @@ Style/EvenOdd:
276
323
  - 'lib/net/ldap/dn.rb'
277
324
 
278
325
  # Offense count: 1
279
- # Configuration parameters: Exclude.
326
+ # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
280
327
  Style/FileName:
281
328
  Exclude:
282
329
  - 'lib/net-ldap.rb'
@@ -287,19 +334,31 @@ Style/GlobalVars:
287
334
  Exclude:
288
335
  - 'testserver/ldapserver.rb'
289
336
 
290
- # Offense count: 4
291
- # Configuration parameters: MinBodyLength.
292
- Style/GuardClause:
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:
293
342
  Exclude:
294
343
  - 'lib/net/ber.rb'
295
- - 'lib/net/ldap/entry.rb'
296
- - 'lib/net/ldap/filter.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'
297
357
 
298
- # Offense count: 149
299
- # Cop supports --auto-correct.
300
- # Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
301
- Style/HashSyntax:
302
- Enabled: false
358
+ # Offense count: 1
359
+ Style/IfInsideElse:
360
+ Exclude:
361
+ - 'lib/net/ldap/instrumentation.rb'
303
362
 
304
363
  # Offense count: 7
305
364
  # Cop supports --auto-correct.
@@ -311,10 +370,19 @@ Style/IfUnlessModifier:
311
370
  - 'lib/net/ldap.rb'
312
371
  - 'lib/net/ldap/filter.rb'
313
372
  - 'lib/net/snmp.rb'
373
+ - 'test/test_ldap_connection.rb'
314
374
 
315
375
  # Offense count: 2
316
376
  # Cop supports --auto-correct.
317
- # Configuration parameters: SupportedStyles.
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
318
386
  Style/IndentHash:
319
387
  EnforcedStyle: consistent
320
388
 
@@ -340,25 +408,65 @@ Style/LeadingCommentSpace:
340
408
  # Offense count: 21
341
409
  # Cop supports --auto-correct.
342
410
  # Configuration parameters: EnforcedStyle, SupportedStyles.
411
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
343
412
  Style/MethodDefParentheses:
344
- Enabled: false
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'
345
424
 
346
425
  # Offense count: 1
347
426
  # Configuration parameters: EnforcedStyle, SupportedStyles.
427
+ # SupportedStyles: snake_case, camelCase
348
428
  Style/MethodName:
349
- Enabled: false
429
+ Exclude:
430
+ - 'lib/net/ldap/filter.rb'
350
431
 
351
- # Offense count: 5
432
+ # Offense count: 4
352
433
  # Cop supports --auto-correct.
353
434
  # Configuration parameters: EnforcedStyle, SupportedStyles.
354
- Style/MultilineOperationIndentation:
355
- Enabled: false
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'
356
449
 
357
450
  # Offense count: 1
358
451
  Style/MultilineTernaryOperator:
359
452
  Exclude:
360
453
  - 'lib/net/ldap/connection.rb'
361
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
+
362
470
  # Offense count: 1
363
471
  # Cop supports --auto-correct.
364
472
  Style/NegatedIf:
@@ -374,6 +482,7 @@ Style/NegatedWhile:
374
482
  # Offense count: 3
375
483
  # Cop supports --auto-correct.
376
484
  # Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
485
+ # SupportedStyles: skip_modifier_ifs, always
377
486
  Style/Next:
378
487
  Exclude:
379
488
  - 'lib/net/ldap/connection.rb'
@@ -403,6 +512,16 @@ Style/Not:
403
512
  Style/NumericLiterals:
404
513
  MinDigits: 8
405
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
+
406
525
  # Offense count: 3
407
526
  Style/OpMethod:
408
527
  Exclude:
@@ -435,9 +554,14 @@ Style/PerlBackrefs:
435
554
  - 'testserver/ldapserver.rb'
436
555
 
437
556
  # Offense count: 10
557
+ # Cop supports --auto-correct.
438
558
  # Configuration parameters: EnforcedStyle, SupportedStyles.
559
+ # SupportedStyles: compact, exploded
439
560
  Style/RaiseArgs:
440
- Enabled: false
561
+ Exclude:
562
+ - 'lib/net/ldap/connection.rb'
563
+ - 'lib/net/ldap/pdu.rb'
564
+ - 'lib/net/snmp.rb'
441
565
 
442
566
  # Offense count: 1
443
567
  # Cop supports --auto-correct.
@@ -445,6 +569,13 @@ Style/RedundantBegin:
445
569
  Exclude:
446
570
  - 'lib/net/snmp.rb'
447
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
+
448
579
  # Offense count: 4
449
580
  # Cop supports --auto-correct.
450
581
  # Configuration parameters: AllowMultipleReturnValues.
@@ -455,7 +586,7 @@ Style/RedundantReturn:
455
586
  - 'lib/net/ldap/entry.rb'
456
587
  - 'lib/net/ldap/password.rb'
457
588
 
458
- # Offense count: 6
589
+ # Offense count: 8
459
590
  # Cop supports --auto-correct.
460
591
  Style/RedundantSelf:
461
592
  Exclude:
@@ -467,6 +598,7 @@ Style/RedundantSelf:
467
598
  # Offense count: 2
468
599
  # Cop supports --auto-correct.
469
600
  # Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
601
+ # SupportedStyles: slashes, percent_r, mixed
470
602
  Style/RegexpLiteral:
471
603
  Exclude:
472
604
  - 'lib/net/ldap/filter.rb'
@@ -487,73 +619,59 @@ Style/Semicolon:
487
619
  - 'lib/net/ldap/error.rb'
488
620
  - 'testserver/ldapserver.rb'
489
621
 
490
- # Offense count: 66
491
- # Cop supports --auto-correct.
492
- # Configuration parameters: EnforcedStyle, SupportedStyles.
493
- Style/SignalException:
494
- Exclude:
495
- - 'lib/net/ber/ber_parser.rb'
496
- - 'lib/net/ber/core_ext/array.rb'
497
- - 'lib/net/ldap.rb'
498
- - 'lib/net/ldap/auth_adapter.rb'
499
- - 'lib/net/ldap/auth_adapter/gss_spnego.rb'
500
- - 'lib/net/ldap/auth_adapter/sasl.rb'
501
- - 'lib/net/ldap/auth_adapter/simple.rb'
502
- - 'lib/net/ldap/connection.rb'
503
- - 'lib/net/ldap/dn.rb'
504
- - 'lib/net/ldap/entry.rb'
505
- - 'lib/net/ldap/filter.rb'
506
- - 'lib/net/ldap/password.rb'
507
- - 'lib/net/ldap/pdu.rb'
508
- - 'lib/net/snmp.rb'
509
-
510
622
  # Offense count: 2
511
623
  # Configuration parameters: Methods.
624
+ # Methods: {"reduce"=>["a", "e"]}, {"inject"=>["a", "e"]}
512
625
  Style/SingleLineBlockParams:
513
626
  Exclude:
514
627
  - 'lib/net/ldap/filter.rb'
515
628
 
516
- # Offense count: 2
629
+ # Offense count: 5
517
630
  # Cop supports --auto-correct.
518
- Style/SingleSpaceBeforeFirstArg:
631
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
632
+ # SupportedStyles: space, no_space
633
+ Style/SpaceAroundEqualsInParameterDefault:
519
634
  Exclude:
520
- - 'lib/net/ldap/dataset.rb'
521
- - 'lib/net/ldap/instrumentation.rb'
635
+ - 'lib/net/ldap/connection.rb'
636
+ - 'lib/net/snmp.rb'
522
637
 
523
- # Offense count: 2
638
+ # Offense count: 4
524
639
  # Cop supports --auto-correct.
525
- # Configuration parameters: EnforcedStyle, SupportedStyles.
526
- Style/SpaceAroundEqualsInParameterDefault:
527
- Enabled: false
640
+ Style/SpaceAroundKeyword:
641
+ Exclude:
642
+ - 'lib/net/ldap/entry.rb'
643
+ - 'lib/net/snmp.rb'
528
644
 
529
645
  # Offense count: 9
530
646
  # Cop supports --auto-correct.
531
- # Configuration parameters: MultiSpaceAllowedForOperators.
647
+ # Configuration parameters: AllowForAlignment.
532
648
  Style/SpaceAroundOperators:
533
649
  Exclude:
650
+ - 'lib/net/ber/ber_parser.rb'
534
651
  - 'lib/net/ldap/connection.rb'
535
652
  - 'lib/net/ldap/entry.rb'
536
653
  - 'lib/net/ldap/filter.rb'
537
654
  - 'test/test_entry.rb'
538
655
  - 'test/test_ldap_connection.rb'
539
656
 
540
- # Offense count: 2
541
- # Cop supports --auto-correct.
542
- # Configuration parameters: EnforcedStyle, SupportedStyles.
543
- Style/SpaceBeforeBlockBraces:
544
- Enabled: false
545
-
546
- # Offense count: 18
657
+ # Offense count: 5
547
658
  # Cop supports --auto-correct.
548
659
  # Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
660
+ # SupportedStyles: space, no_space
549
661
  Style/SpaceInsideBlockBraces:
550
- Enabled: false
662
+ Exclude:
663
+ - 'lib/net/ldap/dataset.rb'
664
+ - 'test/test_snmp.rb'
665
+ - 'testserver/ldapserver.rb'
551
666
 
552
- # Offense count: 1
667
+ # Offense count: 13
553
668
  # Cop supports --auto-correct.
554
669
  # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
670
+ # SupportedStyles: space, no_space, compact
555
671
  Style/SpaceInsideHashLiteralBraces:
556
- Enabled: false
672
+ Exclude:
673
+ - 'lib/net/ldap/dataset.rb'
674
+ - 'test/test_ldap.rb'
557
675
 
558
676
  # Offense count: 20
559
677
  # Cop supports --auto-correct.
@@ -566,18 +684,44 @@ Style/SpaceInsideParens:
566
684
 
567
685
  # Offense count: 5
568
686
  # Cop supports --auto-correct.
687
+ # Configuration parameters: EnforcedStyle, SupportedStyles.
688
+ # SupportedStyles: use_perl_names, use_english_names
569
689
  Style/SpecialGlobalVars:
570
690
  Exclude:
571
691
  - 'lib/net/snmp.rb'
572
692
  - 'net-ldap.gemspec'
573
693
  - 'testserver/ldapserver.rb'
574
694
 
575
- # Offense count: 663
695
+ # Offense count: 679
576
696
  # Cop supports --auto-correct.
577
- # Configuration parameters: EnforcedStyle, SupportedStyles.
697
+ # Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
698
+ # SupportedStyles: single_quotes, double_quotes
578
699
  Style/StringLiterals:
579
700
  Enabled: false
580
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
+
581
725
  # Offense count: 5
582
726
  # Cop supports --auto-correct.
583
727
  Style/UnneededPercentQ:
@@ -594,6 +738,16 @@ Style/WhileUntilModifier:
594
738
 
595
739
  # Offense count: 1
596
740
  # Cop supports --auto-correct.
597
- # Configuration parameters: WordRegex.
741
+ # Configuration parameters: SupportedStyles, WordRegex.
742
+ # SupportedStyles: percent, brackets
598
743
  Style/WordArray:
599
- MinSize: 2
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'