DEV Community

Lisa Dean
Lisa Dean

Posted on

Static Code Analysis for Shell Scripts (or Protecting Yourself From Foot Guns)

I ran across ShellCheck, a static code analysis tool for shell scripts, the other day. Turns out there’s a vscode extension for it, too.

It's really helpful to point out where you should be double-quoting variable substitutions (or maybe you used a single quote because you thought it works the same) among many other pitfalls in writing shell scripts.
ShellCheck example

Top comments (0)