Back to Intellij Community

MigrateDiagnosticSuppression

plugins/kotlin/code-insight/descriptions/resources-en/inspectionDescriptions/MigrateDiagnosticSuppression.html

2025.3-rc-2433 B
Original Source

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.

Example:

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

After the quick-fix is applied:

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