Quality gates pipeline ਵਿੱਚ automated checks ਹਨ ਜੋ code ਨੂੰ ਅੱਗੇ ਵਧਣ ਲਈ ਪਾਸ ਕਰਨੇ ਜ਼ਰੂਰੀ ਹਨ — ਜਿਸ ਵਿੱਚ tests, linting, static analysis, coverage thresholds, ਅਤੇ security scans ਸ਼ਾਮਲ ਹਨ। ਇਹ quality standards ਨੂੰ automatically enforce ਕਰਦੇ ਹਨ, ਮਿਆਰ ਤੋਂ ਘੱਟ code ਨੂੰ production ਵੱਲ ਵਧਣ ਤੋਂ ਰੋਕਦੇ ਹਨ।
Quality gates ਕੀ ਹਨ
A QUALITY GATE is an automated CHECK that code must PASS to advance in the pipeline:
→ if the check fails, the pipeline STOPS (code doesn't merge/deploy)
→ enforces standards AUTOMATICALLY and consistently (not relying on humans to remember)
→ "Code must meet these standards to proceed" — automated, objective gates.
Common quality checks
✓ TESTS — automated tests must pass (the primary gate)
✓ LINTING — code style/format consistency (ESLint, Prettier, etc.)
✓ STATIC ANALYSIS — detect bugs, code smells, complexity (SonarQube, etc.)
✓ CODE COVERAGE — require a minimum test coverage threshold (e.g. ≥80%)
✓ SECURITY SCANS — dependency vulnerabilities (SCA), code (SAST), secrets detection
✓ BUILD must succeed; type checking (TypeScript, etc.)
✓ Sometimes: performance budgets, bundle size limits, accessibility checks
