deps/unused-check/hugo
Unused dependencies are detected
Implements deps/unused-check for hugo.
| Severity | info |
| Tiers | 1 |
| Stacks | hugo |
| Scope | each |
| Kind | expr |
| Source | library v0.7.0 |
| Selected by | fleetlint-recommended@v0.7.0 |
Requirement
A Hugo site has no dependency manager of its own: Hugo modules live in go.mod and npm tooling in package.json, and both are checked as their own stacks.
Why
Every declared dependency is attack surface and update churn; one nothing uses is pure cost.
Applies when
falseCheck
trueFix
Add the stack’s unused-dependency check to the audit target (see https://fleetlint.org/stacks/).
Agent instruction: Add the stack’s unused-dependency checker to the audit target; remove the dependencies it reports in a separate change after confirming nothing loads them dynamically.
Sources
- https://fleetlint.org/baseline/#dependencies (convention)
- https://fleetlint.org/stacks/#hugo–static-sites (convention)
Generated by fleetlint docs from catalog v0.7.0.