-
now, detekt will check the whole content of modified file, but not just check the increased code, is there anyway to just check changed code in a modified file? |
Beta Was this translation helpful? Give feedback.
Answered by
schalkms
Dec 14, 2023
Replies: 1 comment
-
Short answer: no Longer answer: Questions back: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
schalkms
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?