Use sonarlint analysis with git hooks


It is possible to trigger a SonarLint analysis within a git hook?


Nope, SonarLint(s) are IDE plugins, not a command line tool.

Thanks Julien,

I’ve asked just in case.

To explain a bit more, Sonarlint is meant to enable you to trigger an analysis without having to leave your IDE.

It’s just a plugin you can download from Eclipse marketplace and install.
if your code is on GitHub then you need to use the SonarQube on server from CLI.