Skip to content

Qang Check

The qang check command runs static analysis on QangLang code without executing it. This is useful for catching errors early in development and validating code before running tests or deploying.

Terminal window
qang check <path> [options]
  • <path> - Path to a QangLang file or directory to check (required)
    • If a directory is provided, all .ql files will be checked recursively
  • --eformat / -e - Error message format (default: verbose)
    • minimal - Shows minimal error information
    • compact - Shows compact error messages
    • verbose - Shows detailed error messages with full context
Terminal window
qang check src/main.ql
Terminal window
qang check src/

Ignore specific files or directories:

Terminal window
qang check src/ --ignore "test_*.ql" --ignore "examples/"
Terminal window
qang check src/ --eformat minimal
  • 0 - All checks passed successfully
  • 1 - One or more checks failed