Unsuccessful command:
mvn -o org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar -Dsonar.analysis.mode=preview -Dsonar.branch=$BRANCH -Dsonar.host.url=$SONAR_URL
-Dsonar.skipPackageDesign=true -Dsonar.report.export.path=sonar-report.json
Successful command:
mvn -o org.sonarsource.scanner.maven:sonar-maven-plugin:3.2:sonar -Dsonar.analysis.mode=preview -Dsonar.branch=$BRANCH -Dsonar.host.url=$SONAR_URL
-Dsonar.skipPackageDesign=true -Dsonar.report.export.path=sonar-report.json -Dsonar.login=%SONAR_USERNAME% -Dsonar.password=%SONAR_PASSWORD%
Issue 2:
We tried using the SonarLint CLI instead, but we noticed that it displays all errors (which means that the HTML page is too large and will not load). Does anyone know how to run SonarLint CLI with only new errors?
Thank you!
Christine