Code quality: wi-3-export-dialog
Health 71 → 74 (UP). 0 Important, 1 Nit, 0 Good findings. Measured against main at 118c42c5b.
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
| # | Pass | Severity | Location | Finding | Remediation | State |
|---|---|---|---|---|---|---|
| 1 | Code review | Important | src/export/dialog.ts:42 | The poll does not stop when the dialog closes. | willDestroy() now cancels the poll. A new test shows the defect. | Fixed in 3f9c2ab |
| 2 | Code quality | Important | src/export/dialog.ts:88 | CQ-CC: stateLabel breaks CQ-CC (14). | Accepted: Each branch is one state of the export job. | |
| 3 | Code quality | Nit | src/export/progress.ts:12 | The 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.mdsrc/export/REVIEW.md
Gates
pnpm lint: 1 passed, 0 failedpnpm typecheck: 1 passed, 0 failedpnpm 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.
| ID | Metric | Threshold | Measured by | Meaning |
|---|---|---|---|---|
| CQ-HEALTH | Health | does not go down; 80 or more is healthy | skillsaw, from the lizard values | A 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-CC | Cyclomatic complexity of a function | ≤ 10 | lizard (CCN) | The number of paths through a function. Each branch, loop and boolean operator adds one. |
| CQ-FLOC | Code lines of a function | ≤ 50 | lizard (NLOC) | The lines of a function, with no blank lines and no comment lines. |
| CQ-PARAM | Parameters of a function | ≤ 5 | lizard (PARAM) | The number of parameters of a function. |
| CQ-NEST | Nested control structures of a function | ≤ 5 | lizard -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-BRANCH | Branches, returns and statements of a function | 0 new findings, with the defaults of the linter | the linter of the language | The findings of the linter rules that count branches, returns, statements or perceived complexity, on changed lines. |
| CQ-SIMP | Simplification smells | 0 new findings | the linter of the language | The 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-LOC | Code lines of a file | a file does not grow past 400 | lizard (file NLOC) | The lines of a file, with no blank lines and no comment lines. |
| CQ-COUP | Coupling: Ce, Ca and instability | instability goes up by no more than 0.05 on a module with 10 or more importers | the dependency tool of the language | Ce 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-LCOM4 | Cohesion of a class | a class does one job | review | A 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-RULE | State machine rule | 0 new breaks | review, with rules/state-machines.md | A status field or a set of dependent flags is an explicit machine. Code does not set the field with no event. |
| CQ-ENUM | String comparison where an enum is necessary | 0 new | review, with rules/enum-comparisons.md | Code compares a domain value with a string literal and not with an enum member. |
| CQ-N1 | Query count of one request | no growth with the row count | review, and a query count assertion in the tests | A loop that runs one query for each row (N+1). |
| CQ-COV | Tests for the changed behavior | each change of behavior has a test | review of the diff | A change of behavior with no test that fails without it. |
Thresholds of this report
| Language | CQ-CC | CQ-FLOC | CQ-PARAM | CQ-NEST | CQ-LOC |
|---|---|---|---|---|---|
| Python | 10 | 50 | 5 | 5 | 400 |
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
| Date | Author | Change |
|---|---|---|
| 2026-12-01 | Dana Okafor | Measured 1d0c4e2: health 71. |
| 2026-12-02 | Dana Okafor | Measured 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.