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 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