I'm here โ but don't expect me to hang around regularly. Just wanted to say that Sonarcloud estimates 244 days of work to clean up code smells, (potential) issues and vulnerabilities. And that doesn't include issues that it couldn't estimate... :exploding_head:
So, I'm all for https://github.com/IQSS/dataverse/pull/9847 to at least have a bit clearer view of what may be done.
Yikes, that's a lot of days!
Don't get discouraged! If I ever get bored I may try to help get that number down.
Well, we had a little momentum in last August when I made that PR. I hope it isn't gone already. :sweat_smile:
It's hard. We're pulled in a lot of directions.
I'm running Sonar locally at the moment. My main question would be if running the sonar:sonar goal should be a separate job in an existing workflow, a separate step in the Maven workflow or part of the "Maven Code Coverage" step.
I'd like to leave a note that I asked at the time if you (@Philip Durbin) wanted me to add the sonarcloud bits... :see_no_evil:
@Oliver Bertuch sounds familiar. Sure! Please hack away at that PR!
@Ben Companjen Oliver has added most of our GitHub Actions. I'm sure he has an idea of where best to put the Sonar stuff.
Can we put a badge or shield or whatever for Sonar in the README? That was my approach with code coverage. Put the badge there, even though the number is low. I got some pushback on this. "We can't show 4% code coverage! It's embarrassing!" But look, now we're up to 20%. Still not great but better!
Of course we can
very nice
Great! Code analysis with Sonar has been a topic of discussion for many years, but I was never in the position to make IQSS do it :halo:
I'm very happy to see that Oliver has pushed on :muscle:
Proudly show how many opportunities for improvement there are! :smiling_face:
https://sonarcloud.io/project/issues?resolved=false&id=bencomp_dataverse (245 days by now :sad: )
From 244 to 245? Uh oh. Wrong direction!
But some issues are ready to be fixed, e.g. by https://github.com/IQSS/dataverse/pull/9977 (and my open PRs from last year's Hacktoberfest)
Sure. Have you seen the Sonar column at https://github.com/orgs/IQSS/projects/34 ? Sonar is one of many columns. Each column represents various priorities.
Hi all, I'm new to the repository but I can help take care of some of the code smells. :smile:
Hi @Sakshi Jain, welcome! Please feel free to introduce yourself at #community > hello I'm new here :smiley_cat:
Hmm, as I mentioned above, there's a column about code smells (with Sonar in the name) on our backlog board at https://github.com/orgs/IQSS/projects/34 but it's currently empty. Let me ask the person who managed that board if we can add a few items.
Screenshot-2023-10-06-at-10-48-03-Dataverse_Global_Backlog-IQSS.png
Please sit tight. We will try to add some code smell issues to that Sonar column.
#9977 has been merged! Thanks, @Sakshi Jain ! ![]()
Awesome! :D
I'll keep an eye on the above mentioned column for any other sonar issues that I could help out with :big_smile:
@Sakshi Jain sounds good, but until then, do you have any interest in fixing an actual bug that affects users? If so, we can talk in #community > Hacktoberfest 2023 where I can explain a few open issues and help you pick one.
Two new Sonar issues just added: #10052 and #10053
Hello, quick questions about https://sonarcloud.io/project/issues?open=AYtJamHsvi-7wrXUO5SC&id=IQSS_dataverse .
Can it create issues, even with a click on a button from authorized users to avoid spamming ?
If not, should we link the sonar issues (e.g. https://sonarcloud.io/project/issues?open=AYtJalkAvi-7wrXUO5Q0&id=IQSS_dataverse) in the issues when correcting so its already well explained ?
Hmm, I think both are possible but I'm not sure.
One thing we want to set up is an automated Sonar check on new pull requests to prevent new code smells, etc. from being added. The issue is #9846 but it hasn't been prioritized yet.
In practice I linked to SonarCloud (and took screenshots) here: use try with resources in JsonUtil #9879
So, yes, it would be helpful to automate this linking.
Last updated: Nov 01 2025 at 14:11 UTC