What does HackerNews think of shellcheck?
ShellCheck, a static analysis tool for shell scripts
https://github.com/bash-lsp/bash-language-server
"Secret Sauce", why is this secret at all.
Nothing against the author who's helping the ecosystem here, but is there an authoritative guide on Bash that anyone can recommend?
Hopefully something that's portable between Mac & Linux.
The web is full of contradictory guides and shellcheck seems to be the last line of defense.
https://github.com/koalaman/shellcheck
Crucially it shows where on the line the error is in case I've got some large piped one-liner which might have a problem.
https://learn.microsoft.com/en-us/visualstudio/python/lintin...
If you also want a linter for bash, check out shellcheck: https://github.com/koalaman/shellcheck
Shellcheck makes writing shell scripts bearable and dare I say somewhat enjoyable. They have managed to collate all the shell scripting potholes and tribal knowledge into one static analysis tool. No shell script now gets checked in at work or on my personal machine without being pumped through shellcheck.
docker run --rm -v "$PWD:/mnt" koalaman/shellcheck:stable myscript
[1] https://github.com/koalaman/shellcheck