Hi 👋
Sharing an open source project that might interest you:
Structured Coroutines.
It’s a toolkit for enforcing
structured concurrency in Kotlin Coroutines, with several layers of protection:
•
Compiler Plugin (K2/FIR) – compile-time errors (GlobalScope, runBlocking in suspend, Job in builders, etc.)
•
Detekt – 9 static analysis rules
•
Android Lint – 17 rules (including quick fixes)
•
IntelliJ/Android Studio Plugin – real-time inspections, quick fixes, and intentions
•
Kotlin Multiplatform – JVM, Android, iOS, JS, WASM
Goal: avoid leaks, orphaned coroutines, runBlocking in suspend, swallowed CancellationException, blocking on Main, and similar issues.
Repo:
https://github.com/santimattius/structured-coroutines
Docs:
https://santimattius.github.io/structured-coroutines-docs/
If you try it out, feedback and contributions are welcome 🙂