From f101d12b374a8ac1200c804077aeb006c923c3d3 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 16 Aug 2026 14:38:35 +0000 Subject: [PATCH 1/4] Fix remaining SonarCloud MEDIUM/LOW severity issues - godre:S8193 (Go): drop unnecessary variable declarations in two test conditions where the value wasn't used in the assertion body. - javascript:S2486: give the three silent catch blocks (localStorage/ theme access, all of which are expected to fail in private browsing or with storage disabled) an explanatory comment instead of swallowing the exception without a trace. - javascript:S6582/S7755: replace manual `&&`-guarded property chains with optional chaining, and `arr[arr.length - 1]` with `arr.at(-1)`. - javascript:S3358: extract gauge.js's nested ternary into a small `gaugeColorVar` helper. - css:S1874: replace the deprecated `word-break: break-word` with its modern equivalent `overflow-wrap: break-word`. - Web:S6842/S6819/MouseEventWithoutKeyboardEquivalentCheck: the four metric cards used an `

` with a hand-rolled Enter/Space keydown handler to fake a clickable heading. Replaced with a real `

@@ -53,7 +53,7 @@

-

🚦 Load Average

+

@@ -74,7 +74,7 @@

-

🌡️ Temperature

+

@@ -84,7 +84,7 @@

-

🧠 Memory & Swap

+

RAM @@ -115,60 +115,55 @@

🌐 Network

-
`) + found := map[string]bool{} + for _, m := range sectionByMetric.FindAllStringSubmatch(html, -1) { + metric, section := m[1], m[0] + found[metric] = true + if !strings.Contains(section, `