Skip to content

ForbiddenMethodCall rule doesn't raise lint errors for files under src/test/kotlin directory #6485

Answered by BraisGabin
pr4bh4sh asked this question in Q&A
Discussion options

You must be logged in to vote

detektMain only check the code on main. You also need to run detektTest. I usually create a meta-task on gradle detektAll that depend on both tasks because they usually are executed together.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by pr4bh4sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants