Table of Contents
How to write a custom linter
See there.
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 it's version in go.mod
.
How to add configuration option to existing linter
Add a new field to a config struct. Document it in .golangci.example.yml. Pass it to a linter.