I just found a bug in our code in which "And" was used where "AndAlso" is required. To prevent this kind of bug in the future, I would like to prohibit the use of "And" as a logical operator, and use only "AndAlso". Can Resharper help me do that?
Yes, I know there are situations where And is functionally different from AndAlso. In my opinion, however, those situations arise from bad code, and I would be glad to flush them out and eradicate them.
A little background for those who don't know: In VB.NET, AndAlso is a short-circuit operator, but And is not, making it possible (even likely) that someone will use a non-short-circuit operator where a short-circuit operator is required. This is not an issue in C#, because there is no non-short-circuit alternative to &&.