golangci-lint

Contributing FAQ

How to add a new open-source linter to golangci-lint

See there.

How to add a new private linter to golangci-lint

See there.

How to update existing linter

Just update its version in go.mod.

How to add configuration option to existing linter

Add a new field to a config struct. Document it in .golangci.reference.yml. Pass it to a linter.

How to see INFO or DEBUG logs

See tutorial about debugging.

Edit this page on GitHub