25 lines
887 B
Markdown
25 lines
887 B
Markdown
# Data Model: Add Knip Unused Code Detection
|
|
|
|
**Date**: 2026-03-05
|
|
|
|
## Overview
|
|
|
|
This feature is a developer tooling integration. It introduces no domain entities, state transitions, or persistent data. The only artifacts are configuration files.
|
|
|
|
## Configuration Artifacts
|
|
|
|
### Knip Configuration (`knip.json`)
|
|
|
|
- **Purpose**: Defines workspace scope and any overrides for Knip's auto-detection.
|
|
- **Location**: Repository root.
|
|
- **Key fields**: `$schema`, `workspaces` (maps workspace glob patterns to per-workspace config).
|
|
|
|
### Root Package Scripts (modification)
|
|
|
|
- **Artifact**: `package.json` `scripts` field.
|
|
- **Change**: Add `knip` script; update `check` script to include Knip in the quality gate chain.
|
|
|
|
## No Domain Impact
|
|
|
|
This feature does not modify domain types, application use cases, or adapter code. It only adds a static analysis tool to the build/check pipeline.
|