Skip to content

Commit 16798da

Browse files
committed
Fix lint errors
1 parent 2860f92 commit 16798da

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.golangci.yml

-7
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ issues:
2626
- funlen
2727
- lll
2828
- forcetypeassert
29-
- path: js\/modules\/k6\/html\/.*\.go
30-
text: "exported: exported "
31-
linters:
32-
- revive
3329
- path: js\/modules\/k6\/http\/.*_test\.go
3430
linters:
3531
# k6/http module's tests are quite complex because they often have several nested levels.
@@ -80,7 +76,6 @@ linters:
8076
- errname
8177
- errorlint
8278
- exhaustive
83-
- exportloopref
8479
- fatcontext
8580
- forbidigo
8681
- forcetypeassert
@@ -91,7 +86,6 @@ linters:
9186
- goconst
9287
- gocritic
9388
- gofmt
94-
- gofumpt
9589
- goimports
9690
- gomoddirectives
9791
- goprintffuncname
@@ -115,7 +109,6 @@ linters:
115109
- prealloc
116110
- predeclared
117111
- promlinter
118-
- revive
119112
- reassign
120113
- rowserrcheck
121114
- sqlclosecheck

ldap.go

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Wraps ldap.v3 for xk6 extension
12
package ldap
23

34
import (
@@ -33,7 +34,14 @@ func (l *Ldap) NewDelRequest(dn string) *ldap.DelRequest {
3334
return ldap.NewDelRequest(dn, []ldap.Control{})
3435
}
3536

36-
func (l *Ldap) NewSearchRequest(baseDn string, scope string, sizeLimit int, timeLimit int, filter string, attributes []string) *ldap.SearchRequest {
37+
func (l *Ldap) NewSearchRequest(
38+
baseDn string,
39+
scope string,
40+
sizeLimit int,
41+
timeLimit int,
42+
filter string,
43+
attributes []string,
44+
) *ldap.SearchRequest {
3745
var _scope int
3846
switch scope {
3947
case "BaseObject":

0 commit comments

Comments
 (0)