A very strict static ASGS configuration file checker.
Please record as an ASGS Issue - https://github.com/StormSurgeLive/asgs/issues
Be sure to us the asgs-lint label.
No options are required if ASGS_CONFIG is set:
./asgshload profile # (select profile)asgs-lint # command is available via PATH- if
asgs-lintfinds an issue with the config it'll exit; fix the issue and rerun until there are no more issues found
Run inside of asgsh with a profile loaded. Without any options ASGS_CONFIG
is examined for required or highly recommended settings. asgs-lint fails
on the first problem found. Fix the problem, then run again until there
are no more issues found.
This tool is a static analysis tool; meaning it examines the text of ASGS_CONFIG
and any files contained therein as long as the file paths may be determined
without executing or sourceing any shell scripts.
| Option | Meaning |
|---|---|
--help |
This help text |
--config path/to/config.sh |
Check a config other than ASGS_CONFIG |
--list vars |
Summary of required variables and descriptions |
--list disallowed |
Summary of variables forbidden because they conflict with important environmental variables |
This script is meant to be updated whenever new static checks are needed; usually as a result of a long debugging session that could have been caught using a static checker tool like this one.