package io.gitlab.arturbosch.detekt.cli

import io.gitlab.arturbosch.detekt.api.Detektion
import io.gitlab.arturbosch.detekt.api.FileProcessListener
import org.jetbrains.kotlin.psi.KtFile

/**
 * @author Artur Bosch
 */
class DetektProgressListener : FileProcessListener {

	override fun onStart(files: List<KtFile>) {
		kotlin.io.print("Analyzing ${files.size} kotlin files: ")
	}

	override fun onProcess(file: KtFile) {
		kotlin.io.print(".")
	}

	override fun onFinish(files: List<KtFile>, result: Detektion) {
		kotlin.io.println()
	}
}

package io.gitlab.arturbosch.detekt.cli

import io.gitlab.arturbosch.detekt.api.Detektion
import io.gitlab.arturbosch.detekt.api.FileProcessListener
import org.jetbrains.kotlin.psi.KtFile

/**
 * @author Artur Bosch
 */
class DetektProgressListener : FileProcessListener {

	override fun onProcess(file: KtFile) {
		kotlin.io.print(".")
	}

	override fun onFinish(files: List<KtFile>, result: Detektion) {
		kotlin.io.println("\n\n${files.size} kotlin files were analyzed.")
	}
}

Print the number of analyzed files at the end
Print the number of analyzed files at the end

arturbosch/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,Mauin/detekt,arturbosch/detekt,rock3r/detekt,arturbosch/detekt,rock3r/detekt,rock3r/detekt