Repository navigation
Commit c10de58
chore(quality): the local SonarQube findings of 2026-11-29, no behaviour change
A local SonarQube round over this release's code, before 4.12.31: 127 rows in eight files, 107 fixed and 20 kept
with their reason on the line. In lockstep with the Python pack.
Cognitive complexity (29 rows): each function over 15 is split along its seams, every check in the order it ran
and with the message it wrote - 15 in the agent tools (the glob walk, the search, the page ranges, the HTML
reader's start tag and tokenizer, the host rules, the address ranges, the crawl, the value renderer, the ingest
plan, the schema, the boot, describe's states), 6 in rest-automation.ts, 3 in rest-routing.ts, toMap, the
attachments loader, and the validators of ask-person and agent-question.
LLM helper: the 21 functions that used nothing of createLlmHelper are functions of the module - the 16 the scan
named and five that used only those.
Expressions: five whose time could grow with the square of their input are linear and answer the same on every
input - the trailing slashes of a base URL (ask-person, agent-question) and four small scans in the agent tools
(the trailing dots of a host name, the newlines around preformatted text, a robots.txt comment, the tag at a
"<"); two over the complexity limit are built from their parts with the same source text.
The rest: explicit code-unit comparators on ask-person's sorts, class fields, Number.parseInt, String.raw,
replaceAll, toReversed, .at(), an optional chain, Boolean as a filter, a dead initial value, an unused import.
CRAWL_RESULT_MAX_CHARS is a constant; its test hook sets a private variable behind it.
Kept, each with "// NOSONAR - <reason>" on its line: 16 awaits that are sequential by design, the helper's JSON
form of a content block, and the two bindings of agent-question that reset() replaces.
npm test: 888 tests, 812 passed, 76 skipped, 0 failed, as before. The IDE's own analyzer, run headless,
reproduces every row of the scan on the files as they were and reports none on them now outside the 19 marked
lines.
CHANGELOG Unreleased Changed 12.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>1 parent 778c0ef commit c10de58
9 files changed
Lines changed: 1805 additions & 1240 deletions
File tree
- extensions
- agent-question
- agent-tools
- ask-person
- llm-helper
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
424 | 445 | | |
425 | 446 | | |
426 | 447 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
158 | 160 | | |
159 | 161 | | |
160 | 162 | | |
161 | | - | |
| 163 | + | |
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| |||
224 | 226 | | |
225 | 227 | | |
226 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
227 | 240 | | |
228 | 241 | | |
229 | 242 | | |
| |||
235 | 248 | | |
236 | 249 | | |
237 | 250 | | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 251 | + | |
247 | 252 | | |
248 | 253 | | |
249 | 254 | | |
| |||
287 | 292 | | |
288 | 293 | | |
289 | 294 | | |
290 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
291 | 298 | | |
292 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
293 | 302 | | |
294 | 303 | | |
295 | 304 | | |
| |||
562 | 571 | | |
563 | 572 | | |
564 | 573 | | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
572 | 579 | | |
573 | 580 | | |
574 | 581 | | |
| |||
610 | 617 | | |
611 | 618 | | |
612 | 619 | | |
613 | | - | |
| 620 | + | |
614 | 621 | | |
615 | 622 | | |
616 | 623 | | |
617 | 624 | | |
618 | | - | |
| 625 | + | |
619 | 626 | | |
620 | 627 | | |
621 | 628 | | |
622 | 629 | | |
623 | 630 | | |
624 | 631 | | |
625 | 632 | | |
626 | | - | |
| 633 | + | |
627 | 634 | | |
628 | 635 | | |
629 | 636 | | |
| |||
633 | 640 | | |
634 | 641 | | |
635 | 642 | | |
636 | | - | |
637 | | - | |
| 643 | + | |
| 644 | + | |
638 | 645 | | |
639 | 646 | | |
640 | 647 | | |
| |||
850 | 857 | | |
851 | 858 | | |
852 | 859 | | |
853 | | - | |
854 | | - | |
| 860 | + | |
855 | 861 | | |
856 | 862 | | |
857 | 863 | | |
| |||
0 commit comments