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

Colton Idle

02/23/2023, 7:39 PM
Where can I view the output of detekt. i just added it to a project. i ran the detekt gradle task... but i can't find the output in any of the build folders... 🤔
l

Landry Norris

02/23/2023, 7:50 PM
If there’s any failures, the gradle task will fail and you’ll see errors in the gradle output.
Copy code
> Task :<redacted>:detekt FAILED
style - 5min debt
        NewLineAtEndOfFile - [The file /Users/landry/IdeaProjects/<redacted>/<redacted>/src/commo(...)] at /Users/landry/IdeaProjects/<redacted>/<redacted>/src/commonMain/kotlin/com/company/project/module/Foo.kt:545:52

Overall debt: 5min


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':<redacted>:detekt'.
> Analysis failed with 1 weighted issues.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

BUILD FAILED in 1s
1 actionable task: 1 executed
e

ephemient

02/23/2023, 7:54 PM
also
build/reports/detekt/*
c

Colton Idle

02/23/2023, 9:07 PM
Looks like I was running the wrong detekt task 🤦
Thanks!
24 Views