Skip to content

About

No description or website provided.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

unusedinterface

unusedinterface unusedinterface find interface that are not used in their package.

Install

$ go install github.com/cloverrose/unusedinterface/cmd/unusedinterface@latest

Or Build from source

$ make build/unusedinterface

Or Install via aqua

https://aquaproj.github.io/

Usage

$ go vet -vettool=`which unusedinterface` ./...

Or golangci-lint custom plugin

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 package

This repo is an example https://github.com/cloverrose/linter-playground

About

No description or website provided.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages