Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Missing koalaman/shellcheck for inspecting shell scripts #44

Open
petersipos opened this issue Apr 11, 2019 · 0 comments
Open

Missing koalaman/shellcheck for inspecting shell scripts #44

petersipos opened this issue Apr 11, 2019 · 0 comments

Comments

@petersipos
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant