ReportingExtension

Allows to intercept detekt's result container by listening to the initial and final state and manipulate the reported issues.

Properties

Link copied to clipboard
abstract val id: String

Name of the extension.

Link copied to clipboard
open val priority: Int

Is used to run extensions in a specific order. The higher the priority the sooner the extension will run in detekt's lifecycle.

Functions

Link copied to clipboard
open fun init(context: SetupContext)

Setup extension by querying common paths and config options.

Link copied to clipboard
open fun onFinalResult(result: Detektion)

Is called after all extensions's transformIssues were called.

Link copied to clipboard
open fun onRawResult(result: Detektion)

Is called before any transformIssues calls were executed.

Link copied to clipboard
open fun transformIssues(issues: List<Issue>): List<Issue>

Allows to transform the reported issues e.g. apply custom filtering.