17 lines
833 B
Markdown
17 lines
833 B
Markdown
# Data Model: Copy-Paste Detection Quality Gate
|
|
|
|
This feature introduces no new domain entities, application state, or data persistence. It is a purely tooling/configuration feature.
|
|
|
|
## Configuration Entities
|
|
|
|
### jscpd Configuration (`.jscpd.json`)
|
|
|
|
- **threshold**: Maximum allowed duplication percentage (numeric, 0-100)
|
|
- **minLines**: Minimum number of lines for a block to be considered a duplicate (positive integer)
|
|
- **minTokens**: Minimum number of tokens for a block to be considered a duplicate (positive integer)
|
|
- **pattern**: Glob patterns for files to include in the scan (string array)
|
|
- **ignore**: Glob patterns for files/directories to exclude from the scan (string array)
|
|
- **reporters**: Output format for duplication reports (string array)
|
|
|
|
No state transitions, no relationships to existing domain entities.
|