net-ldap 0.16.2 → 0.16.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +216 -246
- data/.travis.yml +4 -2
- data/CONTRIBUTING.md +1 -1
- data/README.rdoc +2 -2
- data/Rakefile +1 -1
- data/lib/net-ldap.rb +1 -1
- data/lib/net/ber.rb +2 -2
- data/lib/net/ber/core_ext.rb +6 -6
- data/lib/net/ldap.rb +13 -13
- data/lib/net/ldap/auth_adapter/gss_spnego.rb +2 -2
- data/lib/net/ldap/auth_adapter/sasl.rb +1 -1
- data/lib/net/ldap/auth_adapter/simple.rb +1 -1
- data/lib/net/ldap/connection.rb +4 -4
- data/lib/net/ldap/dataset.rb +2 -2
- data/lib/net/ldap/dn.rb +10 -10
- data/lib/net/ldap/entry.rb +1 -1
- data/lib/net/ldap/error.rb +1 -0
- data/lib/net/ldap/filter.rb +3 -3
- data/lib/net/ldap/instrumentation.rb +2 -2
- data/lib/net/ldap/password.rb +3 -5
- data/lib/net/ldap/pdu.rb +1 -1
- data/lib/net/ldap/version.rb +1 -1
- data/lib/net/snmp.rb +1 -1
- data/net-ldap.gemspec +4 -4
- data/test/ber/test_ber.rb +1 -1
- data/test/integration/test_ber.rb +1 -1
- data/test/integration/test_bind.rb +1 -2
- data/test/integration/test_password_modify.rb +10 -10
- data/test/test_dn.rb +2 -3
- data/test/test_entry.rb +3 -2
- data/test/test_filter_parser.rb +5 -0
- data/test/test_helper.rb +1 -1
- data/test/test_ldap.rb +5 -5
- data/test/test_ldap_connection.rb +46 -32
- data/test/test_ldif.rb +12 -12
- data/test/test_password.rb +2 -2
- data/test/test_snmp.rb +4 -5
- data/test/test_ssl_ber.rb +7 -3
- data/testserver/ldapserver.rb +13 -22
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b993fcb063f53718741afa8b8b8a504bdadb9310472e31b7e803fc5f8db8d4a
|
4
|
+
data.tar.gz: 630c0d112dd4d31a980bca4a112d8ccac064901a513ecfd02c39556f3bbe73f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d3879fe70c419c08f9b9638cd39846092c9dd81dc9bff0a8d0e72462b273fda351afaa6946b0a7d43d6c67c221af8b8988962fed5a5a489096a54f84fe2446e
|
7
|
+
data.tar.gz: 18c4a8b2a05541800bbbe869f0f4ca498a4e2f46e41ec2cabc9e0506e10e74d569c6664d8c32e6160b1bb1a02eedff329c50f6c02eae9b0c92d63a503d08189b
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
@@ -1,15 +1,157 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2020-07-12 00:41:11 -0400 using RuboCop version 0.49.1.
|
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: 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
|
+
|
9
91
|
# Offense count: 1
|
10
92
|
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters:
|
12
|
-
# SupportedStyles:
|
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
|
13
155
|
Lint/EndAlignment:
|
14
156
|
Exclude:
|
15
157
|
- 'testserver/ldapserver.rb'
|
@@ -29,19 +171,13 @@ Lint/RescueException:
|
|
29
171
|
Exclude:
|
30
172
|
- 'lib/net/ldap/pdu.rb'
|
31
173
|
|
32
|
-
# Offense count:
|
33
|
-
Lint/ShadowingOuterLocalVariable:
|
34
|
-
Exclude:
|
35
|
-
- 'lib/net/ldap/instrumentation.rb'
|
36
|
-
|
37
|
-
# Offense count: 10
|
174
|
+
# Offense count: 9
|
38
175
|
# Cop supports --auto-correct.
|
39
176
|
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
40
177
|
Lint/UnusedBlockArgument:
|
41
178
|
Exclude:
|
42
179
|
- 'lib/net/ldap.rb'
|
43
180
|
- 'lib/net/snmp.rb'
|
44
|
-
- 'test/support/vm/openldap/Vagrantfile'
|
45
181
|
|
46
182
|
# Offense count: 7
|
47
183
|
# Cop supports --auto-correct.
|
@@ -55,57 +191,61 @@ Lint/UnusedMethodArgument:
|
|
55
191
|
- 'test/test_search.rb'
|
56
192
|
|
57
193
|
# Offense count: 1
|
58
|
-
# Configuration parameters: ContextCreatingMethods.
|
194
|
+
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
59
195
|
Lint/UselessAccessModifier:
|
60
196
|
Exclude:
|
61
197
|
- 'lib/net/ldap/connection.rb'
|
62
198
|
|
63
|
-
# Offense count:
|
199
|
+
# Offense count: 6
|
64
200
|
Lint/UselessAssignment:
|
65
201
|
Exclude:
|
66
|
-
- 'lib/net/ldap/connection.rb'
|
67
|
-
- 'lib/net/ldap/password.rb'
|
68
202
|
- 'test/integration/test_add.rb'
|
69
203
|
- 'test/test_ldap_connection.rb'
|
70
204
|
- 'test/test_search.rb'
|
71
205
|
- 'test/test_snmp.rb'
|
72
206
|
|
73
|
-
# Offense count:
|
207
|
+
# Offense count: 48
|
74
208
|
Metrics/AbcSize:
|
75
|
-
Max:
|
209
|
+
Max: 116
|
210
|
+
|
211
|
+
# Offense count: 4
|
212
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
213
|
+
Metrics/BlockLength:
|
214
|
+
Max: 119
|
76
215
|
|
77
216
|
# Offense count: 11
|
217
|
+
# Configuration parameters: CountBlocks.
|
78
218
|
Metrics/BlockNesting:
|
79
219
|
Max: 4
|
80
220
|
|
81
|
-
# Offense count:
|
221
|
+
# Offense count: 11
|
82
222
|
# Configuration parameters: CountComments.
|
83
223
|
Metrics/ClassLength:
|
84
|
-
Max:
|
224
|
+
Max: 429
|
85
225
|
|
86
|
-
# Offense count:
|
226
|
+
# Offense count: 23
|
87
227
|
Metrics/CyclomaticComplexity:
|
88
228
|
Max: 41
|
89
229
|
|
90
|
-
# Offense count:
|
91
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
230
|
+
# Offense count: 216
|
231
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
92
232
|
# URISchemes: http, https
|
93
233
|
Metrics/LineLength:
|
94
234
|
Max: 360
|
95
235
|
|
96
|
-
# Offense count:
|
236
|
+
# Offense count: 74
|
97
237
|
# Configuration parameters: CountComments.
|
98
238
|
Metrics/MethodLength:
|
99
|
-
Max:
|
239
|
+
Max: 128
|
100
240
|
|
101
241
|
# Offense count: 1
|
102
242
|
# Configuration parameters: CountComments.
|
103
243
|
Metrics/ModuleLength:
|
104
|
-
Max:
|
244
|
+
Max: 103
|
105
245
|
|
106
|
-
# Offense count:
|
246
|
+
# Offense count: 15
|
107
247
|
Metrics/PerceivedComplexity:
|
108
|
-
Max:
|
248
|
+
Max: 38
|
109
249
|
|
110
250
|
# Offense count: 1
|
111
251
|
Style/AccessorMethodName:
|
@@ -124,26 +264,7 @@ Style/Alias:
|
|
124
264
|
- 'lib/net/ldap/filter.rb'
|
125
265
|
- 'lib/net/ldap/pdu.rb'
|
126
266
|
|
127
|
-
# Offense count:
|
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
|
267
|
+
# Offense count: 33
|
147
268
|
# Cop supports --auto-correct.
|
148
269
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
149
270
|
# SupportedStyles: always, conditionals
|
@@ -155,7 +276,6 @@ Style/AndOr:
|
|
155
276
|
- 'lib/net/ldap/dataset.rb'
|
156
277
|
- 'lib/net/ldap/filter.rb'
|
157
278
|
- 'lib/net/ldap/pdu.rb'
|
158
|
-
- 'testserver/ldapserver.rb'
|
159
279
|
|
160
280
|
# Offense count: 1
|
161
281
|
# Cop supports --auto-correct.
|
@@ -171,7 +291,7 @@ Style/BlockComments:
|
|
171
291
|
Exclude:
|
172
292
|
- 'test/test_rename.rb'
|
173
293
|
|
174
|
-
# Offense count:
|
294
|
+
# Offense count: 2
|
175
295
|
# Cop supports --auto-correct.
|
176
296
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
177
297
|
# SupportedStyles: braces, no_braces, context_dependent
|
@@ -179,15 +299,6 @@ Style/BracesAroundHashParameters:
|
|
179
299
|
Exclude:
|
180
300
|
- 'lib/net/ldap/auth_adapter/gss_spnego.rb'
|
181
301
|
- '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
302
|
|
192
303
|
# Offense count: 4
|
193
304
|
# Cop supports --auto-correct.
|
@@ -216,13 +327,6 @@ Style/ClassCheck:
|
|
216
327
|
- 'lib/net/ber/core_ext/array.rb'
|
217
328
|
- 'lib/net/ldap/error.rb'
|
218
329
|
|
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
330
|
# Offense count: 1
|
227
331
|
# Cop supports --auto-correct.
|
228
332
|
# Configuration parameters: Keywords.
|
@@ -233,13 +337,13 @@ Style/CommentAnnotation:
|
|
233
337
|
|
234
338
|
# Offense count: 1
|
235
339
|
# Cop supports --auto-correct.
|
236
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly.
|
340
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
237
341
|
# SupportedStyles: assign_to_condition, assign_inside_condition
|
238
342
|
Style/ConditionalAssignment:
|
239
343
|
Exclude:
|
240
344
|
- 'lib/net/ldap/dn.rb'
|
241
345
|
|
242
|
-
# Offense count:
|
346
|
+
# Offense count: 87
|
243
347
|
Style/ConstantName:
|
244
348
|
Exclude:
|
245
349
|
- 'lib/net/ldap.rb'
|
@@ -268,53 +372,13 @@ Style/Documentation:
|
|
268
372
|
- 'lib/net/snmp.rb'
|
269
373
|
- 'testserver/ldapserver.rb'
|
270
374
|
|
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
375
|
# Offense count: 1
|
281
376
|
# 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
377
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
314
|
-
# SupportedStyles:
|
315
|
-
Style/
|
378
|
+
# SupportedStyles: compact, expanded
|
379
|
+
Style/EmptyMethod:
|
316
380
|
Exclude:
|
317
|
-
- '
|
381
|
+
- 'test/test_auth_adapter.rb'
|
318
382
|
|
319
383
|
# Offense count: 3
|
320
384
|
# Cop supports --auto-correct.
|
@@ -323,7 +387,8 @@ Style/EvenOdd:
|
|
323
387
|
- 'lib/net/ldap/dn.rb'
|
324
388
|
|
325
389
|
# Offense count: 1
|
326
|
-
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts.
|
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
|
327
392
|
Style/FileName:
|
328
393
|
Exclude:
|
329
394
|
- 'lib/net-ldap.rb'
|
@@ -334,10 +399,16 @@ Style/GlobalVars:
|
|
334
399
|
Exclude:
|
335
400
|
- 'testserver/ldapserver.rb'
|
336
401
|
|
337
|
-
# Offense count:
|
402
|
+
# Offense count: 2
|
403
|
+
# Configuration parameters: MinBodyLength.
|
404
|
+
Style/GuardClause:
|
405
|
+
Exclude:
|
406
|
+
- 'lib/net/ldap/filter.rb'
|
407
|
+
|
408
|
+
# Offense count: 159
|
338
409
|
# Cop supports --auto-correct.
|
339
410
|
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
340
|
-
# SupportedStyles: ruby19,
|
411
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
341
412
|
Style/HashSyntax:
|
342
413
|
Exclude:
|
343
414
|
- 'lib/net/ber.rb'
|
@@ -347,7 +418,6 @@ Style/HashSyntax:
|
|
347
418
|
- 'lib/net/ldap/connection.rb'
|
348
419
|
- 'lib/net/ldap/pdu.rb'
|
349
420
|
- 'lib/net/snmp.rb'
|
350
|
-
- 'test/integration/test_bind.rb'
|
351
421
|
- 'test/test_auth_adapter.rb'
|
352
422
|
- 'test/test_ldap.rb'
|
353
423
|
- 'test/test_ldap_connection.rb'
|
@@ -360,7 +430,7 @@ Style/IfInsideElse:
|
|
360
430
|
Exclude:
|
361
431
|
- 'lib/net/ldap/instrumentation.rb'
|
362
432
|
|
363
|
-
# Offense count:
|
433
|
+
# Offense count: 6
|
364
434
|
# Cop supports --auto-correct.
|
365
435
|
# Configuration parameters: MaxLineLength.
|
366
436
|
Style/IfUnlessModifier:
|
@@ -370,40 +440,6 @@ Style/IfUnlessModifier:
|
|
370
440
|
- 'lib/net/ldap.rb'
|
371
441
|
- 'lib/net/ldap/filter.rb'
|
372
442
|
- '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
443
|
|
408
444
|
# Offense count: 21
|
409
445
|
# Cop supports --auto-correct.
|
@@ -422,37 +458,13 @@ Style/MethodMissing:
|
|
422
458
|
- 'lib/net/ldap/dn.rb'
|
423
459
|
- 'lib/net/ldap/entry.rb'
|
424
460
|
|
425
|
-
# Offense count:
|
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
|
461
|
+
# Offense count: 2
|
443
462
|
# Cop supports --auto-correct.
|
444
|
-
|
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:
|
463
|
+
Style/MultilineIfModifier:
|
452
464
|
Exclude:
|
453
465
|
- 'lib/net/ldap/connection.rb'
|
454
466
|
|
455
|
-
# Offense count:
|
467
|
+
# Offense count: 25
|
456
468
|
# Cop supports --auto-correct.
|
457
469
|
Style/MutableConstant:
|
458
470
|
Exclude:
|
@@ -463,12 +475,13 @@ Style/MutableConstant:
|
|
463
475
|
- 'lib/net/ldap/filter.rb'
|
464
476
|
- 'lib/net/ldap/version.rb'
|
465
477
|
- 'lib/net/snmp.rb'
|
466
|
-
- 'test/support/vm/openldap/Vagrantfile'
|
467
478
|
- 'test/test_ldif.rb'
|
468
479
|
- 'testserver/ldapserver.rb'
|
469
480
|
|
470
481
|
# Offense count: 1
|
471
482
|
# Cop supports --auto-correct.
|
483
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
484
|
+
# SupportedStyles: both, prefix, postfix
|
472
485
|
Style/NegatedIf:
|
473
486
|
Exclude:
|
474
487
|
- 'test/test_helper.rb'
|
@@ -509,15 +522,17 @@ Style/Not:
|
|
509
522
|
|
510
523
|
# Offense count: 11
|
511
524
|
# Cop supports --auto-correct.
|
525
|
+
# Configuration parameters: Strict.
|
512
526
|
Style/NumericLiterals:
|
513
527
|
MinDigits: 8
|
514
528
|
|
515
|
-
# Offense count:
|
529
|
+
# Offense count: 3
|
516
530
|
# Cop supports --auto-correct.
|
517
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
531
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle, SupportedStyles.
|
518
532
|
# SupportedStyles: predicate, comparison
|
519
533
|
Style/NumericPredicate:
|
520
534
|
Exclude:
|
535
|
+
- 'spec/**/*'
|
521
536
|
- 'lib/net/ber/core_ext/integer.rb'
|
522
537
|
- 'lib/net/ldap/dn.rb'
|
523
538
|
- 'testserver/ldapserver.rb'
|
@@ -537,13 +552,18 @@ Style/ParenthesesAroundCondition:
|
|
537
552
|
- 'lib/net/ldap/auth_adapter/sasl.rb'
|
538
553
|
- 'lib/net/ldap/auth_adapter/simple.rb'
|
539
554
|
|
540
|
-
# Offense count:
|
555
|
+
# Offense count: 11
|
541
556
|
# Cop supports --auto-correct.
|
542
557
|
# Configuration parameters: PreferredDelimiters.
|
543
558
|
Style/PercentLiteralDelimiters:
|
544
559
|
Exclude:
|
545
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'
|
546
565
|
- 'test/test_entry.rb'
|
566
|
+
- 'test/test_helper.rb'
|
547
567
|
|
548
568
|
# Offense count: 11
|
549
569
|
# Cop supports --auto-correct.
|
@@ -576,7 +596,7 @@ Style/RedundantParentheses:
|
|
576
596
|
- 'lib/net/ldap/filter.rb'
|
577
597
|
- 'test/test_filter.rb'
|
578
598
|
|
579
|
-
# Offense count:
|
599
|
+
# Offense count: 3
|
580
600
|
# Cop supports --auto-correct.
|
581
601
|
# Configuration parameters: AllowMultipleReturnValues.
|
582
602
|
Style/RedundantReturn:
|
@@ -584,7 +604,6 @@ Style/RedundantReturn:
|
|
584
604
|
- 'lib/net/ber/core_ext/string.rb'
|
585
605
|
- 'lib/net/ldap/auth_adapter.rb'
|
586
606
|
- 'lib/net/ldap/entry.rb'
|
587
|
-
- 'lib/net/ldap/password.rb'
|
588
607
|
|
589
608
|
# Offense count: 8
|
590
609
|
# Cop supports --auto-correct.
|
@@ -619,69 +638,6 @@ Style/Semicolon:
|
|
619
638
|
- 'lib/net/ldap/error.rb'
|
620
639
|
- 'testserver/ldapserver.rb'
|
621
640
|
|
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
641
|
# Offense count: 5
|
686
642
|
# Cop supports --auto-correct.
|
687
643
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
@@ -692,7 +648,7 @@ Style/SpecialGlobalVars:
|
|
692
648
|
- 'net-ldap.gemspec'
|
693
649
|
- 'testserver/ldapserver.rb'
|
694
650
|
|
695
|
-
# Offense count:
|
651
|
+
# Offense count: 656
|
696
652
|
# Cop supports --auto-correct.
|
697
653
|
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
698
654
|
# SupportedStyles: single_quotes, double_quotes
|
@@ -704,10 +660,17 @@ Style/StructInheritance:
|
|
704
660
|
Exclude:
|
705
661
|
- 'test/test_ldap.rb'
|
706
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
|
+
|
707
670
|
# Offense count: 4
|
708
671
|
# Cop supports --auto-correct.
|
709
672
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowSafeAssignment.
|
710
|
-
# SupportedStyles: require_parentheses, require_no_parentheses
|
673
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
711
674
|
Style/TernaryParentheses:
|
712
675
|
Exclude:
|
713
676
|
- 'lib/net/ber/core_ext/integer.rb'
|
@@ -744,6 +707,13 @@ Style/WordArray:
|
|
744
707
|
EnforcedStyle: percent
|
745
708
|
MinSize: 3
|
746
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
|
+
|
747
717
|
# Offense count: 6
|
748
718
|
# Cop supports --auto-correct.
|
749
719
|
Style/ZeroLengthPredicate:
|