koliveira15 / nx-sonarqube

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

#66 - feat: allow to skip all deps #124

Open CaporalDead opened 3 days ago

CaporalDead commented 3 days ago

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

Which package are you modifying?

What is the current behavior?

For now, we can only ignore implicit dependencies. While auditing many repositories, it pushes the app sources and its dependencies that may result in duplicate reports.

Closes #66

What is the new behavior?

This PR allows us to ignore all project dependencies.

Does this PR introduce a breaking change?

Other information

I made it simple but I think a better way to implement this would be to use an enum like this :

skipDeps?: 'none' | 'implicit' | 'all'

Also, as the getDependentPackagesForProject function is internal, without modifying a bunch of code, I couldn't test the branch properly