https://kotlinlang.org logo
#detekt
Title
# detekt
j

Jakub Chrzanowski

11/22/2020, 10:38 PM
Hi folks! How is that if I run
detekt
Gradle task directly, it prints output with proper colors, but when run via
check
task, I get something like:
Copy code
> Task :detekt FAILED
formatting - 5min debt
	[33mNoConsecutiveBlankLines - [] at /Users/hsz/Projects/JetBrains/intellij-plugin-template/src/main/kotlin/org/jetbrains/plugins/template/services/MyProjectService.kt:3:1[0m
Overall debt: 5min
g

gammax

11/22/2020, 11:31 PM
That's really odd 🤔 don't you mind opening an issue?
j

Jakub Chrzanowski

11/23/2020, 7:38 AM
@gammax will do! However, I've checked one more thing - that issue happens only within the IJ console for
:check
task. When I run it directly via CLI, terminal renders colors properly.
Kind of extra task ouptut escaping performed by the IDE?
check
task run on CI (GitHub Actions) renders colors properly too: https://github.com/JetBrains/idea-gitignore/runs/1431514642?check_suite_focus=true
g

gammax

11/23/2020, 5:05 PM
Thanks for following up @Jakub Chrzanowski
🙌 1
5 Views