In short
Quality Governance puts numbers on code quality. It measures the complexity of every function, finds copied blocks of code, and holds the checks every pull request must pass before it merges.
What it measures
- Cognitive complexity: how hard a function is to follow.
- Cyclomatic complexity: how many paths run through a function.
- Duplication: copied blocks of 100 tokens over 10 lines or more. Test files are left out of the totals.
It measures JavaScript, TypeScript, Python, C#, PHP, Java, Kotlin and Go. Test coverage comes from your own CI, which sends the report after your tests run.
What you see
- Overview: totals from the last build, the last 3 builds side by side, and a split by language.
- Functions: every function with its complexity, sorted the way you choose.
- Files: every file with its lines, complexity and duplicated lines.
- Duplications: files with copied blocks, and where each copy sits.
- Settings: the checks every pull request must pass before it merges.
The pull request gate
The Settings tab holds the quality gate for your pull requests: leaked secrets, vulnerable or malicious dependencies, security issues, and limits on duplication and complexity in new code. AI pull request review runs it on every plan: 1 pull request a day on Free and Watch, every one on Guard and Shield.
How to use it
- Add a project at app.vibedoctor.io and connect GitHub or upload your code.
- Run a scan. The numbers come with the code map build, a minute or so after the code scan.
- Open Quality Governance from the Code menu.
FAQ
Which plans include it?
The measurements come with every code scan, on every plan, including the Free Week. The pull request gate runs on every plan: 1 pull request a day on Free and Watch.
Which languages does it measure?
JavaScript, TypeScript, Python, C#, PHP, Java, Kotlin and Go.
Does it measure test coverage?
Yes, from your own CI. Your tests run there, and it sends the coverage report to VibeDoctor.
Can I leave a file out of duplication?
Yes. The project owner can ignore a file with the eye icon. It is left out from the next build, and you can count it again at any time.
Does VibeDoctor keep my source code?
We scan your code, then delete our copy automatically.