main/d91f04/code-health
d91f04feat: watch code health over time main

Code quality you can see moving.

Code Health tracks maintainability, duplication, complexity and coverage on changed lines for every repository and folder, week by week. Each PR shows its effect on the score before it merges.

Code Health · checkout-service · 12 weeks+15 since week 1
Health score86+4 this week
Duplication3.1%-0.3 pts
Avg. complexity7.4-0.6
Changed-line coverage78%target 80%
Health score Duplication %
CHANGELOG Code Health

What goes into the score

One health score from 0 to 100, made of measures your team already argues about in review. Every component can be inspected on its own.

MaintainabilityFunction length, nesting depth, parameter counts and file size relative to your codebase.
DuplicationCopy-pasted blocks across files, including near-duplicates with renamed variables.
ComplexityCyclomatic and cognitive complexity, with the worst offenders listed by function.
Coverage on changed linesNot total coverage, which hides gaps, but coverage of the code each PR actually touched.
Score impact per PREvery pull request shows a before and after, like "82 to 86 if suggestions are accepted".

Weekly trend

Repo and folder level charts show whether quality is improving or drifting.

Quality gates

Block or warn on merges that push complexity or duplication past limits you choose.

Duplication finder

See exactly which blocks are duplicated and where, ready for an extract-function PR.

Folder breakdown

Compare services, packages or modules side by side within a monorepo.

Weekly digest

A short Slack summary of what got better, what got worse and why.

Targets per repo

Set a health target per repository and track progress across quarters.

git log --questions code-health

Common questions

It is consistent within a language, but codebases differ. We recommend tracking each repository against its own history rather than ranking teams.

For coverage on changed lines, yes. Megicoder reads standard formats such as LCOV, Cobertura and JaCoCo from your pipeline.

Code Health is part of the Team and Enterprise plans.

git merge feat/first-review into main

Review your
first repo free.

One repository, AI review on every pull request, no time limit. Connect it in about five minutes and the next PR gets a first pass in under a minute.

Review 1 repo free