fleetlint Policy for a fleet of repositories
v0.5
Getting started

quality/duplication-gate/python

Duplicated code is measured

Implements quality/duplication-gate for python.

Severityinfo
Tiers1
Stackspython
Scoperoot
Kindoutcome
Sourcelibrary v0.2.0
Selected byfleetlint-recommended@v0.2.0

Requirement

pylint runs with duplicate-code (R0801) not disabled; or a stack-neutral detector.

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

Run pylint in the lint target without disabling duplicate-code, or add jscpd.

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, https://fleetlint.org/stacks/#python


Generated by fleetlint docs from catalog v0.2.0.