I am trying to use Shellcheck for doing static code analysis for shell scripts. I want to know the rules used to perform the analysis. Where can I get them?
Below is the sample output I got for simple helloworld program:
In C:\Users\~\Desktop\hello.sh line 1:
#!/bin/sh
^-- SC1017: Literal carriage return. Run script through tr -d '\r' .
In C:\Users\~\Desktop\hello.sh line 2:
# This is a comment!
^-- SC1017: Literal carriage return. Run script through tr -d '\r' .