>_ IzzyLab

Topic breakdown

shellcheck is a static analyzer for shell scripts: it doesn't run the code but parses it and prints the problems it finds, each with its own code of the form SCxxxx and an explanation; a non-zero exit code signals that there are warnings. The task isn't to fix the script, but to extract only the warning identifier from the linter's output by filtering it against a pattern. It helps to know that shellcheck has compact output formats that are easier to parse.

What's checked

  1. warning code written
  2. code format is correct

What it looks like