Lint before a run
In the terminalela --spec lint-before-a-run
ela --lint - finds what can be found wrong without running anything: a typo in a name, a wrong
call, a secret in a command's arguments. Run it on each script before you hand the script to ela.
$ ela --lint - <<'EOF'count = 0echo $nmaeEOFstdin:1:1: warning: count is assigned and never readstdin:2:6: error: undefined variable $nmae: no line assigns it
- It reads the same here-document as
eladoes. - Only an error exits 1.
--jsongivesfile(stdinfor-),okandfindings. Each finding hasline,col,severityandmessage.--checkgives only the first parse error, each import that finds no file or takes a built-in package's name, and each call that names no proc.
(ela --spec what-lint-finds)