green-code-initiative / ecoCode-javascript

Reduce the environmental footprint of your JS/TS software programs
https://ecocode.io
GNU General Public License v3.0
18 stars 17 forks source link

Add ecoCode-javascript plugin to SonarQube Marketplace #15

Closed utarwyn closed 10 months ago

utarwyn commented 1 year ago

Description

Now that ecoCode JavaScript plugin is standalone, it's time to prepare its arrival on the SonarQube marketplace πŸš€ Below is the todo-list, based on the one created by @jycr for other plugins.

TODO List

More information:

JayPe69 commented 11 months ago

+1, I wanted to use this plugin, but I didn't find it on the market place. I know I can install it manually, but it will be very nice to have it on the market place. On the release page, I don't see any jar file, do we have to create it on our own ? thanks

utarwyn commented 11 months ago

Hello @JayPe69, thank you for your interest in using our plugin!

Indeed, the plugin isn't yet available on the marketplace, which is our priority today (a few other issues are delaying the process, sorry for this).

You can find the latest available version of ecoCode-javascript in the main ecoCode repository (released before the split): https://github.com/green-code-initiative/ecoCode/releases/tag/1.3.0

JayPe69 commented 11 months ago

@utarwyn , thanks a lot.

In the readme file of this plugin, the link to get the binary file is : https://github.com/green-code-initiative/ecoCode-javascript/releases

I guess you should change it to : https://github.com/green-code-initiative/ecoCode/releases

Thanks again, I'll try it

JayPe69 commented 11 months ago

@utarwyn sorry but, now the plugin is installed, do I have to configure something special ?

image

I don't see any new rules or new Quality Profile.
Thanks

utarwyn commented 11 months ago

@JayPe69

This version works with SonarQube external rules system. This means that the rules are not displayed directly in the SonarQube interface (more info here). This is a technical limitation of SonarQube.

But we've found a way around this problem for the next version of the plugin! It will display the rules like any other SonarQube plugin. The "unreleased" part of the changelog exposes this change among many others. We really hope to be able to propose it very soon.

Sorry for the misunderstanding. The current README contains the documentation for the new version of the plugin, which has not yet been released.

utarwyn commented 10 months ago

@JayPe69 A new stable version of the plugin is available! This one is standalone and display rules as regular ones in the SonarQube UI. The process to add the plugin to the marketplace will be sstarted in the next few days, as soon as possible.

https://github.com/green-code-initiative/ecoCode-javascript/releases/tag/1.4.0

JayPe69 commented 10 months ago

@utarwyn , thanks a lot for this new stable version. As I'm using the DeveloperEdition of SonarQube, I have to install it manually anyway. I'll give you some feedbacks.

utarwyn commented 10 months ago

The discussion has been created on Sonar Community platform: https://community.sonarsource.com/t/new-plugin-ecocode-javascript-requesting-inclusion-in-sonarqube-marketplace/103808

Related PR to integrate the plugin to the marketplace is here: https://github.com/SonarSource/sonar-update-center-properties/pull/454

Awaiting comments and then approval.. 🀞

utarwyn commented 10 months ago

Request has been accepted! The plugin will be available very soon from the official marketplace πŸ₯³ But there are a few changes to be made for the next version of the plugin. Check #30 to have more info.