Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@@ -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:
+ - text: "G202: SQL string concatenation"
@@ -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"