Non working `ktlint` settings block
See original GitHub issueHello,
I have added this config to project level build.gradle.kts
file
ktlint {
version.set("0.30.0")
android.set(true)
debug.set(true)
verbose.set(true)
outputToConsole.set(true)
reporters.set(setOf(ReporterType.PLAIN, ReporterType.CHECKSTYLE))
}
However, all of the above settings are somehow ignored.
After clearing Gradle cache (removed .gradle
in the user home directory) plugin still downloads ktlint “0.29.0” instead of “0.30.0” and none of the above options has any effect (no console output, not html report…).
I use 7.0.0
, however, I am observing similar behavior in 6.3.1
Any ideas how to debug and fix it?
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (1 by maintainers)
Top Results From Across the Web
Ktlint
No configuration required ktlint aims to capture the official Kotlin coding conventions and Android Kotlin Style Guide. · Rule sets ·. · Disable...
Read more >ktlint not checking kotlin file - Stack Overflow
To begin there is an error in the configuration of your build.gradle file, in the block Ktlint settings, the line where it appears ......
Read more >platform/external/ktlint - Git at Google
Which means no decisions to make, nothing to argue about and no special files to ... kotlin-gradle-plugin must be applied for configuration below...
Read more >How to Automatically Fix Your Code Style With Ktlint - YouTube
In this video you'll learn how you can use ktlint to automatically check and format your code to follow all your coding guidelines....
Read more >Adding ktlint to Your Kotlin Project - goobar
An introduction to formatting Kotlin code with ktlint. ... Output from running ktlintFormat with several non-fixable errors.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks a lot for help @Tapchicoma
@igorwojda Nice find. Thanks for helping us figure out what was wrong.