Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -4,6 +4,7 @@ linters: |
| 4 | 4 |
- gofmt |
| 5 | 5 |
- goimports |
| 6 | 6 |
- golint |
| 7 |
+ - gosec |
|
| 7 | 8 |
- gosimple |
| 8 | 9 |
- govet |
| 9 | 10 |
- ineffassign |
| ... | ... |
@@ -29,3 +30,12 @@ linters: |
| 29 | 29 |
linters-settings: |
| 30 | 30 |
govet: |
| 31 | 31 |
check-shadowing: false |
| 32 |
+ |
|
| 33 |
+issues: |
|
| 34 |
+ exclude-rules: |
|
| 35 |
+ - text: "G201: SQL string formatting" |
|
| 36 |
+ linters: |
|
| 37 |
+ - gosec |
|
| 38 |
+ - text: "G202: SQL string concatenation" |
|
| 39 |
+ linters: |
|
| 40 |
+ - gosec |
| ... | ... |
@@ -84,6 +84,7 @@ http: |
| 84 | 84 |
case "htpasswd": |
| 85 | 85 |
htpasswdPath := filepath.Join(tmp, "htpasswd") |
| 86 | 86 |
// generated with: htpasswd -Bbn testuser testpassword |
| 87 |
+ // #nosec G101 |
|
| 87 | 88 |
userpasswd := "testuser:$2y$05$sBsSqk0OpSD1uTZkHXc4FeJ0Z70wLQdAX/82UiHuQOKbNbBrzs63m" |
| 88 | 89 |
username = "testuser" |
| 89 | 90 |
password = "testpassword" |