Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super-Linter Bash linting errors #321

Open
jbampton opened this issue Nov 18, 2024 · 0 comments
Open

Super-Linter Bash linting errors #321

jbampton opened this issue Nov 18, 2024 · 0 comments

Comments

@jbampton
Copy link
Member

 2024-11-18 01:21:20 [INFO]   Linting BASH items...
  Error: -18 01:21:20 [ERROR]   Found errors when linting BASH. Exit code: 1.
  2024-11-18 01:21:20 [INFO]   Command output for BASH:
  ------
  
  In /github/workspace/build-linux.sh line 36:
  	if [ $? -ne 0 ]; then
               ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.
  
  
  In /github/workspace/build-linux.sh line 44:
  gcc -o "$output" *.o
                   ^-- SC2035 (info): Use ./*glob* or -- *glob* so names with dashes won't become options.
  
  
  In /github/workspace/build-linux.sh line 45:
  if [ $? -ne 0 ]; then
       ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.
  
  
  In /github/workspace/build-linux.sh line 56:
  if [ $? -ne 0 ]; then
       ^-- SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?.
  
  
  In /github/workspace/build-webassembly.sh line 45:
  if [ $? -eq 0 ]; then
       ^-- SC2181 (style): Check exit code directly with e.g. 'if mycmd;', not indirectly with $?.
  
  For more information:
    https://www.shellcheck.net/wiki/SC2035 -- Use ./*glob* or -- *glob* so name...
    https://www.shellcheck.net/wiki/SC2181 -- Check exit code directly with e.g...
  ------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant