Skip to content

Files

Latest commit

 

History

History
23 lines (15 loc) · 654 Bytes

NotImplementedDeclaration.md

File metadata and controls

23 lines (15 loc) · 654 Bytes

Pattern: Use of NotImplementedError or TODO(..)

Issue: -

Description

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.

Example of incorrect code:

fun foo() {
    throw NotImplementedError()
}

fun todo() {
    TODO("")
}

Further Reading