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 an existing linter

Just update its version in go.mod.

How to add a configuration option to an existing linter

Add a new field to the linter settings struct. Document it in .golangci.next.reference.yml. Pass it to the linter.

How to see INFO or DEBUG logs

See tutorial about debugging.

Edit this page on GitHub