🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/cloverrose/unusedinterface

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/cloverrose/unusedinterface

v0.2.5
Source
Go
Version published
Created
Source

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: v1.64.8
name: custom-golangci-lint
destination: bin
plugins:
  - module: 'github.com/cloverrose/unusedinterface'
    import: 'github.com/cloverrose/unusedinterface'
    version: v0.2.4

.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

FAQs

Package last updated on 14 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts