ela
Contents

ManualAgents

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 ela does.
  • Only an error exits 1.
  • --json gives file (stdin for -), ok and findings. Each finding has line, col, severity and message.
  • --check gives 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)