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
Link copied to clipboard
Link copied to clipboard
Content copied to clipboard
open fun onProcessComplete( file: KtFile, findings: Map<String, List<Finding>>, bindingContext: BindingContext)
Content copied to clipboard
Called when processing of a file completes. This method is called from a thread pool thread. Heavy computations allowed.
Link copied to clipboard
Use this to gather some additional information for the real onProcess function. This calculation should be lightweight as this method is called from the main thread.