The following generates an SA1500 error when it shouldn't:
bool condition = true;
do
{
condition = DetermineCondition();
} while( condition );
Forcing placement of while onto a separate line is counter to common code style practices. At the very least there should be a configuration option to set how this rule should handle the placement of the while clause.
The following generates an SA1500 error when it shouldn't:
Forcing placement of while onto a separate line is counter to common code style practices. At the very least there should be a configuration option to set how this rule should handle the placement of the while clause.