diff --git a/.errcheck-exclude.cfg b/.errcheck-exclude.cfg deleted file mode 100644 index 0d69142..0000000 --- a/.errcheck-exclude.cfg +++ /dev/null @@ -1,5 +0,0 @@ -(*io.PipeReader).CloseWithError -(*io.PipeWriter).CloseWithError -encoding/binary.Write(*bytes.Buffer) -(*github.com/spf13/cobra.Command).Help -(*os.Process).Kill diff --git a/.golangci.yml b/.golangci.yml index bf97815..9e1dec7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -4,13 +4,18 @@ linters: - gofmt - gosec - revive -run: - skip-files: +issues: + exclude-files: - "secretstream/secretstream.go" - "secretstream/secretstream_test.go" linters-settings: errcheck: - exclude: .errcheck-exclude.cfg + exclude-functions: + - (*io.PipeReader).CloseWithError + - (*io.PipeWriter).CloseWithError + - encoding/binary.Write(*bytes.Buffer) + - (*github.com/spf13/cobra.Command).Help + - (*os.Process).Kill gosec: excludes: - G204