Zum Inhalt springen

File Name Matches Type (ARCH8005)

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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.

OrderHelper.kt
class InvoiceService
InvoiceService.kt
class InvoiceService

Rename the file to the type it declares (Kotlin’s own convention for single-type files).