Skip to content

Interface No I Prefix (ARCH8003)

Key kotlin.naming.interface-no-i-prefix · Severity info · Category naming

Flags interfaces prefixed with ‘I’ (IUserRepository) - a .NET convention that reads as noise in Kotlin.

interface IUserRepository { fun find(id: Int): User? }
interface UserRepository { fun find(id: Int): User? }

Drop the prefix; name the implementation (DefaultUserRepository, JdbcUserRepository) instead.