3 ms·
Shellcheck is useful if you are learning shell, but it gets really annoying over time with its amount of false positives. Its still a static checker that does n
by blueflow 4y ago
Shellcheck is useful if you are learning shell, but it gets really annoying over time with its amount of false positives. Its still a static checker that does not understand context. I've seen too many scripts where half of all comments lines were shellcheck disables.
- return_to_monke 4y agoI'd rather have false lints than miss lints
- Too 4y agoIn my experience false positives are rare. You need to a take some time to actually understand the warnings to know how to avoid them, often there is some edge case lurking even the most trivial code. I see a lot of people are way too quick on dismissing the warnings, because they are overconfident that they know shell, when in fact most people don't have the slightest clue on the amounts of footguns hidden.