Skip to content

support code comments for ignoring^Wacknowledging issues #26

@srenatus

Description

@srenatus
> 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions