View all results

Check

The check command compiles FQL scripts without executing them, reporting any syntax or semantic errors.

terminal
ferret check script.fql

If the script is valid, the command exits silently with code 0.

Check multiple files

Pass multiple files to check them in a single run:

terminal
ferret check script.fql utils.fql

Or use a glob:

terminal
ferret check *.fql

When any file has errors, the command prints the diagnostics and exits with a summary:

2 of 5 scripts have errors

Read from stdin

Pipe a script through stdin:

terminal
cat script.fql | ferret check

Use in CI

The check command returns a non-zero exit code when errors are found, making it suitable for CI pipelines:

- name: Lint FQL scripts
  run: ferret check src/**/*.fql

Next steps