File Name Matches Type (ARCH8005)
Ce contenu n’est pas encore disponible dans votre langue.
Key kotlin.naming.file-name-matches-type · Severity info · Category naming
Flags a file whose single top-level class, object or interface is not named like the file.
Incorrect
Section titled “Incorrect”class InvoiceServiceCorrect
Section titled “Correct”class InvoiceServiceRename the file to the type it declares (Kotlin’s own convention for single-type files).