KT.NOT_IMPLEMENTED_DECLARATION

Exception of the type NotImplementedError

This rule reports all exceptions of the type NotImplementedError that are thrown. It also reports all TODO(..) functions. These indicate that functionality is still under development and will not work properly. Both of these should only serve as temporary declarations and should not be put into production environments.

Noncompliant Code

Copy
fun foo() {
    throw NotImplementedError()
}

fun todo() {
    TODO("")
}

The content on this page is adapted from the Detekt Docs. Copyright ©2022 The Detekt Team. All rights reserved. https://detekt.dev/comments.html