Skip to content

Commit a868929

Browse files
fix(scripts): exclude JS from SonarQube scan
The SonarQube scanner's JavaScript/TypeScript sensor activates on vendored JS files in src/main/webapp/js/ (jQuery, js.cookie, testsuiteutils) and attempts to start a Node.js bridge server, which times out in the scanner Docker container -- killing the entire scan. Add **/*.js to sonar.exclusions so the JS sensor never activates. This project benchmarks Java SAST tools only; SonarReport.java already filters to java:* rules, so JS findings were never collected. Closes #235
1 parent b7b159c commit a868929

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/runSonarQube.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ docker run --env SONAR_SCANNER_OPTS=-Xmx4g --rm -v ~/.m2:/root/.m2 -v "$(pwd)":"
7575
-Dsonar.host.url="$sonar_docker_host" \
7676
-Dsonar.login="$sonar_token" \
7777
-Dsonar.sources="src" \
78-
-Dsonar.exclusions="results/**,scorecard/**,scripts/**,tools/**,VMs/**"
78+
-Dsonar.exclusions="results/**,scorecard/**,scripts/**,tools/**,VMs/**,**/*.js"
7979

8080
echo "Waiting for SonarQube CE to finish task..."
8181

0 commit comments

Comments
 (0)