Hacker News

SonarLint: Fix Issues Before They Exist(sonarlint.org)

37 pointsmitefinedailes posted 7 months ago6 Comments
withinrafael said 7 months ago:

We tried the Visual Studio integration a year or so ago and it required downloading data from our SonarQube instance and bound itself to our solution/projects in unexpected ways. It's on my list of things to retry, because we really like SonarQube.

guiriduro said 7 months ago:

Sonarqube has been a standard piece of our test pipeline for a long while now. Makes sense to have it in the editor.

ollien said 7 months ago:

This looks like exactly what I've been looking for. PHPStorm did linting exactly like a lot of these and often made my life a lot easier, but since leaving the job where I used it, I've come to miss those little hints when not using a Jetbrains IDE (I use VSCode at home).

aba_cz said 7 months ago:

I've used VSCode with SonarLint for a very long time: https://github.com/SonarSource/sonarlint-vscode . It also works with Java and maybe other languages.

jwdunne said 7 months ago:

I can recommend that extension. Hooking it up to our SonarQube instance makes it easy to propagate rule changes/additions. That then catches violations earlier, rather than SonarQube failing a CI build. We closed our feedback loop by several minutes using that and preventing commits/pushes with diffs containing test failures, min coverage violations and static analysis errors.

ollien said 7 months ago:

Yeah, I was just playing around with it. it looks like despite SonarQube having rules for Go, the plugin doesn't support all of the languages they have support for. That's a shame