public static class FileProcessListener.DefaultImpls
Gather additional metrics about the analyzed kotlin file. Pay attention to the thread policy of each function!
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getId(FileProcessListener $this) |
static int |
getPriority(FileProcessListener $this) |
static void |
init(FileProcessListener $this,
Config config) |
static void |
onFinish(FileProcessListener $this,
java.util.List<? extends org.jetbrains.kotlin.psi.KtFile> files,
Detektion result)
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.
|
static void |
onProcess(FileProcessListener $this,
org.jetbrains.kotlin.psi.KtFile file)
Called when processing of a file begins.
This method is called from a thread pool thread. Heavy computations allowed.
|
static void |
onProcessComplete(FileProcessListener $this,
org.jetbrains.kotlin.psi.KtFile file,
java.util.Map<java.lang.String,? extends java.util.List<? extends io.gitlab.arturbosch.detekt.api.Finding>> findings)
Called when processing of a file completes.
This method is called from a thread pool thread. Heavy computations allowed.
|
static void |
onStart(FileProcessListener $this,
java.util.List<? extends org.jetbrains.kotlin.psi.KtFile> files)
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.
|
public static void onStart(FileProcessListener $this, java.util.List<? extends org.jetbrains.kotlin.psi.KtFile> files)
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.
public static void onProcess(FileProcessListener $this, org.jetbrains.kotlin.psi.KtFile file)
Called when processing of a file begins. This method is called from a thread pool thread. Heavy computations allowed.
public static void onProcessComplete(FileProcessListener $this, org.jetbrains.kotlin.psi.KtFile file, java.util.Map<java.lang.String,? extends java.util.List<? extends io.gitlab.arturbosch.detekt.api.Finding>> findings)
Called when processing of a file completes. This method is called from a thread pool thread. Heavy computations allowed.
public static void onFinish(FileProcessListener $this, java.util.List<? extends org.jetbrains.kotlin.psi.KtFile> files, Detektion result)
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.
public static java.lang.String getId(FileProcessListener $this)
public static int getPriority(FileProcessListener $this)
public static void init(FileProcessListener $this, Config config)