diff --git a/.golangci.yml b/.golangci.yml index d7476d56..ce5d1e7d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -2,6 +2,7 @@ linters: enable: - errcheck + - forbidigo - godot - gofmt - goimports @@ -15,6 +16,9 @@ linters: - unused linter-settings: + forbidigo: + forbid: + - 'fmt\.Print.*(# Do not commit print statements\.)?' godot: capital: true exclude: diff --git a/proc_smaps.go b/proc_smaps.go index 09060e82..475679ce 100644 --- a/proc_smaps.go +++ b/proc_smaps.go @@ -117,7 +117,6 @@ func (p Proc) procSMapsRollupManual() (ProcSMapsRollup, error) { func (s *ProcSMapsRollup) parseLine(line string) error { kv := strings.SplitN(line, ":", 2) if len(kv) != 2 { - fmt.Println(line) return errors.New("invalid net/dev line, missing colon") }