io.gitlab.arturbosch.detekt.cli.out.TxtOutputReport.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of detekt-cli Show documentation
Show all versions of detekt-cli Show documentation
Static code analysis for Kotlin
package io.gitlab.arturbosch.detekt.cli.out
import io.gitlab.arturbosch.detekt.api.Detektion
import io.gitlab.arturbosch.detekt.api.OutputReport
class TxtOutputReport : OutputReport() {
override val ending: String = "txt"
override val name = "plain text report"
override fun render(detektion: Detektion): String {
val builder = StringBuilder()
detektion.findings
.flatMap { it.value }
.forEach { builder.append(it.compactWithSignature()).append("\n") }
return builder.toString()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy