unusedinterface unusedinterface find interface that are not used in their package.
$ go install github.com/cloverrose/unusedinterface/cmd/unusedinterface@latest$ make build/unusedinterface$ go vet -vettool=`which unusedinterface` ./...https://golangci-lint.run/plugins/module-plugins/
Here are reference settings
.custom-gcl.yml
# https://golangci-lint.run/plugins/module-plugins/
version: v2.3.1
name: custom-golangci-lint
destination: bin
plugins:
- module: 'github.com/cloverrose/unusedinterface'
import: 'github.com/cloverrose/unusedinterface'
version: v0.2.6.golangci.yml
linters-settings:
custom:
unusedinterface:
type: "module"
description: unusedinterface find interface that are not used in their packageThis repo is an example https://github.com/cloverrose/linter-playground