green-code-initiative / ecoCode

Reduce the environmental footprint of your software programs with SonarQube
https://ecocode.io
GNU General Public License v3.0
160 stars 78 forks source link

Rules EC3 and EC69 are covering the same issues #359

Open Kiiv opened 1 week ago

Kiiv commented 1 week ago

Describe the bug Those two rules will rise an issue for the following piece of code :

for (int i = 0; i < myCollection.size(); ++i) {

To Reproduce Analyse the code bellow.

Expected behavior Rules should not cover the same perimeter to not rise the same issue twice. Maybe EC69 is sufficient ?

Software Versions