Skip to content

flaglint scan

flaglint scan performs AST-based inventory of supported direct LaunchDarkly Node.js server SDK calls.

Terminal window
npx flaglint scan ./src
OptionDescription
--format jsonWrite structured JSON.
--format markdownWrite a Markdown report.
--format htmlWrite an HTML report.
--format sarifWrite inventory SARIF. Use validate --format sarif for policy enforcement.
--output <file>Write report to a file.
--config <path>Use an explicit config file.
--exclude-testsExclude test/spec files and test directories.

Generated from examples/enterprise-checkout-service/src:

- Scanning ./examples/enterprise-checkout-service/src...
✓ 20 flag usages found across 11 unique flags (90ms)
ℹ 1 dynamic flag key(s) require manual review
## Usages by File
### checkout.ts
- Line 40: `checkout-v2` (boolVariation)
- Line 49: `payment-provider` (stringVariation)
- Line 58: `one-click-checkout` (boolVariation)
- Line 67: `checkout-currency` (stringVariation)

scan exits 1 only when configured review signals mark non-dynamic, non-bulk flags as stale candidates. A one-file flag is not stale by default because minFileCount defaults to 0.