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#

ParameterTypeRequiredDescription
gatestringYesQuality gate: pre-commit, pre-push, pre-deploy, full
filesarrayNoSpecific files to check (defaults to changed files)
optionsobjectNoGate options

Options Object#

OptionTypeDefaultDescription
autoFixbooleanfalseAuto-fix issues when possible
failOnWarningbooleanfalseTreat warnings as errors
verbosebooleanfalseShow detailed output
excludearray[]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#

StageGateFrequency
Every commitpre-commitHigh
Before PRpre-pushMedium
Before deploypre-deployLow

Performance#

  • Use pre-commit for fast feedback
  • Run heavier checks in CI
  • Cache results when possible

Configuration#

  • Start strict, relax if needed
  • Document exceptions
  • Review thresholds regularly