From 43ab55f083a202f02a0a680b029f6b63c548ff92 Mon Sep 17 00:00:00 2001 From: nathaninline Date: Fri, 7 Aug 2026 20:35:34 +0200 Subject: [PATCH] staticcheck : exception documentee pour brandTemplatePNG Elle n'est utilisee que par le tray macOS, que staticcheck ne compile pas hors CGO. Sans cette directive, la CI (qui lance staticcheck sur ubuntu) echouerait sur une fonction pourtant bien utilisee. --- internal/ajean/sys_brand_icon.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/ajean/sys_brand_icon.go b/internal/ajean/sys_brand_icon.go index 295310c..39dbc04 100644 --- a/internal/ajean/sys_brand_icon.go +++ b/internal/ajean/sys_brand_icon.go @@ -92,6 +92,7 @@ func BrandIconPNG(n int) []byte { return encodePNG(brandIconImage(n, brandBlack, // Utilisée par sys_tray_darwin.go — un fichier que seule une compilation avec // CGO voit. Les analyseurs lancés sans CGO la croient morte : elle avait été // supprimée à ce titre, ce qui a cassé la compilation macOS en CI. +//lint:ignore U1000 utilisée par sys_tray_darwin.go, invisible sans CGO/macOS func brandTemplatePNG(n int) []byte { return encodePNG(brandIconImage(n, brandBlack, brandClear)) }