STRUCT010warningPro

mixed-frontend-backend

Frontend and backend code should be clearly separated

Applies to: Project-level

Why this matters

Mixing frontend and backend code in the same directories makes it harder to understand, test, and deploy your application. Clear separation enables: independent scaling, different deployment strategies, easier onboarding, and cleaner dependency management. Consider organizing into client/server or frontend/backend directories.

Catch it before it ships

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

STRUCT010 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: STRUCT010