Add a file .custom-gcl.yaml
to your source with
---
version: v2.4.0
plugins:
- module: fillmore-labs.com/zerolint-golangci-plugin
version: v0.0.13
then run golangci-lint custom
. You get an custom-gcl
executable that can be configured in .golangci.yaml
:
---
version: "2"
linters:
enable:
- zerolint
settings:
custom:
zerolint:
type: module
description: "zerolint checks usage patterns of pointers to zero-size types."
original-url: "https://fillmore-labs.com/zerolint"
settings:
level: "full"
excluded:
- "struct{}"
generated: true
match: "^your\\.domain/package/path"
and can be used like golangci-lint
:
./custom-gcl run .
See also the golangci-lint module plugin system documentation.