asymptote scan
Scan code for security vulnerabilities and policy violations.Usage
Scan the current directory:Example output
Example output
Flags
| Flag | Type | Description |
|---|---|---|
--path <path> | string | Path to scan (default: current directory) |
--rules <rules> | string[] | Specific rules to check |
--exclude <patterns> | string[] | Glob patterns to exclude |
--severity <level> | string | Minimum severity to report (low, medium, high, critical) |
--fix | bool | Automatically fix issues where possible |
--format <format> | string | Output format (text, json, sarif) |
Examples
Filter by severity
Only show high and critical issues:Exclude patterns
Exclude test files and node_modules:Output as JSON
SARIF output for CI/CD
Auto-fix issues
Not all issues can be auto-fixed. The CLI will report which issues were fixed and which require manual intervention.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | No issues found |
| 1 | Issues found |
| 2 | Error during scan |
Next: Watch mode
Enable continuous scanning with watch mode.

