Skip to content
sarj/graph/library-imports-application

Keep libraries below applications

Libraries do not depend on application implementation.

error

Examples

FlaggedFails
product library --source-import--> application
PassesClean
application --package-dependency--> product library

Why it matters

Reusable code must remain below deployable applications in the dependency graph.

How detection works

A product or shared library has a code dependency on an application.

What is inspected

  • component kinds and declared code dependencies

How to fix it

Replace implementation coupling with an owned library or runtime contract.

  1. Reverse the dependency or move the shared contract below the application.

Verify

  • Run repo-lint again and confirm the rule passes.