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

Output Report is not readable/ formatted

Open mwshubham opened this issue 1 year ago • 3 comments

Thanks for your effort in making this wonderful library.


Integration: classpath "org.jlleitschuh.gradle:ktlint-gradle:11.3.1"

Sample Report: image

Is it as expected or some formatting or readability issue?

mwshubham avatar Mar 15 '23 09:03 mwshubham

You know, I noticed this same thing years ago and never questioned it.

I presume those escape characters are in there for console printing and somehow they are ending up in the files written to disk. Not sure if this is a ktlint or ktlint-gradle bug.

Feel free to dig in more and try to figure out where these files are generated from

JLLeitschuh avatar Mar 15 '23 13:03 JLLeitschuh

I'm facing the same issue, is there any update on this? Before updating to 11.5 I would receive the reports on console and it was just fine to read and find the issues on code, a way better than now.

manoellribeiro avatar Jul 19 '23 18:07 manoellribeiro

I encountered these as well on my txt assets as well when using this Kotlin Gradle plugin. I suspect those kinds of issues wouldn't happen when using the HTML/JSON/Checkstyle reporter types

huangsam avatar Mar 18 '24 04:03 huangsam