Skip to content

Can I exclude part of codes in one file, or just check the increase code in gitlab mr? #6705

Answered by schalkms
liyuzero asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer: no

Longer answer:
With rules using type and symbol solving, detekt will need the information from referenced types as well. For more sophisticated analysis, detekt needs more context. Using just parts of changed files is in this case not enough.

Questions back:
Why would you want static analysis just over changed lines of code?

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by schalkms
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