Features / Code Alerts
Code alerts that surface risk before it ships.
Spec This evaluates code complexity metrics and triggers alerts when functions, files, or repositories exceed thresholds so teams can act early.
Alerts are guidance, not verdicts.
Alert snapshot
Trigger
Branch count exceeded medium threshold.
Impact
- Function complexity trending upward
- More test paths required
- Refactor recommendation available
The problem
Complexity creeps in silently. The first time you feel it is often during a risky change or a failed review.
Alerts give teams early signals so they can respond before complexity turns into instability.
Risk shows up in metrics before it shows up in outages.
What Code Alerts are
Code Alerts monitor a set of complexity metrics and notify you when thresholds are exceeded.
They are configurable at the organization level with sensitivity presets and custom thresholds.
Alerts help teams decide where to refactor, not how to refactor.
Alert metrics
- Symbol-level: nesting depth, branch count, logical lines of code (LOC).
- File-level: total file line count.
- Repository-level: parse failure rate.
Each metric has recommended thresholds and refactoring guidance in the docs.
Alert severity
Alerts are graded by how far a metric exceeds its threshold.
Info indicates slight overages, Warning indicates moderate overages, and Critical indicates significant overages that warrant immediate attention.
Severity helps prioritize, not police.
Thresholds and sensitivity
- Choose from High, Medium, or Low sensitivity presets.
- Override thresholds per metric to match team standards.
- Tune for criticality: stricter for sensitive code, looser for legacy.
- Use alerts as trends over time, not just one-off flags.
Best practices
Start with medium sensitivity, review alerts during code review, and focus on gradual improvement rather than fixing every alert immediately.
What Code Alerts are NOT
- Not a replacement for code review judgment.
- Not a static linter with hard rules.
- Not an excuse to ignore context and business needs.
Get Code Alerts
Sign up to connect your repo, set thresholds, and surface risk signals before they ship.
