JLLeitschuh / ktlint-gradle

A ktlint gradle plugin
MIT License
1.46k stars 160 forks source link

Broken/incomplete reporting #701

Open jbruchanov opened 1 year ago

jbruchanov commented 1 year ago

./gradlew ktlintCheck -> tells me there are 2 issues ./gradlew ktlintFormat -> fixes everything (way more files updated)

works correctly if I run ktlint manually

ktlint = "0.50.0" ktlintplugin = "11.5.1"

jbruchanov commented 1 year ago

ktlint = "1.0.0" ktlintplugin = "11.6.0"

reproducible with ^ versions..

looks like running ./gradlew ktlintCheck for 2nd time right away prints out everything 🤷‍♂️

wakingrufus commented 1 year ago

Thanks for the report. I'll see if I can figure this out.

jbruchanov commented 3 months ago

is there any progress on this ? just updated to 12.1.1...

and I always need to run ktlintCheck twice...

1st run gives me like 1st line or few errors... 2nd run gives me full list

using

ktlint = "1.3.0"
ktlintplugin = "12.1.1"
ktlintrules-compose = "0.4.4"