You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
443 B
Kotlin
12 lines
443 B
Kotlin
4 years ago
|
package org.mozilla.fenix.detektrules
|
||
|
|
||
|
import io.gitlab.arturbosch.detekt.api.ConsoleReport
|
||
|
import io.gitlab.arturbosch.detekt.api.Detektion
|
||
|
|
||
|
class CustomRulesetConsoleReport: ConsoleReport() {
|
||
|
override fun render(detektion: Detektion): String? {
|
||
|
return detektion.findings["mozilla-detekt-rules"]?.fold("") { output, finding ->
|
||
|
output + finding.locationAsString + ": " + finding.messageOrDescription()
|
||
|
}
|
||
|
}
|
||
|
}
|