Commit b8a795ec authored by Aaron U'Ren's avatar Aaron U'Ren
Browse files

feat(.golangci.yml): enable gochecknoinits and remediate

Showing with 2 additions and 0 deletions
+2 -0
......@@ -8,6 +8,7 @@ linters:
- dupl
- errcheck
- exportloopref
- gochecknoinits
- gofmt
- goimports
- misspell
......
......@@ -9,6 +9,7 @@ import (
var hasWait bool
//nolint:gochecknoinits // This is actually a good usage of the init() function
func init() {
path, err := exec.LookPath("iptables-restore")
if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment