nx-sonarqube icon indicating copy to clipboard operation
nx-sonarqube copied to clipboard

Analyze independently each project, without their static dependencies

Open Nxtivision opened this issue 1 year ago • 3 comments

We are building a Design System, and we would like to see Sonar Analyses for each of our lib independently. At the moment, if A is dependent of B, I will have the bugs of B and A inside the analytics.

For example:

flowchart LR
  subgraph libraries[nx run A:sonar]
  B[Library B containing 5 bugs] -.-> A[Library A containing 1 bug]
  end
  libraries --> Result[6 bugs in total]

What I would like:

flowchart LR
  subgraph libA[nx run A:sonar]
  A[Library A containing 1 bug]
  end
  subgraph libB[nx run B:sonar]
  B[Library B containing 5 bugs]
  end
  libA --> ResultA[1 bug in total]
  libB --> ResultB[5 bugs in total]

Do you think it would be possible to provide an option for this use case ? 😄

Thanks in advance and have a nice day !

Nxtivision avatar Feb 05 '24 14:02 Nxtivision

@Nxtivision I think this is an acceptable request. I just need to think through how to specify which mode via executor options since skipImplictDeps already exists and has some crossover with this feature.

koliveira15 avatar Feb 09 '24 17:02 koliveira15

This would add a huge performance improvement for us as well. We have projects with many dependencies, and it would be great to have the ability to toggle this on/off.

kiwi-33 avatar Mar 04 '24 17:03 kiwi-33

Looking for this feature too.

fdolsky321 avatar Mar 05 '24 20:03 fdolsky321