Solution · CI
CI quality gate
For platform and frontend teams that want a quality gate on Vue and Nuxt code, the-doctor fails a CI job on a score threshold, on a severity, or both, with stable exit codes and SARIF output for GitHub code scanning and GitLab code quality. The score is deterministic, so the gate never flakes: the same commit passes or fails the same way on every runner.
GitHub Actions
Use geoql/doctor-action@v2, or run the CLI and upload SARIF yourself.
- run: npx -y @geoql/vue-doctor --format sarif --output .doctor/report.sarif --fail-on warn
- uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: .doctor/report.sarif
category: doctorGitLab CI and anything else that runs Node
GitLab renders the SARIF in the merge request Code Quality widget. ci install --provider gitlab writes a gate-only job.
doctor:
image: node:24
script:
- npx -y @geoql/vue-doctor --format sarif --output doctor.sarif --fail-on warn
artifacts:
when: always
reports:
codequality: doctor.sarifPick gates per branch
Keep the gate in doctor.config.ts so local runs and CI agree. A common setup:
- Pre-commit: failOn error, threshold 50, with --staged.
- Pull requests: failOn error, threshold 80, with --diff or --changed-files-from origin/main.
- Release branches: failOn warn, threshold 90, full audit.
Exit codes you can script against
0 means pass, 1 means a gate tripped, and 2 means invalid arguments, missing config, or a crash. Treat 2 as an infrastructure failure, not a code-quality result.