adam-mcneilly
09/13/2019, 8:43 PMtapchicoma
09/14/2019, 8:53 AM--color
seems what you are looking for
https://github.com/pinterest/ktlint/blob/b63cd7f4ee26e32d2bf92fad5ae761382f77f0ba/ktlint/src/main/kotlin/com/pinterest/ktlint/Main.kt#L134adam-mcneilly
09/16/2019, 1:15 PMstaticAnalysis {
ktlint {
// ...
outputToConsole = true
coloredOutput = true
}
}
That should be true by default so I don't know why I'm not seeing it but I think I will have to take it up with that plugin. Thanks for getting me this far, though!tapchicoma
09/16/2019, 1:18 PMPLAIN
tapchicoma
09/16/2019, 1:19 PMadam-mcneilly
09/16/2019, 1:19 PMadam-mcneilly
09/16/2019, 1:19 PMadam-mcneilly
09/16/2019, 1:20 PMtapchicoma
09/16/2019, 1:21 PM--info
to gradle run)tapchicoma
09/16/2019, 1:22 PMSet to plain to generate plain text only. This option disables all color and other rich output in the console output. This is the default when Gradle is not attached to a terminal.That is why colored output is disabled
adam-mcneilly
09/16/2019, 1:24 PMinfo
passed through, I don't see that error printed anywhere.
I'm able to recreate on a separate project from work so I'm going to submit an issue to them and see if I learn anything. Will link it here when I do if you want to follow along.tapchicoma
09/16/2019, 1:25 PMadam-mcneilly
09/16/2019, 1:25 PMadam-mcneilly
09/16/2019, 1:25 PMtapchicoma
09/16/2019, 1:25 PMadam-mcneilly
09/16/2019, 1:34 PMtapchicoma
09/16/2019, 1:34 PMadam-mcneilly
09/16/2019, 1:34 PMtapchicoma
09/16/2019, 1:35 PMtapchicoma
09/16/2019, 1:35 PMadam-mcneilly
09/16/2019, 1:36 PMadam-mcneilly
09/16/2019, 1:36 PMtapchicoma
09/16/2019, 1:37 PMadam-mcneilly
09/16/2019, 1:37 PMtapchicoma
09/16/2019, 1:38 PMThis option disables all color and other rich output in the console output.
tapchicoma
09/16/2019, 1:38 PMrich
console - showing colors are okadam-mcneilly
09/16/2019, 1:40 PMtapchicoma
09/16/2019, 1:41 PM--console=rich
option and check ktlint coloringadam-mcneilly
09/16/2019, 1:41 PMtapchicoma
09/16/2019, 1:42 PMtapchicoma
09/16/2019, 1:43 PMadam-mcneilly
09/16/2019, 1:43 PMadam-mcneilly
09/16/2019, 1:58 PMadam-mcneilly
09/17/2019, 6:15 PM