A big legacy codebase fails every Sonar gate. Teams ignore the tool. How do you adopt it?
IntermediateScenarioBuilds, Artifacts, Nexus, SonarQube and Testing
Answer
Situation read → Adoption by overwhelming the team.
What I'd do →
- Set the new code definition to "since a recent date/previous version" and enforce the gate only on new code.
- Triage the top critical issues and security hotspots with owners.
- Gradually tighten thresholds each quarter and publish trend dashboards.
Why → Developers accept rules that apply to changes they control.
Interview tip → Do not demand zero legacy issues.
More on Builds, Artifacts, Nexus, SonarQube and Testing
A Maven project resolves dependencies from Maven Central on every build and a left-pad style outage would stop all builds.BeginnerYou must publish snapshot and release artifacts without overwriting a released version.IntermediateEvery merge to main should produce a unique semantic version automatically.IntermediateAn npm build is non-reproducible: different versions install on different days.BeginnerThe SonarQube quality gate must block merging PRs that add new bugs, vulnerabilities or uncovered code.IntermediateCoverage shows 0% in SonarQube although tests run in CI.Intermediate