Exit Codes
FlagLint uses a stable, machine-readable exit code contract guaranteed across all v1.x releases. See the full Exit Codes reference for CI examples and rationale.
Exit Code Table
Section titled “Exit Code Table”| Code | Meaning | When it occurs |
|---|---|---|
0 | Success — no blocking failures. | Scan completed; no policy violations found. |
1 | Policy or validation failure. | validate --no-direct-launchdarkly found direct LD calls; new findings beyond baseline (--fail-on-new); dirty working tree without --allow-dirty. |
2 | Invalid input. | Bad --format value; missing or malformed baseline or config file. |
3 | Internal FlagLint error. | Unexpected runtime exception in FlagLint itself. |
130 | Interrupted with SIGINT (Ctrl-C). |
Command Notes
Section titled “Command Notes”auditalways exits0— it is informational only.scanexits1when configured stale/review signals produce blocking candidates.migrate --dry-runexits0after printing a plan.migrate --applyexits1on a dirty working tree unless--allow-dirtyis used.validate --no-direct-launchdarklyexits1when direct LaunchDarkly evaluation calls are found.validate --baseline <file> --fail-on-newexits1when any finding fingerprint is absent from the baseline.