assertNotNull
open fun <E : KoBaseProvider> E?.assertNotNull(additionalMessage: String? = null, testName: String? = null): Nothing(source)
Deprecated (with error)
katachi reports things that exist and are wrong. Declare the file in layout { } instead.
Konsist's own not-null assertion. Not usable here — see assertTrue.
katachi has no word for "there must be at least one of these": a report block names something that exists and is wrong, and an absence has no path to name. Declare the file in layout { } instead, which is what makes a missing file a [MissingFile] block.
Example 1: what to write instead
classes().firstOrNull().assertNotNull() // compile error
layout { "useCase" / "*UseCase".ktFile() } // ok, and a better reportContent copied to clipboard