[NEW PLUGIN] ecoCode JavaScript - Requesting inclusion in SonarQube Marketplace

Hi Maxime,

The bureaucratic requirements are met. :slight_smile:

The testing looks good as well, so Iā€™m going to process your PR. Just a few notes:

  • Love this (ecocode-javascript:EC9):
    Selection_1439
    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 :slight_smile:

  • 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. :joy:

    assignation
    noun
    plural noun: assignations
    an appointment to meet someone in secret, typically one made by lovers.

    You want ā€œassignmentsā€

 
Ann

1 Like