What are Checks?
Checks are automated validators that scan your project for common issues, misconfigurations, and best practice violations. Each check runs independently and reports its findings with actionable recommendations.Available Checks
Dependencies
Scans for outdated npm packages and major version drift
Environment
Validates .env and .env.example synchronization
License
Ensures your project has a LICENSE file
Engine
Verifies Node.js version requirements
Circular
Detects circular dependency chains
Check Statuses
Every check returns one of four statuses:pass
pass
Everything looks good. No action required.Example:
warn
warn
Potential issues detected, but not critical. Consider addressing.Example:
fail
fail
Critical issues found. Must be fixed.Example:
skip
skip
Check couldn’t run (e.g., no package.json found). Not an error.Example:
How Checks Run
Checks execute sequentially duringstackprobe audit. Each check:
- Analyzes relevant files in your project
- Validates against best practices and requirements
- Reports findings with severity levels (info/warn/error)
- Suggests fixes when possible
Check execution is fast — typically under 2 seconds for all checks combined.
Check Architecture
The check system is defined in/src/runner.ts:28-34:
CheckResult object:
Running Specific Checks
You can run individual checks or filter them:JSON Output
For CI integration, use JSON mode:Output Example
Error Handling
If a check crashes unexpectedly, it won’t break the entire audit:- The check reports as fail with an error message
- Other checks continue to run
- Full stack trace is logged for debugging
/src/runner.ts:58-71 for implementation details.
Next Steps
Configure Checks
Customize which checks run in your project
CI Integration
Add StackProbe to your CI/CD pipeline