golangci-lint: enable gosec linter
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
d1363f5a90
commit
c9553897f3
2 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue