ktlint-gradle icon indicating copy to clipboard operation
ktlint-gradle copied to clipboard

How to check if optional settings are being set

Open mobilekosmos opened this issue 2 years ago • 2 comments

I want to check if the optional setting are being set, how do I check this?

ktlint {
    version = "0.48.2"
    ignoreFailures = false
    outputColorName = "RED"
}

How can I check which version is being used?

mobilekosmos avatar Mar 01 '23 21:03 mobilekosmos

Following settings are visible in the console when set at the right place: ignoreFailures = true outputToConsole=false

Setting colors did not work for me. And what I don't know to check is the ktlint version, I suppose the ktlint.jar must be downloaded somewhere?

mobilekosmos avatar Mar 03 '23 03:03 mobilekosmos

Setting colors did not work for me. And what I don't know to check is the ktlint version, I suppose the ktlint.jar must be downloaded somewhere?

You can use the dependencyInsights, or dependencies task, I can't remember which, to see what version of ktlint is actually getting resolved by your build. https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html

JLLeitschuh avatar Mar 04 '23 04:03 JLLeitschuh