cnumr / GreenIT-Analysis

GreenIT-Analysis
GNU Affero General Public License v3.0
148 stars 31 forks source link

Societe Generale :- Changes requested on the accepted 4 rules #25

Closed mr072318 closed 2 years ago

mr072318 commented 4 years ago

Based on the comments made on our previous pull request for the 4 accepted rules https://github.com/cnumr/GreenIT-Analysis/pull/24

We have made the requested changes by you which are:-

didierfred commented 3 years ago

I made a few test and check you regular expression with https://regex101.com/ .

I have the following comments :

Rule "function in for "

/* for you information; use the new (and not the old); */

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

for (let i= startingindex();i<1000;i++) (no problem with calling this method startingindex as it will be called once)

Rule "for in" :

Too much false-positives , the followings expressions match but shall not :

Rule "Abbreviate CSS"