Table of Contents
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
We use Dependabot to update dependencies, including linters. The updates happen at least automatically once a week (Sunday 11am UTC).
No pull requests to update a linter will be accepted unless you are the author of the linter and specific changes are required.
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.