I am working on eclipse and using SonarLint plugin(SonarQube plugin is deprecated for eclipse Neon) for Code Analysis. I able to connect to Sonar qube server and bind the project to it and the sonar issue are shown in the SonarLint Console.
I want these issues to be shown as compile time error so as to stop the developer from proceeding further without fixing that issue.
The sonar issues should work as compile time error which does not allow the code to be executed unless fixed.
My Eclipse Screenshot with code
If you see above
"Remove this call to "exit" or ensure it is really required" is a error but is shown as just a warning inside the code. Can we display the same thing as compile time error inside the code as it is high priority error to keep a check on the code quality which cannot be skipped .
After lot of research , I found that it is not possible to show code quality failures as error with Sonar Qube.
Quality failures should be removed by code refactoring from peers or fellow architect based on some best of breed practices.
But we can achieve the same using Google's Error Prone which is using Bazel as the build engine.