Forrest logo
back to the shellcheck tool

shellcheck:tldr:53174

shellcheck: Ignore one or more error types.
$ shellcheck --exclude ${SC1009,SC1073} ${path-to-script-sh}
try on your machine

This command is using the "shellcheck" utility to analyze a shell script file (with a .sh extension) located at "path-to-script.sh" and provide warnings and suggestions for improving its quality and correctness.

However, the command also includes options to exclude certain types of shellcheck diagnostics. Specifically, it excludes the diagnostic codes SC1009 and SC1073. These codes are identifiers for specific issues that shellcheck can detect in shell scripts.

By excluding these diagnostic codes, the command instructs shellcheck not to provide any warnings related to the issues identified by SC1009 and SC1073. This can be useful if you have already reviewed and confirmed that the highlighted issues are intentional or not relevant for your script.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the shellcheck tool