1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-03-29 17:13:45 UTC using RuboCop version 1.48.1 .
3
+ # on 2025-05-31 20:03:27 UTC using RuboCop version 1.75.8 .
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
7
7
# versions of RuboCop, may require this file to be generated again.
8
8
9
- # Offense count: 1
10
- # This cop supports safe autocorrection (--autocorrect).
11
- # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
12
- # Include: **/*.gemspec
13
- Gemspec/OrderedDependencies :
14
- Exclude :
15
- - ' net-ldap.gemspec'
16
-
17
- # Offense count: 1
18
- # Configuration parameters: Severity, Include.
19
- # Include: **/*.gemspec
20
- Gemspec/RequiredRubyVersion :
21
- Exclude :
22
- - ' net-ldap.gemspec'
23
-
24
9
# Offense count: 3
25
10
# This cop supports safe autocorrection (--autocorrect).
26
11
# Configuration parameters: EnforcedStyle, IndentationWidth.
@@ -61,7 +46,7 @@ Layout/EmptyLineAfterMagicComment:
61
46
62
47
# Offense count: 6
63
48
# This cop supports safe autocorrection (--autocorrect).
64
- # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
49
+ # Configuration parameters: EmptyLineBetweenMethodDefs, EmptyLineBetweenClassDefs, EmptyLineBetweenModuleDefs, DefLikeMacros, AllowAdjacentOneLineDefs, NumberOfEmptyLines.
65
50
Layout/EmptyLineBetweenDefs :
66
51
Exclude :
67
52
- ' lib/net/ldap/dataset.rb'
@@ -104,7 +89,7 @@ Layout/EndAlignment:
104
89
Exclude :
105
90
- ' testserver/ldapserver.rb'
106
91
107
- # Offense count: 2
92
+ # Offense count: 6
108
93
# This cop supports safe autocorrection (--autocorrect).
109
94
# Configuration parameters: IndentationWidth.
110
95
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
@@ -148,9 +133,9 @@ Layout/IndentationWidth:
148
133
- ' lib/net/ldap/password.rb'
149
134
- ' lib/net/snmp.rb'
150
135
151
- # Offense count: 15
136
+ # Offense count: 14
152
137
# This cop supports safe autocorrection (--autocorrect).
153
- # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment.
138
+ # Configuration parameters: AllowDoxygenCommentStyle, AllowGemfileRubyComment, AllowRBSInlineAnnotation, AllowSteepAnnotation .
154
139
Layout/LeadingCommentSpace :
155
140
Exclude :
156
141
- ' lib/net/ber/core_ext/array.rb'
@@ -168,7 +153,7 @@ Layout/MultilineMethodCallBraceLayout:
168
153
Exclude :
169
154
- ' lib/net/ldap/filter.rb'
170
155
171
- # Offense count: 7
156
+ # Offense count: 8
172
157
# This cop supports safe autocorrection (--autocorrect).
173
158
# Configuration parameters: EnforcedStyle.
174
159
# SupportedStyles: space, no_space
@@ -186,8 +171,9 @@ Layout/SpaceAroundKeyword:
186
171
187
172
# Offense count: 7
188
173
# This cop supports safe autocorrection (--autocorrect).
189
- # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
174
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals .
190
175
# SupportedStylesForExponentOperator: space, no_space
176
+ # SupportedStylesForRationalLiterals: space, no_space
191
177
Layout/SpaceAroundOperators :
192
178
Exclude :
193
179
- ' lib/net/ber/ber_parser.rb'
@@ -214,8 +200,8 @@ Layout/SpaceInsideParens:
214
200
- ' lib/net/snmp.rb'
215
201
216
202
# Offense count: 1
217
- # This cop supports unsafe autocorrection (--autocorrect-all ).
218
- # Configuration parameters: AllowComments.
203
+ # This cop supports safe autocorrection (--autocorrect).
204
+ # Configuration parameters: AutoCorrect, AllowComments.
219
205
Lint/EmptyConditionalBody :
220
206
Exclude :
221
207
- ' lib/net/ldap/filter.rb'
@@ -227,6 +213,7 @@ Lint/EmptyWhen:
227
213
- ' lib/net/ldap/pdu.rb'
228
214
229
215
# Offense count: 30
216
+ # This cop supports safe autocorrection (--autocorrect).
230
217
Lint/ImplicitStringConcatenation :
231
218
Exclude :
232
219
- ' test/test_filter.rb'
@@ -241,17 +228,18 @@ Lint/RescueException:
241
228
Exclude :
242
229
- ' lib/net/ldap/pdu.rb'
243
230
244
- # Offense count: 9
231
+ # Offense count: 10
245
232
# This cop supports safe autocorrection (--autocorrect).
246
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
233
+ # Configuration parameters: AutoCorrect, IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
247
234
Lint/UnusedBlockArgument :
248
235
Exclude :
249
236
- ' lib/net/ldap.rb'
250
237
- ' lib/net/snmp.rb'
251
238
252
239
# Offense count: 7
253
240
# This cop supports safe autocorrection (--autocorrect).
254
- # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
241
+ # Configuration parameters: AutoCorrect, AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods, NotImplementedExceptions.
242
+ # NotImplementedExceptions: NotImplementedError
255
243
Lint/UnusedMethodArgument :
256
244
Exclude :
257
245
- ' lib/net/ldap/entry.rb'
@@ -262,19 +250,21 @@ Lint/UnusedMethodArgument:
262
250
263
251
# Offense count: 1
264
252
# This cop supports safe autocorrection (--autocorrect).
265
- # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
253
+ # Configuration parameters: AutoCorrect, ContextCreatingMethods, MethodCreatingMethods.
266
254
Lint/UselessAccessModifier :
267
255
Exclude :
268
256
- ' lib/net/ldap/connection.rb'
269
257
270
258
# Offense count: 5
259
+ # This cop supports safe autocorrection (--autocorrect).
260
+ # Configuration parameters: AutoCorrect.
271
261
Lint/UselessAssignment :
272
262
Exclude :
273
263
- ' test/integration/test_add.rb'
274
264
- ' test/test_ldap_connection.rb'
275
265
- ' test/test_search.rb'
276
266
277
- # Offense count: 38
267
+ # Offense count: 42
278
268
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
279
269
Metrics/AbcSize :
280
270
Max : 124
@@ -285,22 +275,22 @@ Metrics/AbcSize:
285
275
Metrics/BlockLength :
286
276
Max : 119
287
277
288
- # Offense count: 11
289
- # Configuration parameters: CountBlocks.
278
+ # Offense count: 6
279
+ # Configuration parameters: CountBlocks, CountModifierForms .
290
280
Metrics/BlockNesting :
291
281
Max : 4
292
282
293
- # Offense count: 11
283
+ # Offense count: 12
294
284
# Configuration parameters: CountComments, CountAsOne.
295
285
Metrics/ClassLength :
296
286
Max : 451
297
287
298
- # Offense count: 20
288
+ # Offense count: 21
299
289
# Configuration parameters: AllowedMethods, AllowedPatterns.
300
290
Metrics/CyclomaticComplexity :
301
291
Max : 45
302
292
303
- # Offense count: 74
293
+ # Offense count: 79
304
294
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
305
295
Metrics/MethodLength :
306
296
Max : 130
@@ -333,7 +323,7 @@ Naming/ClassAndModuleCamelCase:
333
323
Exclude :
334
324
- ' lib/net/ldap/auth_adapter/gss_spnego.rb'
335
325
336
- # Offense count: 87
326
+ # Offense count: 88
337
327
Naming/ConstantName :
338
328
Exclude :
339
329
- ' lib/net/ldap.rb'
@@ -350,6 +340,7 @@ Naming/ConstantName:
350
340
# 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
351
341
Naming/FileName :
352
342
Exclude :
343
+ - ' Rakefile.rb'
353
344
- ' lib/net-ldap.rb'
354
345
355
346
# Offense count: 11
@@ -380,7 +371,7 @@ Style/AccessorGrouping:
380
371
- ' lib/net/ldap.rb'
381
372
- ' lib/net/ldap/pdu.rb'
382
373
383
- # Offense count: 10
374
+ # Offense count: 11
384
375
# This cop supports safe autocorrection (--autocorrect).
385
376
# Configuration parameters: EnforcedStyle.
386
377
# SupportedStyles: prefer_alias, prefer_alias_method
@@ -434,8 +425,10 @@ Style/CharacterLiteral:
434
425
435
426
# Offense count: 23
436
427
# This cop supports unsafe autocorrection (--autocorrect-all).
437
- # Configuration parameters: EnforcedStyle.
428
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForClasses, EnforcedStyleForModules .
438
429
# SupportedStyles: nested, compact
430
+ # SupportedStylesForClasses: ~, nested, compact
431
+ # SupportedStylesForModules: ~, nested, compact
439
432
Style/ClassAndModuleChildren :
440
433
Enabled : false
441
434
@@ -493,7 +486,7 @@ Style/Documentation:
493
486
494
487
# Offense count: 1
495
488
# This cop supports safe autocorrection (--autocorrect).
496
- # Configuration parameters: EnforcedStyle.
489
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
497
490
# SupportedStyles: compact, expanded
498
491
Style/EmptyMethod :
499
492
Exclude :
@@ -525,7 +518,7 @@ Style/ExplicitBlockArgument:
525
518
- ' lib/net/ldap.rb'
526
519
- ' lib/net/ldap/dataset.rb'
527
520
528
- # Offense count: 54
521
+ # Offense count: 57
529
522
# This cop supports unsafe autocorrection (--autocorrect-all).
530
523
# Configuration parameters: EnforcedStyle.
531
524
# SupportedStyles: always, always_true, never
@@ -545,11 +538,11 @@ Style/GuardClause:
545
538
Exclude :
546
539
- ' lib/net/ldap/filter.rb'
547
540
548
- # Offense count: 159
541
+ # Offense count: 164
549
542
# This cop supports safe autocorrection (--autocorrect).
550
543
# Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
551
544
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
552
- # SupportedShorthandSyntax: always, never, either, consistent
545
+ # SupportedShorthandSyntax: always, never, either, consistent, either_consistent
553
546
Style/HashSyntax :
554
547
Exclude :
555
548
- ' lib/net/ber.rb'
@@ -573,7 +566,7 @@ Style/IfInsideElse:
573
566
Exclude :
574
567
- ' lib/net/ldap/instrumentation.rb'
575
568
576
- # Offense count: 25
569
+ # Offense count: 28
577
570
# This cop supports safe autocorrection (--autocorrect).
578
571
Style/IfUnlessModifier :
579
572
Exclude :
@@ -618,7 +611,14 @@ Style/MultilineWhenThen:
618
611
Exclude :
619
612
- ' lib/net/ldap/dn.rb'
620
613
621
- # Offense count: 25
614
+ # Offense count: 1
615
+ # This cop supports safe autocorrection (--autocorrect).
616
+ # Configuration parameters: AllowMethodComparison, ComparisonsThreshold.
617
+ Style/MultipleComparison :
618
+ Exclude :
619
+ - ' lib/net/ldap/dataset.rb'
620
+
621
+ # Offense count: 26
622
622
# This cop supports unsafe autocorrection (--autocorrect-all).
623
623
# Configuration parameters: EnforcedStyle.
624
624
# SupportedStyles: literals, strict
@@ -650,7 +650,7 @@ Style/NegatedWhile:
650
650
651
651
# Offense count: 3
652
652
# This cop supports safe autocorrection (--autocorrect).
653
- # Configuration parameters: EnforcedStyle, MinBodyLength.
653
+ # Configuration parameters: EnforcedStyle, MinBodyLength, AllowConsecutiveConditionals .
654
654
# SupportedStyles: skip_modifier_ifs, always
655
655
Style/Next :
656
656
Exclude :
@@ -678,7 +678,7 @@ Style/Not:
678
678
Exclude :
679
679
- ' lib/net/ldap/filter.rb'
680
680
681
- # Offense count: 11
681
+ # Offense count: 13
682
682
# This cop supports safe autocorrection (--autocorrect).
683
683
# Configuration parameters: Strict, AllowedNumbers, AllowedPatterns.
684
684
Style/NumericLiterals :
@@ -704,15 +704,12 @@ Style/OptionalBooleanParameter:
704
704
Exclude :
705
705
- ' lib/net/ldap/entry.rb'
706
706
707
- # Offense count: 6
707
+ # Offense count: 1
708
708
# This cop supports safe autocorrection (--autocorrect).
709
709
# Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
710
710
Style/ParenthesesAroundCondition :
711
711
Exclude :
712
- - ' lib/net/ldap.rb'
713
- - ' lib/net/ldap/auth_adapter/gss_spnego.rb'
714
712
- ' lib/net/ldap/auth_adapter/sasl.rb'
715
- - ' lib/net/ldap/auth_adapter/simple.rb'
716
713
717
714
# Offense count: 13
718
715
# This cop supports safe autocorrection (--autocorrect).
@@ -737,7 +734,7 @@ Style/PerlBackrefs:
737
734
- ' testserver/ldapserver.rb'
738
735
739
736
# Offense count: 10
740
- # This cop supports safe autocorrection (--autocorrect).
737
+ # This cop supports unsafe autocorrection (--autocorrect-all ).
741
738
# Configuration parameters: EnforcedStyle, AllowedCompactTypes.
742
739
# SupportedStyles: compact, exploded
743
740
Style/RaiseArgs :
@@ -874,7 +871,7 @@ Style/StringConcatenation:
874
871
- ' test/test_ldif.rb'
875
872
- ' test/test_snmp.rb'
876
873
877
- # Offense count: 683
874
+ # Offense count: 728
878
875
# This cop supports safe autocorrection (--autocorrect).
879
876
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
880
877
# SupportedStyles: single_quotes, double_quotes
@@ -907,7 +904,7 @@ Style/TernaryParentheses:
907
904
# Offense count: 38
908
905
# This cop supports safe autocorrection (--autocorrect).
909
906
# Configuration parameters: EnforcedStyleForMultiline.
910
- # SupportedStylesForMultiline: comma, consistent_comma, no_comma
907
+ # SupportedStylesForMultiline: comma, consistent_comma, diff_comma, no_comma
911
908
Style/TrailingCommaInHashLiteral :
912
909
Enabled : false
913
910
@@ -955,9 +952,9 @@ Style/ZeroLengthPredicate:
955
952
- ' lib/net/ldap/filter.rb'
956
953
- ' testserver/ldapserver.rb'
957
954
958
- # Offense count: 24
955
+ # Offense count: 27
959
956
# This cop supports safe autocorrection (--autocorrect).
960
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
957
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings .
961
958
# URISchemes: http, https
962
959
Layout/LineLength :
963
960
Max : 360
0 commit comments