golangci-lint: enable gosec linter

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-06 19:11:25 +02:00
parent d1363f5a90
commit c9553897f3
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C
2 changed files with 11 additions and 0 deletions

View file

@ -4,6 +4,7 @@ linters:
- gofmt
- goimports
- golint
- gosec
- gosimple
- govet
- ineffassign
@ -29,3 +30,12 @@ linters:
linters-settings:
govet:
check-shadowing: false
issues:
exclude-rules:
- text: "G201: SQL string formatting"
linters:
- gosec
- text: "G202: SQL string concatenation"
linters:
- gosec

View file

@ -84,6 +84,7 @@ http:
case "htpasswd":
htpasswdPath := filepath.Join(tmp, "htpasswd")
// generated with: htpasswd -Bbn testuser testpassword
// #nosec G101
userpasswd := "testuser:$2y$05$sBsSqk0OpSD1uTZkHXc4FeJ0Z70wLQdAX/82UiHuQOKbNbBrzs63m"
username = "testuser"
password = "testpassword"