-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Description
> golangci-lint run ./...
cmd/foo/serve.go:174:19: Error return value of `logger.Sync` is not checked (errcheck)
defer logger.Sync() // nolint: errcheck
^
server/handlers.go:32:9: Error return value of `w.Write` is not checked (errcheck)
w.Write(data) // nolint: errcheck
^
It would be nice if there was a way to be able to suppress reporting in by comments like these ☝️ -- the actual comments are from a code base using GML.
Or is there a way to achieve this that I've been missing?
Metadata
Metadata
Assignees
Labels
No labels