Inspectopedia Help

Diagnostic name should be replaced

Reports suppressions with old diagnostic names, for example @Suppress("HEADER_WITHOUT_IMPLEMENTATION").

Some of diagnostics from Kotlin 1.2 and earlier are now obsolete, making such suppressions redundant.


@Suppress("HEADER_DECLARATION_WITH_BODY") expect fun connection() { // ... }

After the quick-fix is applied:

@Suppress("EXPECTED_DECLARATION_WITH_BODY") expect fun connection() { // ... }

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Kotlin, @snapshot@

Last modified: 13 July 2023