featurelint
by @suhteevah
Statically analyze code for feature flag hygiene issues like stale flags, SDK misuse, safety risks, and architecture problems before production deployment.
CI/CD Integration (GitHub Actions)
- name: FeatureLint
run: |
bash featurelint/scripts/dispatcher.sh scan \
--format json \
--output featurelint-report.json \
--severity warning \
./src
Baseline Workflow
# Create initial baseline
bash scripts/dispatcher.sh baseline ./srcAfter making changes, compare
bash scripts/dispatcher.sh compare ./src
Pre-commit with Error-Only Blocking
bash scripts/dispatcher.sh staged --severity error
| Flag | Description | Default |
|-------------------------|------------------------------------------------|------------|
| -f, --format | Output format: text, json, csv, markdown | text |
| -o, --output | Write report to file | (stdout) |
| -s, --severity | Minimum severity: error, warning, info, all | all |
| -c, --category | Filter by category code | all |
| -t, --tier | License tier: free, pro, team | free |
| -j, --jobs | Parallel scan workers | 4 |
| -i, --include | Include files matching pattern | (all) |
| -e, --exclude | Exclude files matching pattern | (none) |
| -C, --context | Context lines around findings | 2 |
| --scan-hidden | Include hidden files and directories | false |
| --warn-exit | Exit code 1 on warnings | false |
| -v, --verbose | Increase verbosity (-vv for trace) | 0 |
| -q, --quiet | Suppress non-essential output | false |
clawhub install featurelint