All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.gitlab.arturbosch.detekt.cli.Junk.kt Maven / Gradle / Ivy

There is a newer version: 1.23.7
Show newest version
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