Custom linters for golangci-lint using the module plugin system.
Each linter lives in its own top-level directory, with a README.md that
describes what it checks. The directory name is the linter name.
Add a linter's plugin to .custom-gcl.yml, replacing <linter> with its
directory name:
version: v2.13.2
plugins:
- module: github.com/TrogonStack/golangci-lint-plugins
import: github.com/TrogonStack/golangci-lint-plugins/<linter>/plugin
version: v0.1.0Build the custom binary with golangci-lint custom, then enable the linter in
.golangci.yml:
version: "2"
linters:
enable:
- <linter>
settings:
custom:
<linter>:
type: module