bootspring_quality
Run quality gates to ensure code meets standards before committing, pushing, or deploying.
Overview
The bootspring_quality tool runs automated quality checks on your code. It supports different gates for different stages of development.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
gate | string | Yes | Quality gate: pre-commit, pre-push, pre-deploy, full |
files | array | No | Specific files to check (defaults to changed files) |
options | object | No | Gate options |
Options Object
| Option | Type | Default | Description |
|---|---|---|---|
autoFix | boolean | false | Auto-fix issues when possible |
failOnWarning | boolean | false | Treat warnings as errors |
verbose | boolean | false | Show detailed output |
exclude | array | [] | Patterns to exclude |
Quality Gates
Pre-commit Gate
Fast checks suitable for every commit:
Use the bootspring_quality tool with:
- gate: "pre-commit"
- options: { autoFix: true }
Checks included:
- Linting (ESLint)
- Formatting (Prettier)
- Type checking (TypeScript)
- Import sorting
- File naming conventions
Pre-push Gate
More thorough checks before pushing:
Use the bootspring_quality tool with:
- gate: "pre-push"
Checks included:
- All pre-commit checks
- Unit tests
- Test coverage threshold
- Build verification
- Bundle size check
Pre-deploy Gate
Comprehensive checks before deployment:
Use the bootspring_quality tool with:
- gate: "pre-deploy"
Checks included:
- All pre-push checks
- Integration tests
- E2E tests
- Security scan
- Performance audit
- Accessibility check
Full Gate
All available checks:
Use the bootspring_quality tool with:
- gate: "full"
Response Format
Success Response
Loading code block...
Failure Response
Loading code block...
Check Types
Lint Check
Loading code block...
Format Check
Loading code block...
Type Check
Loading code block...
Test Check
Loading code block...
Security Check
Loading code block...
Custom Checks
Add custom quality checks:
Loading code block...
Git Hooks Integration
Set up automatic quality gates with git hooks:
Loading code block...
CI/CD Integration
GitHub Actions
Loading code block...
Best Practices
Gate Selection
| Stage | Gate | Frequency |
|---|---|---|
| Every commit | pre-commit | High |
| Before PR | pre-push | Medium |
| Before deploy | pre-deploy | Low |
Performance
- Use
pre-commitfor fast feedback - Run heavier checks in CI
- Cache results when possible
Configuration
- Start strict, relax if needed
- Document exceptions
- Review thresholds regularly
Related Tools
- bootspring_analyze - Deeper code analysis
- bootspring_config - Configure quality settings