[Audit] Reduce high-value duplication found by jscpd #7

Open
opened 2026-07-13 20:09:58 +02:00 by zemion · 0 comments
Owner

jscpd reports low overall duplication, but several repeated areas are worth targeted cleanup when touched.

Source report: /mnt/DATA/git/govoplan/audit-reports/govoplan-full-20260713-1949/jscpd/jscpd-report.json

Current summary:

  • 322 clones.
  • 3,850 duplicated lines out of 195,834 lines.
  • 1.97% duplicated lines overall.

High-value clusters:

  • src/govoplan_mail/backend/router.py vs src/govoplan_scheduling/backend/router.py
  • src/govoplan_core/core/configuration_packages.py vs src/govoplan_core/core/module_package_catalog.py
  • repeated tools/release/govoplan_release/publisher.py blocks
  • repeated WebUI API helper shapes across module APIs

Acceptance criteria:

  • Track and reduce the largest non-test duplicate clusters opportunistically.
  • Prefer shared helpers only where they reduce real maintenance risk.
  • Avoid cross-module imports that violate optional module boundaries.
<!-- codex-security-audit-fingerprint:security-audit-20260713-duplication-backlog --> jscpd reports low overall duplication, but several repeated areas are worth targeted cleanup when touched. Source report: `/mnt/DATA/git/govoplan/audit-reports/govoplan-full-20260713-1949/jscpd/jscpd-report.json` Current summary: - 322 clones. - 3,850 duplicated lines out of 195,834 lines. - 1.97% duplicated lines overall. High-value clusters: - `src/govoplan_mail/backend/router.py` vs `src/govoplan_scheduling/backend/router.py` - `src/govoplan_core/core/configuration_packages.py` vs `src/govoplan_core/core/module_package_catalog.py` - repeated `tools/release/govoplan_release/publisher.py` blocks - repeated WebUI API helper shapes across module APIs Acceptance criteria: - Track and reduce the largest non-test duplicate clusters opportunistically. - Prefer shared helpers only where they reduce real maintenance risk. - Avoid cross-module imports that violate optional module boundaries.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: add-ideas/govoplan#7
No description provided.