If a script contains an unset variable, shellcheck should alert and recommend the use of 'set -u' and/or default values ("${VAR:-val}").
Current behaviour:
$ cat f.sh
#! /bin/sh
echo "${VAR}"
$ shellcheck f.sh
$
Desired example behaviour:
$ shellcheck f.sh
In /tmp/f.sh line 2:
echo "${VAR}"
^-- SC1234: Unbound variable. Use default value or ensure 'set -u' in your script.
$
If a script contains an unset variable, shellcheck should alert and recommend the use of 'set -u' and/or default values ("${VAR:-val}").
Current behaviour:
Desired example behaviour: