nrmancuso / parseva-math

Compute mathematical expressions via abstract syntax tree. Built with Java and ANTLR4.
The Unlicense
3 stars 1 forks source link

Local sonarlint setup #147

Open nrmancuso opened 2 years ago

nrmancuso commented 2 years ago

To require the project to use sonarlint for intellij, see: https://www.jetbrains.com/help/idea/settings-required-plugins.html

To require the project to use sonarlint in vscode, eee: https://github.com/microsoft/vscode/issues/89157#issuecomment-577766335

Then, to make rules consistent with sonarcloud (called connected mode):

vs code: https://github.com/SonarSource/sonarlint-vscode#connected-mode

intellij: https://github.com/SonarSource/sonarlint-intellij/wiki/Bind-to-SonarQube-or-SonarCloud

nrmancuso commented 2 years ago

Discussion around local execution: https://community.sonarsource.com/t/can-i-run-sonarlint-check-from-command-line-without-sonarqube/35896/8

TLDR; sonar is not designed for this. Issues should be noticed and fixed locally in the IDE, and reported by SonarCloud in CI.