Implement the 007-add-knip feature that adds Knip unused code detection to the quality gate and as a standalone command

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Lukas
2026-03-05 12:24:27 +01:00
parent 0bbd6f27f9
commit c4a90c9982
11 changed files with 965 additions and 16 deletions

View File

@@ -0,0 +1,24 @@
# 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.