KT.UNUSED_PRIVATE_MEMBER

Unused private member

Reports unused private properties, function parameters and functions. If these private elements are unused they should be removed. Otherwise, this dead code can lead to confusion and potential bugs.

Options

  • allowedNames (default: (_|ignored|expected|serialVersionUID))

    unused private member names matching this regex are ignored

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