[{"data":1,"prerenderedAt":628},["ShallowReactive",2],{"figure-telemetry":3,"menu-audits":6,"menu-decisions":7,"menu-projects":23,"menu-workflows":99,"audit-2026-09-25-sonarqube-developer-portal":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":613,"extension":619,"kind":620,"meta":621,"navigation":623,"path":624,"seo":625,"stem":626,"url":620,"verdict":620,"__hash__":627},"docs\u002Fdocs\u002Faudits\u002F2026-09-25-sonarqube-developer-portal.md","🔎 SonarQube code smells: developer portal",{"type":120,"value":121,"toc":612},"minimark",[122,126,131,148,152,605,609],[123,124,118],"h1",{"id":125},"sonarqube-code-smells-developer-portal",[127,128,130],"h2",{"id":129},"context","Context",[132,133,134,135,139,140,143,144,147],"p",{},"SonarQube Cloud reported 14 code smells for this project on ",[136,137,138],"code",{},"master"," on 2026-09-25. Each flagged\nline was checked against commit ",[136,141,142],{},"88f5939",", and all 14 findings have been fixed. The issue key\nidentifies the exact SonarQube finding. Four separate ",[136,145,146],{},"BUG"," issues in this project are outside this\ncode-smell audit.",[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,216,243,272,300,327,354,386,413,451,490,520,545,578],"tbody",{},[159,184,185,189,198,204,210,213],{},[186,187,188],"td",{},"Q1",[186,190,191],{},[192,193,195],"a",{"href":194},"repo:apps\u002Fdeveloper-portal\u002Flayers\u002Fsnapshot\u002Fshared\u002Faudits.ts",[136,196,197],{},"shared\u002Faudits.ts:34",[186,199,200,201],{},"Critical ",[136,202,203],{},"AaDXsYuBE61A28_-R1h_",[186,205,206,209],{},[136,207,208],{},"parseFindings"," handles fences, headings, table headers and rows in one loop, giving cognitive complexity 22.",[186,211,212],{},"Extract table-header detection and finding-row parsing into small functions; keep fence and heading state in the outer loop. Pin malformed and prose-table cases in the existing parser spec.",[186,214,215],{},"fixed",[159,217,218,221,229,235,238,241],{},[186,219,220],{},"Q2",[186,222,223],{},[192,224,226],{"href":225},"repo:apps\u002Fdeveloper-portal\u002Ftools\u002Fcollect\u002Fdocs.ts",[136,227,228],{},"tools\u002Fcollect\u002Fdocs.ts:11",[186,230,231,232],{},"Major ",[136,233,234],{},"AaB3Fi0FwgYnFLlV-z9r",[186,236,237],{},"The inline-link regex has overlapping paths when a long malformed link lacks a closing delimiter.",[186,239,240],{},"Exclude nested openers from link text and destinations so failed matches cannot overlap; retain link-title and code-span cases in specs.",[186,242,215],{},[159,244,245,248,255,260,267,270],{},[186,246,247],{},"Q3",[186,249,250],{},[192,251,252],{"href":225},[136,253,254],{},"tools\u002Fcollect\u002Fdocs.ts:15",[186,256,231,257],{},[136,258,259],{},"AaDY6_Z_aSqI9phY3mAn",[186,261,262,263,266],{},"The backreference in ",[136,264,265],{},"CODE_SPAN"," makes unmatched runs of backticks costly to scan.",[186,268,269],{},"Require whole backtick runs at both ends so an unmatched delimiter cannot restart at each backtick; cover multiline spans and unmatched runs.",[186,271,215],{},[159,273,274,277,287,292,295,298],{},[186,275,276],{},"Q4",[186,278,279],{},[192,280,284],{"href":281,"rel":282},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F88f5939\u002Fapps\u002Fdeveloper-portal\u002Fshared\u002Fissues.ts#L5",[283],"nofollow",[136,285,286],{},"shared\u002Fissues.ts:5",[186,288,231,289],{},[136,290,291],{},"AaB3Fi09wgYnFLlV-z9y",[186,293,294],{},"Link stripping can repeatedly rescan malformed markdown.",[186,296,297],{},"Exclude nested openers from link text and destinations so failed matches cannot overlap; preserve link text in the summary.",[186,299,215],{},[159,301,302,305,314,319,322,325],{},[186,303,304],{},"Q5",[186,306,307],{},[192,308,311],{"href":309,"rel":310},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F88f5939\u002Fapps\u002Fdeveloper-portal\u002Fshared\u002Fissues.ts#L6",[283],[136,312,313],{},"shared\u002Fissues.ts:6",[186,315,231,316],{},[136,317,318],{},"AaB3Fi09wgYnFLlV-z9z",[186,320,321],{},"Whitespace and bullet prefixes overlap in the checkbox regex.",[186,323,324],{},"Restrict prefix whitespace to spaces and tabs so it cannot span lines; cover long indentation and whitespace-only lines.",[186,326,215],{},[159,328,329,332,341,346,349,352],{},[186,330,331],{},"Q6",[186,333,334],{},[192,335,338],{"href":336,"rel":337},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F88f5939\u002Fapps\u002Fdeveloper-portal\u002Fshared\u002Fissues.ts#L7",[283],[136,339,340],{},"shared\u002Fissues.ts:7",[186,342,231,343],{},[136,344,345],{},"AaB3Fi09wgYnFLlV-z90",[186,347,348],{},"The bullet regex can backtrack across long whitespace and marker runs.",[186,350,351],{},"Restrict indentation and suffix whitespace to spaces and tabs, keeping each match on its own line.",[186,353,215],{},[159,355,356,359,366,371,377,384],{},[186,357,358],{},"Q7",[186,360,361],{},[192,362,363],{"href":225},[136,364,365],{},"tools\u002Fcollect\u002Fdocs.ts:180",[186,367,231,368],{},[136,369,370],{},"AaB3Fi0FwgYnFLlV-z9u",[186,372,373,376],{},[136,374,375],{},"pages.sort(...)"," mutates data inside a returned object expression.",[186,378,379,380,383],{},"Sort in a separate statement, or use ",[136,381,382],{},"pages.toSorted(...)"," if the workspace runtime supports it; verify page order stays the same.",[186,385,215],{},[159,387,388,391,396,401,408,411],{},[186,389,390],{},"Q8",[186,392,393],{},[136,394,395],{},"tools\u002Flib\u002Fscorecards.ts:52",[186,397,231,398],{},[136,399,400],{},"AaB3Fiy4wgYnFLlV-z9o",[186,402,403,404,407],{},"The total-row branch assigns ",[136,405,406],{},"totalDelta"," again when later total rows cannot change the result.",[186,409,410],{},"Keep the first parsed Total row and return or break, or document and test last-row precedence before removing the redundant assignment.",[186,412,215],{},[159,414,415,418,426,432,442,449],{},[186,416,417],{},"Q9",[186,419,420],{},[192,421,423],{"href":422},"repo:apps\u002Fdeveloper-portal\u002Flayers\u002Faudits\u002Fshared\u002FauditReports.ts",[136,424,425],{},"shared\u002FauditReports.ts:54",[186,427,428,429],{},"Minor ",[136,430,431],{},"AaDXsYrZE61A28_-R1h9",[186,433,434,437,438,441],{},[136,435,436],{},"string | \"all\""," is just ",[136,439,440],{},"string","; the literal gives no type constraint.",[186,443,444,445,448],{},"Use ",[136,446,447],{},"scope?: string",", or a narrower known-scope union if the UI needs exhaustive values.",[186,450,215],{},[159,452,453,456,465,470,478,488],{},[186,454,455],{},"Q10",[186,457,458],{},[192,459,462],{"href":460,"rel":461},"https:\u002F\u002Fgithub.com\u002Fxfontr\u002Fjoinery\u002Fblob\u002F88f5939\u002Fapps\u002Fdeveloper-portal\u002Fshared\u002Fissues.ts#L53",[283],[136,463,464],{},"shared\u002Fissues.ts:53",[186,466,428,467],{},[136,468,469],{},"AaB3Fi09wgYnFLlV-z94",[186,471,472,474,475,477],{},[136,473,436],{}," collapses to ",[136,476,440],{},".",[186,479,444,480,483,484,487],{},[136,481,482],{},"label?: string",", keeping the existing ",[136,485,486],{},"\"all\""," runtime branch.",[186,489,215],{},[159,491,492,495,503,508,511,518],{},[186,493,494],{},"Q11",[186,496,497],{},[192,498,500],{"href":499},"repo:apps\u002Fdeveloper-portal\u002Flayers\u002Fgithub\u002Fapp\u002Fcomposables\u002FuseIssues.ts",[136,501,502],{},"app\u002Fcomposables\u002FuseIssues.ts:1",[186,504,428,505],{},[136,506,507],{},"AaC_Dgx3BzpILJi2DMLP",[186,509,510],{},"Three imports from the same module are separate.",[186,512,513,514,517],{},"Combine the value imports with a single ",[136,515,516],{},"import { ..., type IssuesRead, type GithubIssue }"," statement.",[186,519,215],{},[159,521,522,525,532,537,540,543],{},[186,523,524],{},"Q12",[186,526,527],{},[192,528,529],{"href":499},[136,530,531],{},"app\u002Fcomposables\u002FuseIssues.ts:2",[186,533,428,534],{},[136,535,536],{},"AaC_Dgx3BzpILJi2DMLQ",[186,538,539],{},"The second type import repeats the same module path.",[186,541,542],{},"Resolve with Q11; keep both types in the consolidated import.",[186,544,215],{},[159,546,547,550,558,563,566,576],{},[186,548,549],{},"Q13",[186,551,552],{},[192,553,555],{"href":554},"repo:apps\u002Fdeveloper-portal\u002Ftools\u002Fcollect\u002Fmetrics.ts",[136,556,557],{},"tools\u002Fcollect\u002Fmetrics.ts:23",[186,559,428,560],{},[136,561,562],{},"AaB3FiziwgYnFLlV-z9p",[186,564,565],{},"Filtering every tag to take the first one allocates an unnecessary array.",[186,567,444,568,571,572,575],{},[136,569,570],{},".find(Boolean)"," and retain the ",[136,573,574],{},"null"," fallback.",[186,577,215],{},[159,579,580,583,590,595,598,603],{},[186,581,582],{},"Q14",[186,584,585],{},[192,586,587],{"href":554},[136,588,589],{},"tools\u002Fcollect\u002Fmetrics.ts:86",[186,591,428,592],{},[136,593,594],{},"AaB3FiziwgYnFLlV-z9q",[186,596,597],{},"Filtering every commit SHA to take the first one allocates an unnecessary array.",[186,599,444,600,602],{},[136,601,570],{}," and preserve the no-release branch.",[186,604,215],{},[127,606,608],{"id":607},"order","Order",[132,610,611],{},"Address Q2–Q6 first because malformed or adversarial markdown can multiply parsing time. Then split\nthe parser in Q1, resolve Q8's total-row behavior, and take Q7 and Q9–Q14 as small cleanup changes.\nRun the developer portal specs, lint and typecheck after edits; use long malformed markdown cases to\ncheck that failed regex matches stay fast.",{"title":613,"searchDepth":614,"depth":614,"links":615},"",2,[616,617,618],{"id":129,"depth":614,"text":130},{"id":150,"depth":614,"text":151},{"id":607,"depth":614,"text":608},"md",null,{"scope":622,"commit":142},"@joinery\u002Fdeveloper-portal",true,"\u002Fdocs\u002Faudits\u002F2026-09-25-sonarqube-developer-portal",{"title":118,"description":613},"docs\u002Faudits\u002F2026-09-25-sonarqube-developer-portal","8gD-K9QbxjqzMZBjnibzyYlc4NkEcp4_lV5stSCbuzA",1795478398847]