driveAtlas: silence SC2059 in generate_nuc_layout (ANSI-art printfs)
Lint / Shell (shellcheck) (push) Successful in 13s
Lint / Shell (shellcheck) (push) Successful in 13s
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 <noreply@anthropic.com>
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user