| Modifier and Type | Interface and Description |
|---|---|
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 |
|---|---|
void |
onFinish(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.
|
void |
onProcess(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.
|
void |
onProcessComplete(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.
|
void |
onStart(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.
|
getId, getPriority, initvoid onStart(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.
void onProcess(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.
void onProcessComplete(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.
void onFinish(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.