STRUCT011warningPro

duplicate-modules

Duplicate files exist in multiple locations - likely from incomplete migration or copy-paste.

Applies to: Go, JavaScript, Python, Ruby, Rust, TypeScript

Why this matters

When the same file exists in multiple locations, changes to one copy don't update the other. This leads to subtle bugs when the copies drift apart, confusion about which is the 'source of truth', and wasted effort maintaining multiple versions. This commonly happens during monorepo migrations when old code isn't fully removed.

Catch it before it ships

pip install stablestack # or: npx stablestackstablestack # scans your project, STRUCT011 includedstablestack explain STRUCT011

STRUCT011 is part of the Pro rule set. See pricing — the free tier ships 24 checks with no signup.

False positive in your codebase? Suppress a single line with # noqa: STRUCT011