green-code-initiative / ecoCode

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

Java Rules duplicate: eco-design and ecocode rules for Java are identical. #337

Open Geekays opened 3 months ago

Geekays commented 3 months ago

Describe the bug Java Rules duplicate: eco-design and ecocode rules for Java are identical. How to educate developers? How to differentiate a design rule and code rule? I do not see someone doing a design for writing ++1 or i++ and it is more of a coding best practice.

Currently there are 15 rules and all of them are tagged as eco-design as well as ecocode.

To Reproduce Steps to reproduce the behavior:

  1. Install the pluugin on SonarQube
  2. Go to Rules and list. Filter for 'eco' in the tags.
  3. 15 rules are shown for eco-design as well as ecocode
  4. all these rules are identical

Expected behavior There should have been a clear identification for the issues that comes up due to incorrect design and should get marked as eco-design

Software Versions