From 93aaa63b18cb613b6b391aceb79a9174986c035d Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Sun, 19 Jul 2026 02:34:07 -0400 Subject: [PATCH] driveAtlas: silence SC2059 in generate_nuc_layout (ANSI-art printfs) The NUC layout printfs intentionally embed our own DA_* ANSI colour vars and literal box-drawing in the format string (no '%', device names passed as %s args), so SC2059 is a false positive here. Scope a shellcheck disable to the function to restore a green lint run. Co-Authored-By: Claude Opus 4.8 --- driveAtlas.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/driveAtlas.sh b/driveAtlas.sh index 1d0f777..394bc9d 100644 --- a/driveAtlas.sh +++ b/driveAtlas.sh @@ -651,6 +651,11 @@ da_gauge() { # Occupied ports: solid light boxes, green LED bar + device. EMPTY ports: # dashed ghost boxes, dim. Alignment: every variable field is padded to its # final width BEFORE color codes wrap it; borders are literal strings. +# +# The art printfs embed our own ANSI colour vars (DA_*) and literal box-drawing +# in the format string by design; they contain no '%' and no user data (device +# names are passed as %s args), so SC2059 does not apply here. +# shellcheck disable=SC2059 generate_nuc_layout() { build_drive_map local host="${1:-unknown}"