SonarQube passing code that should fail

251 views Asked by At

Using sonarqube-6.3.1 and sonar-scanner-3.0.3.778, I can run the command .sonar-scanner from the bin directory of the scanner folder. This outputs a bunch of stuff stating that it's loading and scanning.

I can view this on the SonarQube webpage and see the files I expect when I click the code tab for that project as I've configured it however. One file is proper code that compiles and has one expected bug as defined by the profile it states it's applying, the other file is just copy and paste of the non-compliant code smells.

The dashboard states there are no bug, vulnerabilities, code smells, or duplication. I'm struggling to figure out why it isn't detecting the errors i've intentionally put in.

0

There are 0 answers