Open petersipos opened 5 years ago
When sonar-scanner try to scan a *.sh shell file it throws an error:
11:54:30.693 INFO: Sensor ShellCheck Sensor [shellcheck] 11:54:30.693 DEBUG: ShellCheck sensor executed with context: org.sonar.scanner.sensor.ModuleSensorContext@31228d83 11:54:30.693 DEBUG: Analyzing file: collectDependencies.sh 11:54:30.694 DEBUG: Executing command: [shellcheck, -x, -f, json, /builds/*****/*****/debinstall/collectDependencies.sh] 11:54:30.699 ERROR: Error executing command java.io.IOException: Cannot run program "shellcheck": error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ... Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 32 common frames omitted 11:54:30.699 INFO: Sensor ShellCheck Sensor [shellcheck] (done) | time=6ms
A https://hub.docker.com/r/koalaman/shellcheck-alpine docker image is available for that purpose.
When sonar-scanner try to scan a *.sh shell file it throws an error:
A https://hub.docker.com/r/koalaman/shellcheck-alpine docker image is available for that purpose.