Fork me on GitHub
TypeName InvertForAnalyzer
Check Id CC0042
Category Refactoring
Severity Hidden

Cause

Inverts the sequence of a for loop.

Example

for (var i = 0; i < 10; i++) { }

Code fix

A code fix will be presented to you that will transform the code, it will invert the sequence of the for loop.

for (var i = 10 - 1; i >= 0; i--) { }

Code fix

Related rules

TBD

See also

TBD