deadcode

package
v0.6.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package deadcode implements the `supermodel dead-code` command. It calls the Supermodel API to identify functions and files with no callers, then renders the results as a table or JSON.

This is a vertical slice. It must not import any other slice package. It may import from the shared kernel: internal/api, internal/cache, internal/config, internal/ui, internal/build.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg *config.Config, dir string, opts *Options) error

Run uploads the repo and runs dead code analysis via the dedicated API endpoint.

Types

type Options

type Options struct {
	Force         bool     // bypass cache
	Output        string   // "human" | "json"
	MinConfidence string   // "high" | "medium" | "low"
	Limit         int      // max candidates to return; 0 = all
	Ignore        []string // glob patterns to exclude (supports **)
	Timeout       int      // max seconds; 0 = no limit (context deadline applied by cmd layer)
}

Options configures the dead-code command.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL