Skip to content

How does detekt automatically registers itself with gradle check? #4610

Answered by marschwar
root-ansh asked this question in Q&A
Discussion options

You must be logged in to vote

You are right, your question is a little off topic ;).

afaik detekt does not work wiith java code, right?

That is correct. detekt is a static code analyzer for kotlin only.

so far checkstyle seems to work but it doesn't automatically registers for check task as detekt plugin does.

That I cannot believe. If the checkstyle (and spotbugs as well) plugin is applied to the project, it is automatically added as a check task dependency.

[edit] Please check out this test in the gradle project

so i was wondering if i could add any code in my app to make a single gradle check command that would perform analysis on both kotlin and java code?

What you could do is add any task as a dependency of…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@root-ansh
Comment options

Answer selected by root-ansh
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