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

Ward Bonnefond

02/29/2024, 3:45 PM
I have a question related to detekt output in gradle build scans. Is there a way to make the failure reasons show up in the main summary on the build scan? This must be a misconfiguration in the detekt task itself because android lint is able to show the failure reasons in the task failure message. When it's one module it's not a huge deal, but if multiple modules have failures it's a pain to have to dig into the console log for each
b

Brais Gabin

02/29/2024, 5:30 PM
How does Android lint looks like?
w

Ward Bonnefond

02/29/2024, 8:30 PM
Android lint basically restates all the problems in the final task output
Screenshot 2024-02-29 at 3.30.10 PM.png,Screenshot 2024-02-29 at 3.30.26 PM.png
b

Brais Gabin

02/29/2024, 9:02 PM
Well, it shows the first one. But I think that have sense because I assume that, usually, you just add one issue per module (once you have detekt completely integrated). Open an issue showing the differences and exposing a bit why the lint message is more useful and I think that can be done
w

Ward Bonnefond

02/29/2024, 9:18 PM
Awesome, I'll write something up! And yeah even if there were multiple lint issues for a single module, it would show them all here without needing to drill down into the console output for that particular task
b

Brais Gabin

03/01/2024, 8:27 AM
it would show them all here without needing to drill down into the console output for that particular task
That's not what android lint does. It just show one issue.
w

Ward Bonnefond

03/01/2024, 2:37 PM
Oh you're right. It does only show the first error
5 Views