Hey Guys, I'm working on a intelij's plugin projec...
# ktlint
b
Hey Guys, I'm working on a intelij's plugin project which uses KotlinPoet and generates files. Problem is that generated files are unformatted and really ugly to look at. Can I use ktlint to apply formatting to newly generated files?
I simply have my code generators emit
Copy code
/* ktlint-disable */
@file:Suppress("ALL")
r
I guess the question was how to programmatically use ktlint to format the generated files at runtime, right? If so, you could include ktlint core and rulesets as gradle dependencies and then format your code programatically like this