net-ldap 0.14.0 → 0.16.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +1 -0
- data/.rubocop.yml +5 -2
- data/.rubocop_todo.yml +343 -219
- data/.travis.yml +27 -3
- data/CONTRIBUTING.md +1 -1
- data/History.rdoc +21 -0
- data/README.rdoc +10 -7
- data/Rakefile +1 -1
- data/lib/net-ldap.rb +1 -1
- data/lib/net/ber.rb +5 -6
- data/lib/net/ber/ber_parser.rb +3 -3
- data/lib/net/ber/core_ext.rb +6 -6
- data/lib/net/ldap.rb +65 -55
- data/lib/net/ldap/auth_adapter/gss_spnego.rb +2 -2
- data/lib/net/ldap/auth_adapter/sasl.rb +4 -2
- data/lib/net/ldap/auth_adapter/simple.rb +1 -1
- data/lib/net/ldap/connection.rb +58 -35
- data/lib/net/ldap/dataset.rb +2 -2
- data/lib/net/ldap/dn.rb +13 -14
- data/lib/net/ldap/entry.rb +5 -6
- data/lib/net/ldap/error.rb +1 -0
- data/lib/net/ldap/filter.rb +10 -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/script/ldap-docker +12 -0
- data/test/ber/test_ber.rb +1 -1
- data/test/fixtures/ca/docker-ca.pem +18 -0
- data/test/fixtures/{openldap/retcode.ldif → ldif/06-retcode.ldif} +7 -8
- data/test/fixtures/ldif/50-seed.ldif +374 -0
- data/test/integration/test_add.rb +1 -3
- data/test/integration/test_ber.rb +2 -2
- data/test/integration/test_bind.rb +193 -14
- data/test/integration/test_delete.rb +1 -3
- data/test/integration/test_open.rb +10 -11
- data/test/integration/test_password_modify.rb +29 -16
- data/test/integration/test_return_codes.rb +12 -4
- data/test/integration/test_search.rb +8 -8
- 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 +12 -5
- data/test/test_ldap.rb +5 -5
- data/test/test_ldap_connection.rb +47 -35
- data/test/test_ldif.rb +13 -13
- 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 +17 -26
- data/script/install-openldap +0 -115
- data/test/fixtures/cacert.pem +0 -20
- data/test/fixtures/openldap/memberof.ldif +0 -33
- data/test/fixtures/openldap/slapd.conf.ldif +0 -67
- data/test/fixtures/seed.ldif +0 -374
- data/test/support/vm/openldap/README.md +0 -32
- data/test/support/vm/openldap/Vagrantfile +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
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/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
@@ -4,7 +4,7 @@ AllCops:
|
|
4
4
|
Exclude:
|
5
5
|
- 'pkg/**/*'
|
6
6
|
|
7
|
-
|
7
|
+
Layout/ExtraSpacing:
|
8
8
|
Enabled: false
|
9
9
|
|
10
10
|
Lint/AssignmentInCondition:
|
@@ -13,5 +13,8 @@ Lint/AssignmentInCondition:
|
|
13
13
|
Style/ParallelAssignment:
|
14
14
|
Enabled: false
|
15
15
|
|
16
|
-
Style/
|
16
|
+
Style/TrailingCommaInLiteral:
|
17
|
+
EnforcedStyleForMultiline: comma
|
18
|
+
|
19
|
+
Style/TrailingCommaInArguments:
|
17
20
|
EnforcedStyleForMultiline: comma
|
data/.rubocop_todo.yml
CHANGED
@@ -1,55 +1,204 @@
|
|
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
|
+
|
9
25
|
# Offense count: 1
|
10
26
|
# Cop supports --auto-correct.
|
11
|
-
|
12
|
-
|
13
|
-
|
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'
|
14
39
|
|
15
40
|
# Offense count: 1
|
16
|
-
|
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:
|
17
57
|
Exclude:
|
18
58
|
- 'lib/net/ldap/connection.rb'
|
19
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
|
+
|
20
91
|
# Offense count: 1
|
21
|
-
|
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:
|
22
148
|
Exclude:
|
23
149
|
- 'lib/net/ldap/pdu.rb'
|
24
150
|
|
25
151
|
# Offense count: 1
|
26
|
-
|
152
|
+
# Cop supports --auto-correct.
|
153
|
+
# Configuration parameters: EnforcedStyleAlignWith, SupportedStylesAlignWith, AutoCorrect.
|
154
|
+
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
155
|
+
Lint/EndAlignment:
|
27
156
|
Exclude:
|
28
|
-
- '
|
157
|
+
- 'testserver/ldapserver.rb'
|
29
158
|
|
30
|
-
# Offense count:
|
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
|
31
175
|
# Cop supports --auto-correct.
|
32
|
-
# Configuration parameters: IgnoreEmptyBlocks.
|
176
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
33
177
|
Lint/UnusedBlockArgument:
|
34
178
|
Exclude:
|
35
179
|
- 'lib/net/ldap.rb'
|
36
180
|
- 'lib/net/snmp.rb'
|
37
|
-
- 'test/support/vm/openldap/Vagrantfile'
|
38
181
|
|
39
|
-
# Offense count:
|
182
|
+
# Offense count: 7
|
40
183
|
# Cop supports --auto-correct.
|
41
184
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
42
185
|
Lint/UnusedMethodArgument:
|
43
186
|
Exclude:
|
44
187
|
- 'lib/net/ldap/entry.rb'
|
45
188
|
- 'lib/net/ldap/pdu.rb'
|
189
|
+
- 'test/test_ldap.rb'
|
190
|
+
- 'test/test_ldap_connection.rb'
|
46
191
|
- 'test/test_search.rb'
|
47
192
|
|
48
|
-
# Offense count:
|
49
|
-
|
193
|
+
# Offense count: 1
|
194
|
+
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
195
|
+
Lint/UselessAccessModifier:
|
50
196
|
Exclude:
|
51
197
|
- 'lib/net/ldap/connection.rb'
|
52
|
-
|
198
|
+
|
199
|
+
# Offense count: 6
|
200
|
+
Lint/UselessAssignment:
|
201
|
+
Exclude:
|
53
202
|
- 'test/integration/test_add.rb'
|
54
203
|
- 'test/test_ldap_connection.rb'
|
55
204
|
- 'test/test_search.rb'
|
@@ -57,66 +206,68 @@ Lint/UselessAssignment:
|
|
57
206
|
|
58
207
|
# Offense count: 48
|
59
208
|
Metrics/AbcSize:
|
60
|
-
Max:
|
209
|
+
Max: 116
|
210
|
+
|
211
|
+
# Offense count: 4
|
212
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
213
|
+
Metrics/BlockLength:
|
214
|
+
Max: 119
|
61
215
|
|
62
216
|
# Offense count: 11
|
217
|
+
# Configuration parameters: CountBlocks.
|
63
218
|
Metrics/BlockNesting:
|
64
219
|
Max: 4
|
65
220
|
|
66
|
-
# Offense count:
|
221
|
+
# Offense count: 11
|
67
222
|
# Configuration parameters: CountComments.
|
68
223
|
Metrics/ClassLength:
|
69
|
-
Max:
|
224
|
+
Max: 429
|
70
225
|
|
71
|
-
# Offense count:
|
226
|
+
# Offense count: 23
|
72
227
|
Metrics/CyclomaticComplexity:
|
73
228
|
Max: 41
|
74
229
|
|
75
|
-
# Offense count:
|
76
|
-
# Configuration parameters: AllowURI, URISchemes.
|
230
|
+
# Offense count: 216
|
231
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
232
|
+
# URISchemes: http, https
|
77
233
|
Metrics/LineLength:
|
78
234
|
Max: 360
|
79
235
|
|
80
|
-
# Offense count:
|
236
|
+
# Offense count: 74
|
81
237
|
# Configuration parameters: CountComments.
|
82
238
|
Metrics/MethodLength:
|
83
|
-
Max:
|
239
|
+
Max: 128
|
84
240
|
|
85
241
|
# Offense count: 1
|
86
242
|
# Configuration parameters: CountComments.
|
87
243
|
Metrics/ModuleLength:
|
88
|
-
Max:
|
244
|
+
Max: 103
|
89
245
|
|
90
|
-
# Offense count:
|
246
|
+
# Offense count: 15
|
91
247
|
Metrics/PerceivedComplexity:
|
92
|
-
Max:
|
248
|
+
Max: 38
|
93
249
|
|
94
250
|
# Offense count: 1
|
95
251
|
Style/AccessorMethodName:
|
96
252
|
Exclude:
|
97
253
|
- 'lib/net/ldap.rb'
|
98
254
|
|
99
|
-
# Offense count: 4
|
100
|
-
# Cop supports --auto-correct.
|
101
|
-
Style/AlignArray:
|
102
|
-
Exclude:
|
103
|
-
- 'lib/net/ldap.rb'
|
104
|
-
- 'lib/net/ldap/auth_adapter/sasl.rb'
|
105
|
-
- 'lib/net/ldap/connection.rb'
|
106
|
-
|
107
255
|
# Offense count: 10
|
108
256
|
# Cop supports --auto-correct.
|
109
257
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
110
|
-
|
258
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
259
|
+
Style/Alias:
|
111
260
|
Exclude:
|
112
|
-
- '
|
113
|
-
- '
|
114
|
-
- '
|
115
|
-
- '
|
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'
|
116
266
|
|
117
|
-
# Offense count:
|
267
|
+
# Offense count: 33
|
118
268
|
# Cop supports --auto-correct.
|
119
269
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
270
|
+
# SupportedStyles: always, conditionals
|
120
271
|
Style/AndOr:
|
121
272
|
Exclude:
|
122
273
|
- 'lib/net/ber/ber_parser.rb'
|
@@ -125,11 +276,11 @@ Style/AndOr:
|
|
125
276
|
- 'lib/net/ldap/dataset.rb'
|
126
277
|
- 'lib/net/ldap/filter.rb'
|
127
278
|
- 'lib/net/ldap/pdu.rb'
|
128
|
-
- 'testserver/ldapserver.rb'
|
129
279
|
|
130
280
|
# Offense count: 1
|
131
281
|
# Cop supports --auto-correct.
|
132
282
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
283
|
+
# SupportedStyles: percent_q, bare_percent
|
133
284
|
Style/BarePercentLiterals:
|
134
285
|
Exclude:
|
135
286
|
- 'test/test_entry.rb'
|
@@ -140,21 +291,14 @@ Style/BlockComments:
|
|
140
291
|
Exclude:
|
141
292
|
- 'test/test_rename.rb'
|
142
293
|
|
143
|
-
# Offense count:
|
294
|
+
# Offense count: 2
|
144
295
|
# Cop supports --auto-correct.
|
145
296
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
297
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
146
298
|
Style/BracesAroundHashParameters:
|
147
299
|
Exclude:
|
148
300
|
- 'lib/net/ldap/auth_adapter/gss_spnego.rb'
|
149
301
|
- 'lib/net/snmp.rb'
|
150
|
-
- 'test/test_auth_adapter.rb'
|
151
|
-
- 'test/test_ldap_connection.rb'
|
152
|
-
|
153
|
-
# Offense count: 4
|
154
|
-
# Cop supports --auto-correct.
|
155
|
-
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep.
|
156
|
-
Style/CaseIndentation:
|
157
|
-
Enabled: false
|
158
302
|
|
159
303
|
# Offense count: 4
|
160
304
|
# Cop supports --auto-correct.
|
@@ -170,32 +314,36 @@ Style/ClassAndModuleCamelCase:
|
|
170
314
|
|
171
315
|
# Offense count: 23
|
172
316
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
317
|
+
# SupportedStyles: nested, compact
|
173
318
|
Style/ClassAndModuleChildren:
|
174
319
|
Enabled: false
|
175
320
|
|
176
321
|
# Offense count: 2
|
177
322
|
# Cop supports --auto-correct.
|
178
323
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
324
|
+
# SupportedStyles: is_a?, kind_of?
|
179
325
|
Style/ClassCheck:
|
180
326
|
Exclude:
|
181
327
|
- 'lib/net/ber/core_ext/array.rb'
|
182
328
|
- 'lib/net/ldap/error.rb'
|
183
329
|
|
184
|
-
# Offense count: 13
|
185
|
-
# Cop supports --auto-correct.
|
186
|
-
Style/ColonMethodCall:
|
187
|
-
Exclude:
|
188
|
-
- 'test/test_ldif.rb'
|
189
|
-
- 'test/test_ssl_ber.rb'
|
190
|
-
|
191
330
|
# Offense count: 1
|
192
331
|
# Cop supports --auto-correct.
|
193
332
|
# Configuration parameters: Keywords.
|
333
|
+
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
|
194
334
|
Style/CommentAnnotation:
|
195
335
|
Exclude:
|
196
336
|
- 'lib/net/ber.rb'
|
197
337
|
|
198
|
-
# Offense count:
|
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
|
199
347
|
Style/ConstantName:
|
200
348
|
Exclude:
|
201
349
|
- 'lib/net/ldap.rb'
|
@@ -206,13 +354,11 @@ Style/ConstantName:
|
|
206
354
|
- 'test/test_ldif.rb'
|
207
355
|
- 'testserver/ldapserver.rb'
|
208
356
|
|
209
|
-
# Offense count:
|
210
|
-
# Configuration parameters: Exclude.
|
357
|
+
# Offense count: 17
|
211
358
|
Style/Documentation:
|
212
359
|
Exclude:
|
213
360
|
- 'spec/**/*'
|
214
361
|
- 'test/**/*'
|
215
|
-
- 'lib/net/ber.rb'
|
216
362
|
- 'lib/net/ber/core_ext.rb'
|
217
363
|
- 'lib/net/ldap.rb'
|
218
364
|
- 'lib/net/ldap/auth_adapter.rb'
|
@@ -223,51 +369,16 @@ Style/Documentation:
|
|
223
369
|
- 'lib/net/ldap/instrumentation.rb'
|
224
370
|
- 'lib/net/ldap/password.rb'
|
225
371
|
- 'lib/net/ldap/pdu.rb'
|
226
|
-
- 'lib/net/ldap/version.rb'
|
227
|
-
- 'lib/net/snmp.rb'
|
228
|
-
- 'testserver/ldapserver.rb'
|
229
|
-
|
230
|
-
# Offense count: 23
|
231
|
-
# Cop supports --auto-correct.
|
232
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
233
|
-
Style/DotPosition:
|
234
|
-
Enabled: false
|
235
|
-
|
236
|
-
# Offense count: 1
|
237
|
-
# Cop supports --auto-correct.
|
238
|
-
Style/ElseAlignment:
|
239
|
-
Exclude:
|
240
|
-
- 'testserver/ldapserver.rb'
|
241
|
-
|
242
|
-
# Offense count: 5
|
243
|
-
# Cop supports --auto-correct.
|
244
|
-
# Configuration parameters: AllowAdjacentOneLineDefs.
|
245
|
-
Style/EmptyLineBetweenDefs:
|
246
|
-
Exclude:
|
247
|
-
- 'lib/net/ldap.rb'
|
248
|
-
- 'lib/net/ldap/dataset.rb'
|
249
|
-
- 'lib/net/snmp.rb'
|
250
|
-
|
251
|
-
# Offense count: 8
|
252
|
-
# Cop supports --auto-correct.
|
253
|
-
Style/EmptyLines:
|
254
|
-
Exclude:
|
255
372
|
- 'lib/net/snmp.rb'
|
256
373
|
- 'testserver/ldapserver.rb'
|
257
374
|
|
258
375
|
# Offense count: 1
|
259
376
|
# Cop supports --auto-correct.
|
260
377
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
261
|
-
|
262
|
-
|
263
|
-
- 'test/test_snmp.rb'
|
264
|
-
|
265
|
-
# Offense count: 2
|
266
|
-
# Cop supports --auto-correct.
|
267
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
268
|
-
Style/EmptyLinesAroundModuleBody:
|
378
|
+
# SupportedStyles: compact, expanded
|
379
|
+
Style/EmptyMethod:
|
269
380
|
Exclude:
|
270
|
-
- '
|
381
|
+
- 'test/test_auth_adapter.rb'
|
271
382
|
|
272
383
|
# Offense count: 3
|
273
384
|
# Cop supports --auto-correct.
|
@@ -276,7 +387,8 @@ Style/EvenOdd:
|
|
276
387
|
- 'lib/net/ldap/dn.rb'
|
277
388
|
|
278
389
|
# Offense count: 1
|
279
|
-
# Configuration parameters:
|
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
|
280
392
|
Style/FileName:
|
281
393
|
Exclude:
|
282
394
|
- 'lib/net-ldap.rb'
|
@@ -287,21 +399,38 @@ Style/GlobalVars:
|
|
287
399
|
Exclude:
|
288
400
|
- 'testserver/ldapserver.rb'
|
289
401
|
|
290
|
-
# Offense count:
|
402
|
+
# Offense count: 2
|
291
403
|
# Configuration parameters: MinBodyLength.
|
292
404
|
Style/GuardClause:
|
293
405
|
Exclude:
|
294
|
-
- 'lib/net/ber.rb'
|
295
|
-
- 'lib/net/ldap/entry.rb'
|
296
406
|
- 'lib/net/ldap/filter.rb'
|
297
407
|
|
298
|
-
# Offense count:
|
408
|
+
# Offense count: 159
|
299
409
|
# Cop supports --auto-correct.
|
300
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues.
|
410
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
411
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
301
412
|
Style/HashSyntax:
|
302
|
-
|
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'
|
303
427
|
|
304
|
-
# Offense count:
|
428
|
+
# Offense count: 1
|
429
|
+
Style/IfInsideElse:
|
430
|
+
Exclude:
|
431
|
+
- 'lib/net/ldap/instrumentation.rb'
|
432
|
+
|
433
|
+
# Offense count: 6
|
305
434
|
# Cop supports --auto-correct.
|
306
435
|
# Configuration parameters: MaxLineLength.
|
307
436
|
Style/IfUnlessModifier:
|
@@ -312,55 +441,47 @@ Style/IfUnlessModifier:
|
|
312
441
|
- 'lib/net/ldap/filter.rb'
|
313
442
|
- 'lib/net/snmp.rb'
|
314
443
|
|
315
|
-
# Offense count:
|
316
|
-
# Cop supports --auto-correct.
|
317
|
-
# Configuration parameters: SupportedStyles.
|
318
|
-
Style/IndentHash:
|
319
|
-
EnforcedStyle: consistent
|
320
|
-
|
321
|
-
# Offense count: 10
|
444
|
+
# Offense count: 21
|
322
445
|
# Cop supports --auto-correct.
|
323
|
-
# Configuration parameters:
|
324
|
-
|
446
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
447
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
|
448
|
+
Style/MethodDefParentheses:
|
325
449
|
Exclude:
|
326
450
|
- 'lib/net/ber.rb'
|
327
|
-
- 'lib/net/ldap/
|
451
|
+
- 'lib/net/ldap/pdu.rb'
|
328
452
|
- 'lib/net/snmp.rb'
|
329
|
-
- 'test/test_snmp.rb'
|
330
453
|
- 'testserver/ldapserver.rb'
|
331
454
|
|
332
|
-
# Offense count:
|
333
|
-
|
334
|
-
Style/LeadingCommentSpace:
|
455
|
+
# Offense count: 2
|
456
|
+
Style/MethodMissing:
|
335
457
|
Exclude:
|
336
|
-
- 'lib/net/
|
337
|
-
- 'lib/net/ldap.rb'
|
338
|
-
- 'lib/net/ldap/connection.rb'
|
458
|
+
- 'lib/net/ldap/dn.rb'
|
459
|
+
- 'lib/net/ldap/entry.rb'
|
339
460
|
|
340
|
-
# Offense count:
|
461
|
+
# Offense count: 2
|
341
462
|
# Cop supports --auto-correct.
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
# Offense count: 1
|
347
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
348
|
-
Style/MethodName:
|
349
|
-
Enabled: false
|
463
|
+
Style/MultilineIfModifier:
|
464
|
+
Exclude:
|
465
|
+
- 'lib/net/ldap/connection.rb'
|
350
466
|
|
351
|
-
# Offense count:
|
467
|
+
# Offense count: 25
|
352
468
|
# Cop supports --auto-correct.
|
353
|
-
|
354
|
-
Style/MultilineOperationIndentation:
|
355
|
-
Enabled: false
|
356
|
-
|
357
|
-
# Offense count: 1
|
358
|
-
Style/MultilineTernaryOperator:
|
469
|
+
Style/MutableConstant:
|
359
470
|
Exclude:
|
471
|
+
- 'lib/net/ber.rb'
|
472
|
+
- 'lib/net/ldap.rb'
|
360
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'
|
361
480
|
|
362
481
|
# Offense count: 1
|
363
482
|
# Cop supports --auto-correct.
|
483
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
484
|
+
# SupportedStyles: both, prefix, postfix
|
364
485
|
Style/NegatedIf:
|
365
486
|
Exclude:
|
366
487
|
- 'test/test_helper.rb'
|
@@ -374,6 +495,7 @@ Style/NegatedWhile:
|
|
374
495
|
# Offense count: 3
|
375
496
|
# Cop supports --auto-correct.
|
376
497
|
# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles.
|
498
|
+
# SupportedStyles: skip_modifier_ifs, always
|
377
499
|
Style/Next:
|
378
500
|
Exclude:
|
379
501
|
- 'lib/net/ldap/connection.rb'
|
@@ -400,9 +522,21 @@ Style/Not:
|
|
400
522
|
|
401
523
|
# Offense count: 11
|
402
524
|
# Cop supports --auto-correct.
|
525
|
+
# Configuration parameters: Strict.
|
403
526
|
Style/NumericLiterals:
|
404
527
|
MinDigits: 8
|
405
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
|
+
|
406
540
|
# Offense count: 3
|
407
541
|
Style/OpMethod:
|
408
542
|
Exclude:
|
@@ -418,13 +552,18 @@ Style/ParenthesesAroundCondition:
|
|
418
552
|
- 'lib/net/ldap/auth_adapter/sasl.rb'
|
419
553
|
- 'lib/net/ldap/auth_adapter/simple.rb'
|
420
554
|
|
421
|
-
# Offense count:
|
555
|
+
# Offense count: 11
|
422
556
|
# Cop supports --auto-correct.
|
423
557
|
# Configuration parameters: PreferredDelimiters.
|
424
558
|
Style/PercentLiteralDelimiters:
|
425
559
|
Exclude:
|
426
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'
|
427
565
|
- 'test/test_entry.rb'
|
566
|
+
- 'test/test_helper.rb'
|
428
567
|
|
429
568
|
# Offense count: 11
|
430
569
|
# Cop supports --auto-correct.
|
@@ -435,9 +574,14 @@ Style/PerlBackrefs:
|
|
435
574
|
- 'testserver/ldapserver.rb'
|
436
575
|
|
437
576
|
# Offense count: 10
|
577
|
+
# Cop supports --auto-correct.
|
438
578
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
579
|
+
# SupportedStyles: compact, exploded
|
439
580
|
Style/RaiseArgs:
|
440
|
-
|
581
|
+
Exclude:
|
582
|
+
- 'lib/net/ldap/connection.rb'
|
583
|
+
- 'lib/net/ldap/pdu.rb'
|
584
|
+
- 'lib/net/snmp.rb'
|
441
585
|
|
442
586
|
# Offense count: 1
|
443
587
|
# Cop supports --auto-correct.
|
@@ -447,15 +591,21 @@ Style/RedundantBegin:
|
|
447
591
|
|
448
592
|
# Offense count: 4
|
449
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.
|
450
601
|
# Configuration parameters: AllowMultipleReturnValues.
|
451
602
|
Style/RedundantReturn:
|
452
603
|
Exclude:
|
453
604
|
- 'lib/net/ber/core_ext/string.rb'
|
454
605
|
- 'lib/net/ldap/auth_adapter.rb'
|
455
606
|
- 'lib/net/ldap/entry.rb'
|
456
|
-
- 'lib/net/ldap/password.rb'
|
457
607
|
|
458
|
-
# Offense count:
|
608
|
+
# Offense count: 8
|
459
609
|
# Cop supports --auto-correct.
|
460
610
|
Style/RedundantSelf:
|
461
611
|
Exclude:
|
@@ -467,6 +617,7 @@ Style/RedundantSelf:
|
|
467
617
|
# Offense count: 2
|
468
618
|
# Cop supports --auto-correct.
|
469
619
|
# Configuration parameters: EnforcedStyle, SupportedStyles, AllowInnerSlashes.
|
620
|
+
# SupportedStyles: slashes, percent_r, mixed
|
470
621
|
Style/RegexpLiteral:
|
471
622
|
Exclude:
|
472
623
|
- 'lib/net/ldap/filter.rb'
|
@@ -487,96 +638,52 @@ Style/Semicolon:
|
|
487
638
|
- 'lib/net/ldap/error.rb'
|
488
639
|
- 'testserver/ldapserver.rb'
|
489
640
|
|
490
|
-
# Offense count:
|
641
|
+
# Offense count: 5
|
491
642
|
# Cop supports --auto-correct.
|
492
643
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
493
|
-
|
644
|
+
# SupportedStyles: use_perl_names, use_english_names
|
645
|
+
Style/SpecialGlobalVars:
|
494
646
|
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
647
|
- 'lib/net/snmp.rb'
|
648
|
+
- 'net-ldap.gemspec'
|
649
|
+
- 'testserver/ldapserver.rb'
|
509
650
|
|
510
|
-
# Offense count:
|
511
|
-
# Configuration parameters: Methods.
|
512
|
-
Style/SingleLineBlockParams:
|
513
|
-
Exclude:
|
514
|
-
- 'lib/net/ldap/filter.rb'
|
515
|
-
|
516
|
-
# Offense count: 2
|
517
|
-
# Cop supports --auto-correct.
|
518
|
-
Style/SingleSpaceBeforeFirstArg:
|
519
|
-
Exclude:
|
520
|
-
- 'lib/net/ldap/dataset.rb'
|
521
|
-
- 'lib/net/ldap/instrumentation.rb'
|
522
|
-
|
523
|
-
# Offense count: 2
|
651
|
+
# Offense count: 656
|
524
652
|
# Cop supports --auto-correct.
|
525
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
526
|
-
|
653
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
654
|
+
# SupportedStyles: single_quotes, double_quotes
|
655
|
+
Style/StringLiterals:
|
527
656
|
Enabled: false
|
528
657
|
|
529
|
-
# Offense count:
|
530
|
-
|
531
|
-
# Configuration parameters: MultiSpaceAllowedForOperators.
|
532
|
-
Style/SpaceAroundOperators:
|
658
|
+
# Offense count: 1
|
659
|
+
Style/StructInheritance:
|
533
660
|
Exclude:
|
534
|
-
- '
|
535
|
-
- 'lib/net/ldap/entry.rb'
|
536
|
-
- 'lib/net/ldap/filter.rb'
|
537
|
-
- 'test/test_entry.rb'
|
538
|
-
- 'test/test_ldap_connection.rb'
|
661
|
+
- 'test/test_ldap.rb'
|
539
662
|
|
540
|
-
# Offense count:
|
663
|
+
# Offense count: 11
|
541
664
|
# Cop supports --auto-correct.
|
542
|
-
# Configuration parameters:
|
543
|
-
|
544
|
-
|
665
|
+
# Configuration parameters: MinSize, SupportedStyles.
|
666
|
+
# SupportedStyles: percent, brackets
|
667
|
+
Style/SymbolArray:
|
668
|
+
EnforcedStyle: brackets
|
545
669
|
|
546
|
-
# Offense count:
|
670
|
+
# Offense count: 4
|
547
671
|
# Cop supports --auto-correct.
|
548
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles,
|
549
|
-
|
550
|
-
|
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'
|
551
679
|
|
552
680
|
# Offense count: 1
|
553
681
|
# Cop supports --auto-correct.
|
554
|
-
# Configuration parameters:
|
555
|
-
|
556
|
-
|
557
|
-
|
558
|
-
# Offense count: 20
|
559
|
-
# Cop supports --auto-correct.
|
560
|
-
Style/SpaceInsideParens:
|
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:
|
561
685
|
Exclude:
|
562
|
-
- 'lib/net/ldap/
|
563
|
-
- 'lib/net/snmp.rb'
|
564
|
-
- 'test/test_password.rb'
|
565
|
-
- 'testserver/ldapserver.rb'
|
566
|
-
|
567
|
-
# Offense count: 5
|
568
|
-
# Cop supports --auto-correct.
|
569
|
-
Style/SpecialGlobalVars:
|
570
|
-
Exclude:
|
571
|
-
- 'lib/net/snmp.rb'
|
572
|
-
- 'net-ldap.gemspec'
|
573
|
-
- 'testserver/ldapserver.rb'
|
574
|
-
|
575
|
-
# Offense count: 663
|
576
|
-
# Cop supports --auto-correct.
|
577
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
578
|
-
Style/StringLiterals:
|
579
|
-
Enabled: false
|
686
|
+
- 'lib/net/ldap/connection.rb'
|
580
687
|
|
581
688
|
# Offense count: 5
|
582
689
|
# Cop supports --auto-correct.
|
@@ -594,6 +701,23 @@ Style/WhileUntilModifier:
|
|
594
701
|
|
595
702
|
# Offense count: 1
|
596
703
|
# Cop supports --auto-correct.
|
597
|
-
# Configuration parameters: WordRegex.
|
704
|
+
# Configuration parameters: SupportedStyles, WordRegex.
|
705
|
+
# SupportedStyles: percent, brackets
|
598
706
|
Style/WordArray:
|
599
|
-
|
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'
|