Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 489 Bytes

AN0001.md

File metadata and controls

31 lines (25 loc) · 489 Bytes

AN0001: Add circuit breaker to loop

Property Value
Id AN0001
Category Style
Default Severity Warning

Example

Code with Diagnostic

bool running = true;
while(running) //AN0011
{
}

Code with Fix

int counter = 0;
bool running = true;
while(running)
{
  counter++;
  if(counter > 10)
    break;
}