| 1 | Simplify | Important | packages/cli/src/design/player.ts:17 | The page script had its own copy of the graph types and of the page data type. The copy had type: string, so the compiler did not check === 'parallel'. | The three interfaces are gone. The page data type is now Analysis without the three fields that page.ts removes. | Fixed in debe71e |
| 2 | Simplify | Nit | packages/cli/src/design/page.ts:15 | The change has three functions that escape HTML text, in analyze.ts, page.ts and player.ts. Only one of them escapes the single quote. | None. | Not fixed: below the level |
| 3 | Simplify | Nit | packages/cli/src/design/commands.ts:63 | The text of a design with problems is made in two places, here and in page.ts:110. | None. | Not fixed: below the level |
| 4 | Simplify | Nit | packages/cli/src/design/player.ts:617 | The close button of a note clears noted and then shows a note for a path that no state has, which sets noted again. | None. | Not fixed: below the level |
| 5 | Code quality | Important | packages/cli/src/design/analyze.ts:717 | analyzeDesign did nine jobs in one body: complexity 115, 232 code lines, 7 nested levels, and too many statements for the linter. | Each job is now one function (readNotes, readReasons, checkEvents, checkActions, checkUi, checkHeader, checkedScxml, readTargets, runTours). analyzeDesign calls them in the same order, so the list of problems has the same order. It is now at complexity 13 and 57 lines, which is still above the limits. | Fixed in debe71e, in part |
| 6 | Code quality | Important | packages/cli/src/design/analyze.ts:637 | The step function of a tour had complexity 19. | expectFailures now checks the expect of one step. The step function is at complexity 11. | Fixed in debe71e, in part |
| 7 | Code quality | Important | packages/cli/src/index.ts:192 | run went from complexity 15 and 46 lines on the base to 21 and 67, because the design branch was in the same body. | runDesign (packages/cli/src/index.ts:171) has the branch. run is at 17 and 54. | Fixed in debe71e, in part |
| 8 | Code quality | Important | docs-app/designs/order/design.ts:8 | The timeline had its own list of the four fulfilment values as strings. A changed value in machine.ts gave no error and a timeline with no marks. | The list is made from the members of Fulfilment. | Fixed in debe71e |
| 9 | Code quality | Important | packages/cli/src/design.ts:88 | The three statuses of a design were in two places: the type, and a list in the check. | DESIGN_STATUSES is the one list. The type and the check (packages/cli/src/design/analyze.ts:338) use it. | Fixed in debe71e |
| 10 | Code quality | Important | docs-app/designs/order/design.ts:16 | The Balance text was a ternary chain with five levels over the payment state. The linter gave four findings for it. | balance() has one if and one return for each state. | Fixed in debe71e |
| 11 | Code quality | Important | packages/interop/src/orm.ts:64 | visit in tableOf was one step above the complexity limit (11). | The state path is now a join of the parts that are not empty. The function is in the limit. | Fixed in debe71e |
| 12 | Code quality | Important | packages/cli/src/design/analyze.ts:145 | visit in readDocs reads five kinds of code in one function: complexity 47, 63 code lines, 12 nested levels. | None in this round. | Not fixed: the round limit of one sitting; it is the first item of round 2 |
| 13 | Code quality | Important | packages/cli/src/design/analyze.ts:257 | body in scxml has complexity 14. | None. | Not fixed: left for round 2 |
| 14 | Code quality | Important | packages/cli/src/design/analyze.ts:222 | Two ternaries with two levels (lines 222 and 286). | None. | Not fixed: left for round 2 |
| 15 | Code quality | Important | packages/cli/src/design/analyze.ts | The file has more than 400 code lines (575 before the round, 678 after it: the new functions have signatures and comments). | None. | Not fixed: a split of the file is a move of code that round 2 must decide |
| 16 | Code quality | Important | packages/cli/src/design/commands.ts:20 | newDesign has complexity 12. Each branch is one check of an input. | None. | Not fixed: left for round 2 |
| 17 | Code quality | Important | packages/cli/src/design/player.ts:148 | Four functions of the page script are above the complexity limit: send (14, and 7 nested levels), drawUi (11), showNote (19) and drawXml (11). The file has 635 code lines. | None. | Not fixed: no test runs the page script, so a refactor has no check (see row 18) |
| 18 | Code quality | Important | packages/cli/src/design/player.ts:148 | No test loads the page. The page script can break with a green test run. | None. | Not fixed: the repo has no browser test for a built page; this needs a decision of the maintainer |
| 19 | Code quality | Important | docs-app/designs/order/design.ts:95 | Three ternaries with two levels in the order design (lines 95, 97, 105) and two in the text editor design (docs-app/designs/text-editor/design.ts:118). | None. | Not fixed: each one is short and reads well; the rule comes from the linter rules of skillsaw, and the linter config of the repo does not have it |
| 20 | Code quality | Nit | docs-app/designs/text-editor/design.ts | The file has 416 code lines against a limit of 400. Most lines are the steps of the walkthroughs. | None. | Not fixed: below the level |
| 21 | Code quality | Nit | packages/interop/src/orm.ts:238 | toRowCodec has 69 code lines. Most of them are the template of the source text that it generates. | None. | Not fixed: below the level |
| 22 | Code quality | Nit | packages/cli/src/design/page.ts:70 | The status key goes into the page with no escape. It is safe only because the check refuses an unknown status. | None. | Not fixed: below the level |
| 23 | Code review | Important | packages/cli/src/design/analyze.ts:705 | When design.ts threw as it loaded, switchyard design check gave a stack trace from a cache file. The other commands print one message. | loadDesign now gives a DesignError with the path and the message. A new test (packages/cli/tests/design.test.ts:132) failed before the change. | Fixed in debe71e |
| 24 | Code review | Important | packages/interop/src/orm.ts:171 | toDrizzle with the option table: '2024_orders' wrote source with a constant name that starts with a digit. That source does not compile. | The constant name now goes through identifier(), which throws a clear error. A new test (packages/interop/tests/orm.test.ts:313) failed before the change. | Fixed in debe71e |
| 25 | Code review | Nit | packages/cli/src/design/analyze.ts:644 | A tour step that needs the page for its arguments gets a failure, and then the check calls the arguments function with no page. One cause can give two failures. | None. | Not fixed: below the level |
| 26 | Security review | Important | packages/cli/src/design/analyze.ts:314 | isSafeLink accepted a link with a tab or a line break in its scheme. A browser removes those characters, so such a link can run script when a reader clicks it. The author of a design writes the links, thus this is not Critical. | The function refuses each link with a tab or a line break. A new test (packages/cli/tests/design.test.ts:255) failed before the change. | Fixed in debe71e |
| 27 | Security review | Nit | packages/cli/src/design/analyze.ts:314 | A link that starts with // passes as a relative path, but it goes to a different host. | None. | Not fixed: below the level |