Bashcritic is a software tool that can analyze shell scripts for typical hazards and errors.
Using bashcritic is simple. Just enter the command "bashcritic" followed by various options, such as the severity level you prefer and the shell type (either POSIX or Bourne). You can also list the results in different formats, including trac for the trac wiki.
To install bashcritic globally, you'll need root or superuser permissions. From the src directory, use the following commands: "perl Makefile.PL", "make", and "make install". Alternatively, you can install it locally by running "perl Makefile.PL PREFIX=${HOME}", "make", and "make install". This will place the files in ${HOME}/bin, ${HOME}/lib, and ${HOME}/man.
The latest release of bashcritic includes several new features, including better usage documentation and the removal of perlcritic output levels. Now there are only three levels: error, cosmetic, and info. Bashcritic also now detects the shell type from the shebang and has added new checks. Additionally, version.pm has been added to the distribution since it is necessary for Makefile.PL.
Overall, bashcritic is a valuable tool for anyone working with shell scripts. The development team is dedicated to improving it and welcomes any feedback you may have.
Version 0.3.2: N/A