io.gitlab.arturbosch.detekt.cli.Junk.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
import io.gitlab.arturbosch.detekt.api.Finding
import java.util.HashMap
val Finding.baselineId: String
get() = this.id + ":" + this.signature
const val SEPARATOR_COMMA = ","
const val SEPARATOR_SEMICOLON = ";"
inline fun Collection.toHashMap(
keyFunction: (T) -> K,
valueFunction: (T) -> V
): HashMap {
val result = HashMap()
for (element in this) {
result[keyFunction(element)] = valueFunction(element)
}
return result
}
val IS_WINDOWS = System.getProperty("os.name").contains("Windows")
© 2015 - 2025 Weber Informatics LLC | Privacy Policy