Skip to content

Z405: UNUSED_ASSET

Severity: warning Penalty: 3.0 points Category: brand Auto-fixable: No

Rationale

This rule is triggered when an image or static asset file stored in assets/ is never referenced by any Markdown document across the Virtual Site Map, leading to unnecessary repository bloat.

How to Fix

Inspect the flagged location in the Markdown file and update the content or configuration:

Bad (Triggers Z405)

docs/assets/images/obsolete-logo.png -> File exists on disk but never linked in markdown.

Good (Resolves Z405)

<!-- GOOD: Reference asset in documentation page or delete obsolete asset -->
![Project Logo](../assets/images/logo.png)

Configuration

# Asset scanning covers files in docs/assets/

Reference

See the Finding Codes Index for finding code details.