beantownace
Active member
- Joined
- Feb 15, 2019
- Messages
- 38
- Programming Experience
- 5-10
Hey all,
I am dealing with some Sonar cube squaking and hoping someone may be able to have some suggestions. Two spots it does not like I just need to at least deal with one of them. Thanks to anyone that can provide some suggestions.
First ding:
Second ding little harder:
I am dealing with some Sonar cube squaking and hoping someone may be able to have some suggestions. Two spots it does not like I just need to at least deal with one of them. Thanks to anyone that can provide some suggestions.
First ding:
Issue 1:
double groupA = 0;
double groupB = 0;
//more code here so for brevity but this while OR check it does not like
while (groupA != 0.0 || groupB != 0.0) //this OR need to change it seems
{
//do stuff
}
Second ding little harder:
Issue 2:
//does not like the If conditions this is in a for loop as well.
if (largestInv.Amount > largestOrd.Amount)
{
//code
}
else if (largestInv.Amount < largestOrd.Amount)
{
//code
}
else if (largestInv.Amount == largestOrd.Amount)
{
//code
}