ShellCheck

Add caption




ShellCheck is a static analysis and linting tool for sh/bash scripts. It’s mainly focused on handling typical beginner and intermediate level syntax errors and pitfalls where the shell just gives a cryptic error message or strange behavior, but it also reports on a few more advanced issues where corner cases can cause delayed failures.
The goals of ShellCheck are:
  • To point out and clarify typical beginner’s syntax issues, that causes a shell to give cryptic error messages.
  • To point out and clarify typical intermediate level semantic problems, that causes a shell to behave strangely and counter-intuitively.
  • To point out subtle caveats, corner cases and pitfalls, that may cause an advanced user’s otherwise working script to fail under future circumstances.

How to get ShellCheck?



If you are an Arch user, you can get ShellCheck from AUR repository with this following command.

yaourt shellcheck

Add caption
lanjut bacaa klik di sini