Why this matters
Improves discoverability and reduces misuses.
Function names must describe side effects and return values (e.g., fetchUser vs. process).
Improves discoverability and reduces misuses.
Side-by-side examples engineers can pattern-match during review.
fun process(u: String) = http.get(u)fun fetchUser(userId: String): User = api.getUser(userId)doStuff()calculateChecksum()From the same buckets as this rule.
Check if loops use equality operators (== or !=) in termination conditions. These can lead to infinite loops if the condition is never met exactly. Instead, use relational operators like < or > for safer loop termination.