I am a member of the GreenCodeInitiative core team. We would like to request the addition of the ecoCode Javascript plugin to the SonarQube Marketplace. Some description of the ecoCode project has been written by jycr in discussion [NEW PLUGIN] ecoCode - Requesting inclusion in SonarQube Marketplace
This plugin targets Javascript and Typescript languages, with technologies like NestJS and React (JSX). It uses the SonarJS API to keep things in line. The first release we would like to include is 1.4.0.
I want to let you know that Iāve seen this request. Itās on my list, but there are a few other things I need to get out of the way first. I hope to come back to you this week, though.
The testing looks good as well, so Iām going to process your PR. Just a few notes:
Love this (ecocode-javascript:EC9):
And BTW, Iāve already provided feedback internally about the table cell vertical alignment.
Optional
It looks like all your rules have been classed as Consistency/Conventional in the new Clean Code taxonomy. Iām (now) assuming thatās the default. Just a note that in future releases you may want to take a look at this.
One thing Iām not seeing is // Noncompliant comments in your noncompliant code samples. They help users separate the wheat from the chaff
ecocode-javascript:EC24 - Iām surprised this rule recommends a limit and not a where clause. I would think limiting CPU at the server / DB would be in scope here
I see that a few rules provide Further Reading, which is awesome. And thereās a way to mark that up to have it shown on a āMore Infoā tab, E.G.. Iām not aware of the details, but if you want to create a thread, we can get it tracked down.
ecocode-javascript:EC12 - āThere are more than two style assignations for āelementā. Use a class instead.ā That doesnāt mean what you think it does.
assignation noun
plural noun: assignations
an appointment to meet someone in secret, typically one made by lovers.
Thank you for your time and for the quick review!
Itās very pleasing to see your commitment to the plugins made by the community.
Indeed, there are still a few adjustments to be made and this translation is clearly not good haha.
I will create an issue on the project repository to process all your highly relevant feedback!
sorry to disturb you again but the update repository https://update.sonarsource.org does not appear to have updated since October 9. I have seen this date at the top of this file.
Do you know if there is a problem somewhere? Or when the site will be updated?
Thanks for the ping, and sorry about this. I promise the job has been run, but internally, weāve got someone āhelpfullyā moving the job to a ābetterā provider. This is also currently screwing up showing SonarQube 10.3 in the Plugin Version Matrix.