A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/issues/1519 below:

ForLoopVariableCount · Issue #1519 · pmd/pmd · GitHub

While working on #1516 I thought it would be useful to have a rule that limits the number of control variables in a for loop:
While there are valid use-cases for something like

for (int i = start, j = 0; i < l; i++, j++)

having more variables can make it hard to see what range of values the loop iterates over.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4