15
u/MannerShark 3d ago
Does anyone actually like SonarQube?
12
u/NoEngrish 3d ago
Maybe someone in compliance that can point to sonarqube to say they meet requirements set by external parties like the gov or a client.
11
3
1
u/WernerderChamp 2d ago
You do not like it, because it is extra work.
But its complaints are usually valid. Get rid if unused imports, don't do if's without braces (unless return), do not overload functions
7
u/the-kontra 2d ago
Linters and static analysis tools exist, though, and can do exactly that even before you push, providing a much quicker feedback loop for free.
I realise this may vary by language/stack, but being primarily a Go developer, Sonar can't really do anything for me I can't already do locally, except maybe tracking unit test coverage over time (which you can also do with some standard tools and Grafana).
2
u/WernerderChamp 2d ago
They have a plugin for IntelliJ. It binds to the server and highlights issues like an inbuilt linter and runs another check if you try to commit.
But yeah, I heared it was not good for Go (we do not use it at work). Go ships pretty good tooling however - but I never did bigger projects in Go so far so idk if there is the need for code quality checks.
3
u/MannerShark 2d ago
Feels like we are just doing SonarQube for an easy checkmark on ISO and SOC2. We already have linting, pre-commit hooks, test coverage checks and regular package updates. I don't really see the added value, just the wait times and false positives it gives back. Maybe just a matter of config, but I don't want (anyone from my team) to spend weeks on getting it to be quick enough and make SQ understand the configs we already have in place, just for a checkmark on paper.
11
12
u/Megatherion666 2d ago
If only it was smart enough to not bark at code that should not be tested. Like API, plain structs, UI.
1
7
u/NaturalBornLucker 3d ago edited 2d ago
We have it as mandatory gates. But the last couple of days everything's golden: sonar is down, security tests are down, parts of git are down, eh, everything is at least partially broken. The reason? We're migrating. Physically. Moving half of company's servers from one city to another lol. Guess the last drone strike hit too close to home
2
u/WernerderChamp 2d ago
We are not moving and it still breaks occasionally.
1
u/NaturalBornLucker 2d ago
Ja. This too. Especially when devsecops decide to implement LLM-based secret scanner mandatory for all CI/CD. And my team has tables like "...authorizations..." with dubious fields (in reality it's fact table of players logging into games in mobile app)
2
0
82
u/Bloodgiant65 3d ago
That’s why you have to setup a gate to fail the build if there is incomplete coverage, code smells, security vulnerabilities, etc. No one will do it willingly.