The linter will throw warnings and errors with shellcheck versions >=
Backport of core PR16327 (which implies PR14115, PR15164 and PR15166)
Note that the rule SC1117 (from PR14115) is still excluded as it would
throw false positives. It has been removed from shellcheck versions >
0.5.0, but I kept it for compatibility with previous versions (i.e.
Debian buster has 0.5.0).
See https://github.com/koalaman/shellcheck/wiki/SC1117 for details.