Skip to content

Reference Resolution #5533

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

You must be logged in to vote

I'd like to be able to resolve foo to its declaration then check that it's value "foo" is what I expect. Is this possible with Detekt?

This depends heavily on what you are trying to achieve. If you can statically determine the value of the variable, without actually running the program, then I think it’s possible.

I guess a good starting point is the UnusedPrivateMember rule of the detekt standard ruleset.

Replies: 1 comment

Comment options

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