Hacker News new | ask | show | jobs
by johnvaluk 507 days ago
Is it possible to override shellcheck? It's a valuable tool that I use all the time, but it reports many false positives. It's not unusual for junior developers to introduce bugs in scripts because they blindly follow the output of shellcheck.
1 comments

A comment before the problematic line can specify options to shellcheck, (e.g)

# shellcheck disable=SC2086

which remain valid within that block.

Of course, disabling the linter should be done with deliberation...