bashcritic is a tool to check bash scripts for common pitfalls.
|Tags||Software Development Quality Assurance|
Release Notes: A syntax error in a check rule which prevented the tool from running correctly was corrected.
Release Notes: Usage documentation was added. The perlcritic outputlevels were removed, so now there are error, cosmetic, and info only. The shell is detected from the shebang. New checks were added. version.pm was added to the distribution (since it is needed by Makefile.PL).
Release Notes: Rules are not checked in comments and strings. Warnings are no longer grouped by type but sorted by line number. New checks were added. A bug in which --help was ignored was fixed. The shebang is now patched by Makefile.PL/make.
Release Notes: An error in rule definition that caused bashcritic to stop before executing all the rules was fixed.
Release Notes: The field shells is now an array reference. A given rule is checked only for a set of shells. 80 columns seems to be what is usually recommended (Sun and Linux kernel). The FUNCTION description has been reworded. Command substitution of the form "$(COMMAND)" is not accepted when --bourne is specified. The ">&" type of redirection is in the POSIX standard and is now accepted. The advice about arithmetic compounds has been removed. This release will warn about here string for every shell. EXPORT_ASSIGN has been reformatted, which is only relevant for Bourne. There is a new rule about export and variable quoting.