Code quality report

Code quality: wi-3-export-dialog

Health 71 β†’ 74 (UP). 0 Important, 1 Nit, 0 Good findings. Measured against main at 118c42c5b.

Status
UP Β· 74
Owner
Dana Okafor
Branch
wi-3-export-dialog
Base
main (118c42c5b)
Date
2026-12-02

Health

Metrics by file

Each cell shows the value at the base, then the value now. A dot shows the direction of a metric: green is better, red is worse, yellow is no change. Size has no dot.

Findings

Polish round 2 of 5 Β· level medium

Passes

  • Simplify: no finding. Checked: It read the round 1 fixes and the dialog files that round 1 did not read in full.
  • Code quality: 2 findings (1 🀝, 1 ⏸️). Checked: The code-quality Review role. The measure found one broken limit.
  • Code review: 1 finding (1 βœ…). Checked: It read the dialog, the poll and the round 1 fixes, against CLAUDE.md and both REVIEW.md guides.
  • Security review: no finding. Checked: The new code adds no HTML from strings, no request and no secret.

Findings of the round

#PassSeverityLocationFindingRemediationState
1Code reviewImportantsrc/export/dialog.ts:42The poll does not stop when the dialog closes.willDestroy() now cancels the poll. A new test shows the defect.Fixed in 3f9c2ab
2Code qualityImportantsrc/export/dialog.ts:88CQ-CC: stateLabel breaks CQ-CC (14).Accepted: Each branch is one state of the export job.
3Code qualityNitsrc/export/progress.ts:12The doc comment of percent is above the wrong function.Not fixed: Below the level of this round.

Notes

  • One finding of round 1 is accepted in accepted.json, and this round does not show it again.
  • A subagent ran this round, so each pass used the method of passes.md.

Review guides

  • REVIEW.md
  • src/export/REVIEW.md

Gates

  • pnpm lint: 1 passed, 0 failed
  • pnpm typecheck: 1 passed, 0 failed
  • pnpm test: 212 passed, 0 failed

Verify

The reviewer subagent confirmed each fix, reason and remediation.

History of the branch

The health of each run of this report on this branch.

Coupling of the changed modules

An arrow goes from a module to a module that it imports. Select a module to see its numbers.

Glossary

Direction. β–² UP the health went up by 1 or more. β–Ό DOWN it went down by 1 or more. β–  No change it is the same. ● NEW new code: there is no health at the base to compare with.

The health before and after. The health before is the mean of each function, at the base, of the product files that the change touches. The health after is the mean of each function, now, of the same files and of the new files. So one base and one set of changed files always give the same health before.

A score of 0. A function at two times its limit and a function at ten times its limit have the same score: 0. So a split of a very large function into functions that are still above a limit moves the health only a little. The length of a file is not in the health: CQ-LOC reports it.

The ratchet. A threshold applies to new or changed code only. A finding is a limit that the change broke or made worse.

Levels. Important: the change breaks a limit or a rule. Nit: a small step down, or a finding of a linter rule from skillsaw that the config of the repo does not have. Good: a step up.

Accepted. The team keeps the code as it is, and gives the reason. An accepted finding is not open, but its code stays in the health.

IDMetricThresholdMeasured byMeaning
CQ-HEALTHHealthdoes not go down; 80 or more is healthyskillsaw, from the lizard valuesA score from 0 to 100. Each function metric scores 100 at half of its limit, 50 at its limit and 0 at two times its limit or more. A function has the score of its worst metric. A file is the mean of its functions, weighted by code lines. The length of a file is not in the score: CQ-LOC reports it. The score before is the mean of each function, at the base, of the product files that the change touches. The score after is the mean of each function, now, of the same files and of the new files. Test files are not in the score.
CQ-CCCyclomatic complexity of a function≀ 10lizard (CCN)The number of paths through a function. Each branch, loop and boolean operator adds one.
CQ-FLOCCode lines of a function≀ 50lizard (NLOC)The lines of a function, with no blank lines and no comment lines.
CQ-PARAMParameters of a function≀ 5lizard (PARAM)The number of parameters of a function.
CQ-NESTNested control structures of a function≀ 5lizard -ENS (NS)The deepest stack of control structures in a function, as lizard counts it. In a language with braces, each else if adds one level.
CQ-BRANCHBranches, returns and statements of a function0 new findings, with the defaults of the linterthe linter of the languageThe findings of the linter rules that count branches, returns, statements or perceived complexity, on changed lines.
CQ-SIMPSimplification smells0 new findingsthe linter of the languageThe findings of the linter rules for code that has a simpler form, on changed lines. Examples: an else after a return, an if that is alone in an else. skillsaw applies its own list of rules on top of the config of the repo. A finding of a rule that the config of the repo does not enable is a Nit.
CQ-LOCCode lines of a filea file does not grow past 400lizard (file NLOC)The lines of a file, with no blank lines and no comment lines.
CQ-COUPCoupling: Ce, Ca and instabilityinstability goes up by no more than 0.05 on a module with 10 or more importersthe dependency tool of the languageCe is the number of project modules that a module imports. Ca is the number of project modules that import it. Instability is Ce/(Ca+Ce): 0 is stable, 1 is unstable. A module with many importers must stay stable.
CQ-LCOM4Cohesion of a classa class does one jobreviewA class is cohesive when its methods use the same fields. Groups of methods that share no field are a sign of two classes in one.
SM-RULEState machine rule0 new breaksreview, with rules/state-machines.mdA status field or a set of dependent flags is an explicit machine. Code does not set the field with no event.
CQ-ENUMString comparison where an enum is necessary0 newreview, with rules/enum-comparisons.mdCode compares a domain value with a string literal and not with an enum member.
CQ-N1Query count of one requestno growth with the row countreview, and a query count assertion in the testsA loop that runs one query for each row (N+1).
CQ-COVTests for the changed behavioreach change of behavior has a testreview of the diffA change of behavior with no test that fails without it.

Thresholds of this report

LanguageCQ-CCCQ-FLOCCQ-PARAMCQ-NESTCQ-LOC
Python105055400

Interview record

No interview record. The report used the default for each choice: the base that the CLI found and the thresholds of .skillsaw/config.json.

Changelog

DateAuthorChange
2026-12-01Dana OkaforMeasured 1d0c4e2: health 71.
2026-12-02Dana OkaforMeasured 3f9c2ab: health 74.

Made by skillsaw quality report. The numbers come from lizard, the linter of each language and a dependency tool. This report is advice. It is not a gate.