File Process Listener
Gather additional metrics about the analyzed kotlin file. Pay attention to the thread policy of each function!
A bindingContext != BindingContext.EMPTY is only available if Kotlin compiler settings are used.
Functions
Link copied to clipboard
Allows to read any or even user defined properties from the detekt yaml config to setup this extension.
Setup extension by querying common paths and config options.
Link copied to clipboard
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.
Link copied to clipboard
open fun onProcessComplete(file: KtFile, findings: Map<String, List<Finding>>, bindingContext: BindingContext)
Called when processing of a file completes. This method is called from a thread pool thread. Heavy computations allowed.
Link copied to clipboard