Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check if optional settings are being set #645

Open
mobilekosmos opened this issue Mar 1, 2023 · 2 comments
Open

How to check if optional settings are being set #645

mobilekosmos opened this issue Mar 1, 2023 · 2 comments
Labels

Comments

@mobilekosmos
Copy link

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
Copy link
Author

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?

@JLLeitschuh
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants