[{"data":1,"prerenderedAt":666},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"audit-2026-09-25-sonarqube-scripts":116},{"value":4,"alert":5},"18%",false,[],[8,11,14,17,20],{"label":9,"to":10},"0041 The visitor view becomes its own app, and the portal reads only as a developer platform","\u002Fdecisions\u002F0041-personal-site-splits-from-developer-portal",{"label":12,"to":13},"0040 Visitors land on the front page and toggle to the developer view","\u002Fdecisions\u002F0040-developer-portal-visitor-structure",{"label":15,"to":16},"0039 The developer portal is redesigned for visitors, from a twelve-site benchmark","\u002Fdecisions\u002F0039-developer-portal-benchmark",{"label":18,"to":19},"0038 Marina Roustan's discovery","\u002Fdecisions\u002F0038-marina-roustan-discovery",{"label":21,"to":22},"0013 New linters: the robustness gap is tsconfig and enforcement, not plugins","\u002Fdecisions\u002F0013-linter-coverage",[24,29,60,83],{"labelKey":25,"icon":26,"to":27,"badge":28},"app.menu.allProjects","i-lucide-layers","\u002Fprojects","11",{"labelKey":30,"icon":31,"to":32,"badge":33,"children":34},"app.menu.kinds.apps","i-lucide-app-window","\u002Fprojects?kind=apps","5",[35,40,45,50,55],{"label":36,"icon":31,"to":37,"badge":38,"coverage":39},"developer-portal","\u002Fprojects\u002Fdeveloper-portal","94%",94.37,{"label":41,"icon":31,"to":42,"badge":43,"coverage":44},"huella-legal","\u002Fprojects\u002Fhuella-legal","97%",97.48,{"label":46,"icon":31,"to":47,"badge":48,"coverage":49},"marina-roustan","\u002Fprojects\u002Fmarina-roustan","100%",100,{"label":51,"icon":31,"to":52,"badge":53,"coverage":54},"portfolio","\u002Fprojects\u002Fportfolio","91%",91.31,{"label":56,"icon":31,"to":57,"badge":58,"coverage":59},"wp-editor","\u002Fprojects\u002Fwp-editor","50%",49.89,{"labelKey":61,"icon":62,"to":63,"badge":64,"children":65},"app.menu.kinds.packages","i-lucide-package","\u002Fprojects?kind=packages","4",[66,71,75,80],{"label":67,"icon":62,"to":68,"badge":69,"coverage":70},"configs","\u002Fprojects\u002Fconfigs","76%",75.7,{"label":72,"icon":62,"to":73,"badge":48,"coverage":74},"content","\u002Fprojects\u002Fcontent",99.58,{"label":76,"icon":62,"to":77,"badge":78,"coverage":79},"i18n","\u002Fprojects\u002Fi18n","99%",99.08,{"label":81,"icon":62,"to":82,"badge":48,"coverage":49},"observability","\u002Fprojects\u002Fobservability",{"labelKey":84,"icon":85,"to":86,"badge":87,"children":88},"app.menu.kinds.infrastructure","i-lucide-server","\u002Fprojects?kind=infrastructure","2",[89,94],{"label":90,"icon":85,"to":91,"badge":92,"coverage":93},"scripts","\u002Fprojects\u002Fscripts","79%",78.6,{"label":95,"icon":85,"to":96,"badge":97,"coverage":98},"translations","\u002Fprojects\u002Ftranslations","93%",93.33,[100,103,106,109,112],{"label":101,"to":102},"Huella Legal","\u002Fworkflows\u002Fhuella-legal",{"label":104,"to":105},"Marina Roustan","\u002Fworkflows\u002Fmarina-roustan",{"label":107,"to":108},"Developer portal front door","\u002Fworkflows\u002Fdeveloper-portal-front-door",{"label":110,"to":111},"Huella Legal editorial","\u002Fworkflows\u002Fhuella-legal-editorial",{"labelKey":113,"icon":114,"to":115},"app.menu.newProject","i-lucide-plus","\u002Fworkflows\u002Fnew",{"id":117,"title":118,"body":119,"description":651,"extension":657,"kind":658,"meta":659,"navigation":661,"path":662,"seo":663,"stem":664,"url":658,"verdict":658,"__hash__":665},"docs\u002Fdocs\u002Faudits\u002F2026-09-25-sonarqube-scripts.md","🔎 SonarQube code smells: scripts",{"type":120,"value":121,"toc":650},"minimark",[122,126,131,148,152,643,647],[123,124,118],"h1",{"id":125},"sonarqube-code-smells-scripts",[127,128,130],"h2",{"id":129},"context","Context",[132,133,134,135,139,140,143,144,147],"p",{},"SonarQube Cloud reported 14 open code smells for ",[136,137,138],"code",{},"infrastructure\u002Fscripts"," on ",[136,141,142],{},"master"," on\n2026-09-25. Each flagged line was checked against commit ",[136,145,146],{},"88f5939","; the issue keys identify the\noriginal findings. The fixes pass the scripts project tests, lint and typecheck.",[127,149,151],{"id":150},"quality","Quality",[153,154,155,180],"table",{},[156,157,158],"thead",{},[159,160,161,165,168,171,174,177],"tr",{},[162,163,164],"th",{},"ID",[162,166,167],{},"Where",[162,169,170],{},"Severity and issue",[162,172,173],{},"What goes wrong",[162,175,176],{},"Fix",[162,178,179],{},"Status",[181,182,183,227,259,288,323,354,381,416,453,483,524,555,588,616],"tbody",{},[159,184,185,189,198,204,214,224],{},[186,187,188],"td",{},"Q1",[186,190,191],{},[192,193,195],"a",{"href":194},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Fadapters\u002Fgh.ts",[136,196,197],{},"issue\u002Fadapters\u002Fgh.ts:84",[186,199,200,201],{},"Critical ",[136,202,203],{},"AaBpoHA5_jgBJHByMPAI",[186,205,206,209,210,213],{},[136,207,208],{},"void gh(...)"," discards a synchronous result with the ",[136,211,212],{},"void"," operator.",[186,215,216,217,219,220,223],{},"Use a block-bodied ",[136,218,212],{}," function and call ",[136,221,222],{},"gh(...)"," as a statement; verify errors still propagate.",[186,225,226],{},"fixed",[159,228,229,232,239,244,250,257],{},[186,230,231],{},"Q2",[186,233,234],{},[192,235,236],{"href":194},[136,237,238],{},"issue\u002Fadapters\u002Fgh.ts:88",[186,240,200,241],{},[136,242,243],{},"AaBpsCFV2q7RbhuE3wBk",[186,245,246,247,249],{},"Branch creation repeats the same ",[136,248,212],{}," pattern.",[186,251,252,253,256],{},"Apply Q1's block-bodied form to ",[136,254,255],{},"developBranch",".",[186,258,226],{},[159,260,261,264,271,276,281,286],{},[186,262,263],{},"Q3",[186,265,266],{},[192,267,268],{"href":194},[136,269,270],{},"issue\u002Fadapters\u002Fgh.ts:92",[186,272,200,273],{},[136,274,275],{},"AaB38bfP50elM9qDIsBZ",[186,277,278,279,249],{},"Project-status updates repeat the same ",[136,280,212],{},[186,282,252,283,256],{},[136,284,285],{},"moveToInProgress",[186,287,226],{},[159,289,290,293,301,306,311,321],{},[186,291,292],{},"Q4",[186,294,295],{},[192,296,298],{"href":297},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Fadapters\u002Fgit.ts",[136,299,300],{},"issue\u002Fadapters\u002Fgit.ts:9",[186,302,200,303],{},[136,304,305],{},"AaBtJzn-TKt27OlRUvfV",[186,307,308,309,256],{},"Checkout discards the command result with ",[136,310,212],{},[186,312,313,314,317,318,320],{},"Call ",[136,315,316],{},"git(\"checkout\", branch)"," in a block-bodied ",[136,319,212],{}," function; keep command failure behavior.",[186,322,226],{},[159,324,325,328,338,343,349,352],{},[186,326,327],{},"Q5",[186,329,330],{},[192,331,335],{"href":332,"rel":333},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F88f5939\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fpackage-contracts\u002Fdomain\u002Fvalidate.ts#L205",[334],"nofollow",[136,336,337],{},"package-contracts\u002Fdomain\u002Fvalidate.ts:205",[186,339,200,340],{},[136,341,342],{},"AaDFDh5nEA0Bk8tS9EXV",[186,344,345,348],{},[136,346,347],{},"validatePackage"," combines manifest guards, exports, peer metadata and tags, crossing the complexity limit.",[186,350,351],{},"Extract export and peer-dependency validation into focused helpers that append to the same error and skipped lists; retain current error ordering in specs.",[186,353,226],{},[159,355,356,359,367,373,376,379],{},[186,357,358],{},"Q6",[186,360,361],{},[192,362,364],{"href":363},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fissue\u002Fdomain\u002Fbranch.ts",[136,365,366],{},"issue\u002Fdomain\u002Fbranch.ts:12",[186,368,369,370],{},"Major ",[136,371,372],{},"AaBpoHBb_jgBJHByMPAK",[186,374,375],{},"The trim regex can backtrack on a long all-hyphen slug.",[186,377,378],{},"Trim leading and trailing hyphens with a linear scan or two anchored replacements; cover empty and long punctuation-only names.",[186,380,226],{},[159,382,383,386,395,401,407,414],{},[186,384,385],{},"Q7",[186,387,388],{},[192,389,392],{"href":390,"rel":391},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F88f5939\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fpackage-contracts\u002Fadapters\u002Ffiles.ts#L14",[334],[136,393,394],{},"package-contracts\u002Fadapters\u002Ffiles.ts:14",[186,396,397,398],{},"Minor ",[136,399,400],{},"AaDFDh77EA0Bk8tS9EXW",[186,402,403,406],{},[136,404,405],{},"split(\"\\\\\").join(\"\u002F\")"," creates an array to normalize a path.",[186,408,409,410,413],{},"Use ",[136,411,412],{},".replaceAll(\"\\\\\", \"\u002F\")","; retain Windows-path coverage.",[186,415,226],{},[159,417,418,421,430,435,441,451],{},[186,419,420],{},"Q8",[186,422,423],{},[192,424,427],{"href":425,"rel":426},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F88f5939\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fpackage-contracts\u002Fdomain\u002Fvalidate.ts#L23",[334],[136,428,429],{},"package-contracts\u002Fdomain\u002Fvalidate.ts:23",[186,431,397,432],{},[136,433,434],{},"AaDFDh5nEA0Bk8tS9EXT",[186,436,437,438,256],{},"A ternary restates the undefined fallback after ",[136,439,440],{},"JSON.stringify",[186,442,409,443,446,447,450],{},[136,444,445],{},"rendered ?? String(value)","; keep ",[136,448,449],{},"undefined"," and symbol cases covered.",[186,452,226],{},[159,454,455,458,467,472,475,481],{},[186,456,457],{},"Q9",[186,459,460],{},[192,461,464],{"href":462,"rel":463},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F88f5939\u002Finfrastructure\u002Fscripts\u002Fsrc\u002Fpackage-contracts\u002Fdomain\u002Fvalidate.ts#L73",[334],[136,465,466],{},"package-contracts\u002Fdomain\u002Fvalidate.ts:73",[186,468,397,469],{},[136,470,471],{},"AaDFDh5nEA0Bk8tS9EXU",[186,473,474],{},"The replacement text escapes a backslash in an ordinary string.",[186,476,409,477,480],{},[136,478,479],{},"String.raw"," for the replacement while keeping the produced regex unchanged.",[186,482,226],{},[159,484,485,488,496,501,504,522],{},[186,486,487],{},"Q10",[186,489,490],{},[192,491,493],{"href":492},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fshared\u002Fdomain\u002Flayout.ts",[136,494,495],{},"shared\u002Fdomain\u002Flayout.ts:4",[186,497,397,498],{},[136,499,500],{},"AaDAU-A_y0vepUx4FnAW",[186,502,503],{},"Acronym membership uses an array scan.",[186,505,506,507,510,511,514,515,518,519,256],{},"Make ",[136,508,509],{},"ACRONYMS"," a ",[136,512,513],{},"Set"," and use ",[136,516,517],{},".has()"," in ",[136,520,521],{},"titleCase",[186,523,226],{},[159,525,526,529,534,539,546,553],{},[186,527,528],{},"Q11",[186,530,531],{},[136,532,533],{},"review-version\u002Fdomain\u002Fmanifest.spec.ts:81",[186,535,397,536],{},[136,537,538],{},"AaCkZBKMv8--a__ZffrM",[186,540,541,542,545],{},"Comparing ",[136,543,544],{},".length"," hides the relevant collection when the assertion fails.",[186,547,548,549,552],{},"Assert ",[136,550,551],{},"toHaveLength(METHOD_ARTIFACTS.length)"," on the filtered lines.",[186,554,226],{},[159,556,557,560,568,573,576,586],{},[186,558,559],{},"Q12",[186,561,562],{},[192,563,565],{"href":564},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fmap\u002Fadapters\u002Ffiles.ts",[136,566,567],{},"map\u002Fadapters\u002Ffiles.ts:76",[186,569,397,570],{},[136,571,572],{},"AaCFksdWXFUGTcAAmGOX",[186,574,575],{},"Ignored-directory membership uses an array scan.",[186,577,506,578,510,581,514,583,585],{},[136,579,580],{},"IGNORED_DIRS",[136,582,513],{},[136,584,517],{}," at the walk site.",[186,587,226],{},[159,589,590,593,601,606,609,614],{},[186,591,592],{},"Q13",[186,594,595],{},[192,596,598],{"href":597},"repo:infrastructure\u002Fscripts\u002Fsrc\u002Fmap\u002Fdomain\u002Fcapabilities.ts",[136,599,600],{},"map\u002Fdomain\u002Fcapabilities.ts:65",[186,602,397,603],{},[136,604,605],{},"AaBsdAgrc4poDHW_U8-z",[186,607,608],{},"The regex-escape replacement uses a doubly escaped replacement string.",[186,610,409,611,613],{},[136,612,479],{}," for the replacement; assert punctuation tokens still match literally.",[186,615,226],{},[159,617,618,621,628,633,636,641],{},[186,619,620],{},"Q14",[186,622,623],{},[192,624,625],{"href":597},[136,626,627],{},"map\u002Fdomain\u002Fcapabilities.ts:66",[186,629,397,630],{},[136,631,632],{},"AaBsdAgrc4poDHW_U8-0",[186,634,635],{},"The dynamic regex also escapes character classes inside a template string.",[186,637,409,638,640],{},[136,639,479],{}," for the pattern template and preserve boundary behavior.",[186,642,226],{},[127,644,646],{"id":645},"order","Order",[132,648,649],{},"Address Q6 and Q5 with focused regression cases, then Q1–Q4 together because they share one\nadapter pattern. The remaining findings are local substitutions; run the scripts project specs,\nlint and typecheck after those edits.",{"title":651,"searchDepth":652,"depth":652,"links":653},"",2,[654,655,656],{"id":129,"depth":652,"text":130},{"id":150,"depth":652,"text":151},{"id":645,"depth":652,"text":646},"md",null,{"scope":660,"commit":146},"@joinery\u002Fscripts",true,"\u002Fdocs\u002Faudits\u002F2026-09-25-sonarqube-scripts",{"title":118,"description":651},"docs\u002Faudits\u002F2026-09-25-sonarqube-scripts","lKDSDS-hgs3od2EwVpZhEUQLdjrqyqh9sRrzumIsjdc",1795478398807]