**Dataflow analysis of integer values** isn't working
Answered
I'm updating myself with new features in rider 2020.1/2/3 and saw this code analysis inserted in 2020.1 but when try to test in my last version 2020.3.2 the warnings simples do not appear. Am I forgetting to enable something or misunderstanding something?

Please sign in to leave a comment.
Hello Joao Gavron,
I'm afraid I don't get the issue. What kind of warning do you expect to see? Where does the warning appear in earlier versions?
Hello Julia Vaseva, with the new integer analysis that rider does, wasn't I supposed to receive a warning to situations like 1/ possible division by zero in method A; 2/ Math.Abs receiving a value that is always positive in the third method; 3/ possible multiplication by zero in the first method.
Was not the analysis to get things like this? or am I misunderstanding?
Thanks in advance
Julia Vaseva hello?
Hello Joao Gavron,
1. possible division by zero in method A
Though parameter
dcould be zero, we show warning about division by zero only when we can actually prove that some variable will be zero.2. Math.Abs receiving a value that is always positive in the third method
It's not always positive, because the operation
a + 1could overflow ;)3. possible multiplication by zero in the first method.
Imagine that
ais 1000. Then after division byscaleit will become 2. Andbcan be anything.That is, if we are not sure that the expression is potentially incorrect, ReSharper will not issue any warnings. Please let me know if you have any other questions.