-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ISSUE 86] upgrade rules matrix with new ids + emojis #88
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only rule that has been currently reimplemented in the Javascript plugin is "Call a DOM element multiple times without caching". The other rules were in the old version of the linter but have not yet been moved. Maybe we should set them at status 🚧 until they are reintegrated?
This table lists the rules in place in the plugin. The rule names cannot follow the guidelines of Sonar rules, they are based on the ESLint standard.
Hi @utarwyn, |
As described in my comment #88 (review), javascript rule names are following ESLint standard, so there are using the format: "@ecocode/name". But if you want, we can create a "virtual" ID of the format "EC.." in the table that I can references somewhere else. |
@utarwyn : i think we need to set IDs just to get rules references. Per example to set this reference into matrix file, but also to communicate outside the project about one specific rule. |
@dedece35 : i validate the review, but before to marge, make sure that my modifications are OK too ;) |
I think we should rename the file examples here :
another suggestion : move this file to root directory of |
I think it's a good idea yes! 👍 |
Modifications done |
@glalloue, @utarwyn
Rules disappeard :
I'm waiting for your answers before merging this PR and then create an new 1.1.0 release (for SonarQube marketplace) |
Kudos, SonarCloud Quality Gate passed! |
Hello @dedece35, here is my opinion on the different deleted rules:
I think we can go with this version, and rules can be added in the future depending on the plugins we will develop (HTML/CSS for example). |
I have voluntarily deleted these rules because they disapeared from the last version of cnumr book (v4) and they were marked as not available in any of our supported languages. |
Hi @utarwyn,
could you check my new version of rule matrix array for JS language please ?
please see https://github.com/green-code-initiative/ecoCode/blob/ISSUE_86/docs/rules/web-matrix.md