We have many projects/solutions in one branch and we are scanning those projects on daily basis with SonarQube.
I want a small help from the community.
- Can I get a list of files having code smells from all the projects?
- Can I get the unique code smells from all the projects?
It would be great if someone can help me with this to reduce the manual efforts.
Welcome to the community!
I suppose you want to pull this data via the API?
The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.
You can get a limited list in the File filter on the Issues page, so that’s your starting point, altho I’m not sure it will be straightforward.
Alternately, you would need to iterate the Code Smell rules and for each rule find the issues, and from the issue extract the file.
Would you mind explaining what you’re trying to accomplish?
Yes, from the Issue page, I have a limited list, but I want the entire list.
Now, I am fetching those manually but I want some way to avoid this manual work.
Your best bet is going to be to automate this with API calls.