quality/duplication-gate
Duplicated code is measured
| Severity | info |
| Tiers | 1 |
| Stacks | any |
| Scope | root |
| Kind | outcome |
| Source | library v0.0.0-20261011205826-ecb4e9b3ffd4 |
| Selected by | fleetlint-recommended@0.1.0 |
Requirement
A duplication detector runs in the task runner, the hooks or CI: golangci-lint dupl for Go, jscpd for any stack, PMD CPD for JVM, pylint duplicate-code, or Sonar. Another tool is added with accept:.
Why
Near-duplicate implementations are how a fix lands in one copy and not the other; a detector makes the second copy visible at review time.
Fix
Enable dupl in .golangci.yml, or add jscpd to the lint target (see https://fleetlint.org/stacks/ for the stack’s tool).
Agent instruction: Add the stack’s duplication detector to the lint target with a threshold, and remove or merge the duplicates it reports rather than raising the threshold.
See: https://fleetlint.org/baseline/#design
Generated by fleetlint docs from catalog v0.0.0-20261011205826-ecb4e9b3ffd4.