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.
qang check <path> [options]Arguments
Section titled “Arguments”<path>- Path to a QangLang file or directory to check (required)- If a directory is provided, all
.qlfiles will be checked recursively
- If a directory is provided, all
Options
Section titled “Options”--eformat/-e- Error message format (default:verbose)minimal- Shows minimal error informationcompact- Shows compact error messagesverbose- Shows detailed error messages with full context
Examples
Section titled “Examples”Check a Single File
Section titled “Check a Single File”qang check src/main.qlCheck an Entire Directory
Section titled “Check an Entire Directory”qang check src/Check with Ignore Patterns
Section titled “Check with Ignore Patterns”Ignore specific files or directories:
qang check src/ --ignore "test_*.ql" --ignore "examples/"Use Minimal Error Format
Section titled “Use Minimal Error Format”qang check src/ --eformat minimalExit Codes
Section titled “Exit Codes”0- All checks passed successfully1- One or more checks failed