onFinish

open fun onFinish(files: List<KtFile>, result: Detektion, bindingContext: BindingContext)

Mainly use this method to save computed metrics from KtFile's to the {@link Detektion} container. Do not do heavy computations here as this method is called from the main thread.

This method is called before any ReportingExtension.


open fun onFinish(files: List<KtFile>, result: Detektion)

Deprecated

Use alternative with a binding context.

Replace with

onFinish(files, result, bindingContext)

Mainly use this method to save computed metrics from KtFile's to the {@link Detektion} container. Do not do heavy computations here as this method is called from the main thread.

This method is called before any ReportingExtension.