Quick revision
The short answer
When developers mark many issues as won't fix, the tool has lost their trust, so we rebuild it. We review the quality profile with the team and disable rules they agree add no value, keep the gate to a few conditions that matter (new bugs, vulnerabilities and coverage on new code), and treat rule changes as recorded, reviewable team decisions. We then track how often issues are suppressed and why, and move recurring style issues closer to the developer with automatic formatters and compiler checks such as Error Prone, so the gate only stops what is worth stopping.
What to remember
In this answer, we saw that widespread won't fix resolutions mean developers no longer trust the findings, usually because a few noisy rules block merges. We restore trust by reviewing the profile with the team and removing rules that add no value, keeping the gate to new bugs, vulnerabilities, hotspots and coverage on new code, recording rule changes as team decisions, measuring suppressions and their reasons, and moving formatting and simple correctness checks into formatters, Error Prone and the IDE.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
When developers mark many issues as won't fix, the tool has lost their trust, so we rebuild it. We review the quality profile with the team and disable rules they agree add no value, keep the gate to a few conditions that matter (new bugs, vulnerabilities and coverage on new code), and treat rule changes as recorded, reviewable team decisions. We then track how often issues are suppressed and why, and move recurring style issues closer to the developer with automatic formatters and compiler checks such as Error Prone, so the gate only stops what is worth stopping.
Why this question is asked
A quality tool that blocks merges for low-value reasons does damage twice: it slows delivery, and it trains developers to dismiss its findings, including the important ones. A won't fix click takes two seconds and nobody reviews it. Interviewers ask this scenario because the fix is as much about trust and process as about configuration. In this answer, we will see why the current setup fails, then repair it in steps: review the profile, narrow the gate, make rule changes team decisions, measure suppressions, and move routine checks earlier in the development loop.
1Why the Tool Stopped Being Useful
SonarQube's value comes from one assumption: when it raises an issue, the issue is usually worth fixing. If developers see a stream of findings like a method being too long by two lines, a string literal repeated three times in a test, or a preferred style for a lambda, and each one blocks a merge, they learn that the tool's opinion is cheap. Marking issues as won't fix or false positive becomes a habit, and by then the gate passes again without protecting anything.
We can confirm this with data before changing anything. The issues page can filter by resolution, so we can count issues resolved as won't fix or false positive in the last three months and group them by rule. Usually a handful of rules account for most dismissals. That list is where the repair starts.
| Rule category | Share of dismissals | Typical verdict |
|---|---|---|
| Formatting and naming style | about 40 percent | Automate with a formatter |
| Complexity thresholds too strict | about 25 percent | Raise threshold or disable |
| Test code conventions | about 15 percent | Relax or exclude for tests |
| Real bugs and vulnerabilities | under 10 percent | Must never be dismissed casually |
2Review the Quality Profile With the Team
The quality profile decides which rules run. Instead of the built-in profile used without question, we create a team or company profile that extends it, and we go through the most dismissed rules in a short session with the developers who live with them. For each rule we ask: has this rule ever caught something that mattered? Is it already handled by another tool? If the answer is no and no, we deactivate it or adjust its parameters, such as the cognitive complexity threshold.
This is not lowering the bar. A rule that is ignored 95 percent of the time provides no protection, and its noise hides the findings that do matter. Removing it raises the signal of everything else.
3Keep the Gate Small and Focused
The gate is what blocks merges, so it should contain only conditions we are willing to stop work for. A good focused gate on new code has three or four conditions: no new bugs (reliability issues), no new vulnerabilities, all new security hotspots reviewed, and a reasonable coverage threshold on new code. Maintainability issues, the code smells, stay visible on the pull request as feedback without blocking it.
The reason is about where the cost of a block is justified. A new SQL injection or a new null dereference is worth a blocked merge. A long method is worth a comment that a reviewer can weigh, not an automatic stop.
4Make Rule Changes Team Decisions
Who can change the profile matters as much as what is in it. If anyone can deactivate rules silently, the profile drifts; if nobody can, frustration returns. So we treat the profile like code. Rule changes are proposed with a reason, discussed by the team or a small group of rule owners, and recorded, for example in a short decisions file in a repository or in the changelog that SonarQube keeps for each profile. Profiles can also be exported and versioned.
The same applies to individual issues. A won't fix or false positive resolution should carry a comment saying why, and resolutions on security issues should require review by a second person. That makes a dismissal a small, visible decision rather than a reflex.
- Developer disputes a rule or issuecomment with the reason
- Is it a real bug or vulnerability?Yesfix it; never dismiss casuallyNocontinue
- Does the rule add value for this team?Yeskeep it, maybe tune its thresholdNopropose deactivation
- Team or rule owners deciderecord the decision and reason
- Update the profile; review the effect next monthdismissal counts should drop
5 steps in order. Play them, or step through them one at a time.
5Measure Suppressions
We keep watching the same data that revealed the problem. Every month, we count issues resolved as won't fix or false positive, by rule and by team, and look at the comments. A rule that keeps being dismissed is a candidate for removal; a team that dismisses many security issues needs a conversation. The goal is a low, explained dismissal rate. If it starts rising again, the profile is drifting back towards noise.
We also watch outcomes the tool is supposed to improve, such as bugs found in review or production incidents traced to code defects, so that we are judging the tool by its effect and not by the number of issues it raises.
6Move Routine Checks Closer to the Developer
Many findings that annoy developers in SonarQube are issues a tool could fix or prevent automatically. Formatting belongs to a formatter: Spotless with google-java-format or palantir-java-format formats code on every build, so formatting issues never reach review. Some correctness checks belong in the compiler: Error Prone runs as a javac plugin and fails the compile on known bug patterns, and NullAway adds null checking, so the developer sees the problem in seconds, not after a CI run. And the IDE plugin (SonarQube for IDE, formerly SonarLint) shows the same rules while typing, with the team's profile when connected to the server.
When these are in place, the remaining SonarQube findings are fewer and more meaningful, and developers meet them earlier, when fixing is cheapest.
7Follow-up questions
Shouldn't we just remove SonarQube if developers dislike it?
Not before fixing the configuration. Most of the frustration usually comes from a small number of noisy rules and a gate that blocks on maintainability issues. Once the profile and gate are focused, the tool's real findings, new bugs, vulnerabilities and untested code, are valuable and hard to get elsewhere in one place. If it still adds little after that, we can have an evidence-based discussion about alternatives.
How do you stop people dismissing real vulnerabilities to get a merge through?
Vulnerabilities and hotspots should not be dismissible by the author alone. We can restrict who has permission to resolve issues as won't fix or to mark hotspots safe, require a comment, and review those resolutions regularly. With a focused gate, the pressure to dismiss is also much lower, because the gate no longer blocks on trivia.
What if different teams want different rules?
A shared base profile with the rules that matter for everyone, especially security and correctness, can be extended by team profiles that add or relax rules for their context, such as batch jobs or libraries. SonarQube supports profile inheritance for this. The gate should stay consistent so that a passing gate means the same thing everywhere.
8Conclusion
In this answer, we saw that widespread won't fix resolutions mean developers no longer trust the findings, usually because a few noisy rules block merges. We restore trust by reviewing the profile with the team and removing rules that add no value, keeping the gate to new bugs, vulnerabilities, hotspots and coverage on new code, recording rule changes as team decisions, measuring suppressions and their reasons, and moving formatting and simple correctness checks into formatters, Error Prone and the IDE.
Open with
Lots of won't fix resolutions tell me the developers no longer trust the tool, so I would start with data: count dismissed issues over the last few months by rule, which usually shows that a handful of style and complexity rules cause most of them.
Then, if they want more
Then I would review the quality profile with the team, keeping a shared base for security and correctness, and deactivating or tuning rules that have never caught anything that mattered. Next I would shrink the gate to what is worth blocking a merge for: no new bugs, no new vulnerabilities, new hotspots reviewed and coverage on new code.
Code smells stay as feedback on the pull request but do not block. I would make rule changes team decisions, proposed with a reason and recorded, and require a comment on any won't fix, with security dismissals reviewed by a second person. Then I would track the dismissal rate monthly; it should drop and stay low.
Finally, I would move routine checks earlier: Spotless with google-java-format so formatting is automatic, Error Prone and NullAway in the compiler for common bug patterns, and the SonarQube IDE plugin so developers see findings while typing. That leaves SonarQube flagging fewer, more important things.
About this answer
- Last updated
- 12 November 2026
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Apache Maven guides, Gradle user manual
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "Developers complain that SonarQube blocks merges with low-value findings and they now...": https://scrivio-interview-library.netlify.app/java/code-quality-tools/88cbab7c19/