We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
like in python issue green-code-initiative/creedengo-python#21, check if implemented EC69 rule in C# plugin is relevant or not
The text was updated successfully, but these errors were encountered:
For loops in Python match foreach loops in C#, and don't trigger a warning with our rule implementation.
foreach (int i in Enumerable.Range(0, 10)) // Compliant, evaluated once
For loops however are equivalent to for loops in C/C++, and evaluate function calls in conditions at every iteration, this is what our rule covers.
for (int i = 0; i < GetValue(); i++) // Non compliant, loop invariant function in loop condition
This is also the case for while and do-while loops, our rule implementation covers those too.
Sorry, something went wrong.
vdebellabre
No branches or pull requests
like in python issue green-code-initiative/creedengo-python#21, check if implemented EC69 rule in C# plugin is relevant or not
The text was updated successfully, but these errors were encountered: