Csharpsquid: S1854 reports false positive for pre-increment

Hello,

I’m sorry I maybe was not detailed enough in my answer.

The proposal for the particular example above is to replace only the last ++number with number+1 to avoid the unused assignment (since ++number is actually number = number + 1 in the background).

It’s not clear to me how this can cause a bug - could you provide me with a snippet where this is causing an issue so I can investigate further?

Thanks!

EDIT: I’ve opened an issue in our backlog to improve the message as it’s a bit confusing for this context.