Skip to content

Instantly share code, notes, and snippets.

@baole
Last active July 16, 2026 04:37
Show Gist options
  • Select an option

  • Save baole/5cdaf877ad0e7f1d62a7587ad3036e6a to your computer and use it in GitHub Desktop.

Select an option

Save baole/5cdaf877ad0e7f1d62a7587ad3036e6a to your computer and use it in GitHub Desktop.
Kotlin Architecture Tests
Job Threat Build-level rule Source-level rule
Logical isolation Layers or modules depend in forbidden directions :domain does not depend on :data; feature implementations do not depend on sibling implementations Domain packages do not import data, UI, framework, or platform packages
API hermeticity Implementation detail becomes public contract API modules stay separate from implementation modules Public signatures do not expose persistence, transport, or framework types
Mechanical hygiene Structure becomes harder to navigate and build Module graph has no cycles Files avoid wildcard imports, class/file mismatch, or uncontrolled generated-code zones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment