koliveira15 / nx-sonarqube

A Nx plugin that scans projects using SonarQube / SonarCloud.
MIT License
50 stars 18 forks source link

Add support for external analyzers #104

Open FabienDehopre opened 5 months ago

FabienDehopre commented 5 months ago

Which scope/s are relevant/related to the feature request?

@koliveira15/nx-sonarqube

Information

SonarCloud supports external analyzers report files such as eslint, stylelint, etc... Here is the documentation related to external analyzers: https://docs.sonarsource.com/sonarcloud/enriching/external-analyzer-reports/

Describe any alternatives/workarounds you're currently using

Amongst all the supported analyzers, I think we can add eslint and stylelint at first. A boolean option should be added for each external analyzer. The executor should look for the JSON report output file in the target configuration (lint for eslint and stylelint for stylelint).

I would be willing to submit a PR to provide this feature

I'll try to provide a PR for this feature but it may take a while since I don't have a lot of available time.

FabienDehopre commented 5 months ago

Properties:

koliveira15 commented 4 months ago

@FabienDehopre thanks for the issue. At this time, the plugin would only support lint plugins that are supported by the Nx team. If you want to give this a try with ESLint, then I'm all for it.