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:
24
specs/007-add-knip/data-model.md
Normal file
24
specs/007-add-knip/data-model.md
Normal 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.
|
||||
Reference in New Issue
Block a user