docs: forbid inline fully-qualified class names in Kotlin

Adds a Kotlin style rule to CLAUDE.md requiring imports over
fully-qualified class names inline in function bodies.

https://claude.ai/code/session_01QE8CjoJXUt7RKtwGgzeMrb
This commit is contained in:
Claude
2026-05-14 13:07:52 +00:00
parent 5177168583
commit f5354c2d34
+10
View File
@@ -314,6 +314,16 @@ After completing any task that modifies Kotlin files, always run:
```
Do this before considering the task complete.
### Kotlin Style
- **Never write fully-qualified class names inline in function bodies.** Add an
`import` for the class and reference it by its simple name. Write
`Event` (with `import com.vitorpamplona.quartz...Event`), not
`com.vitorpamplona.quartz...Event` in the middle of code.
- The only acceptable inline fully-qualified names are: a genuine name
collision (prefer `import ... as Alias` instead), or where the language
requires it. Comments, KDoc, and string literals are exempt.
### Navigation Shell
- **Desktop**: Sidebar + main content area
- **Android**: Bottom navigation