From eb219cab1ad8b61d5637ebbcd7f3d9bf4b3412dd Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 3 Jul 2025 14:54:38 +0300 Subject: Completed check-ci.sh and made ci pass --- check-ci.sh | 2 ++ internal/client/ui/colors/colors.go | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/check-ci.sh b/check-ci.sh index dbc4dfe..41d3616 100755 --- a/check-ci.sh +++ b/check-ci.sh @@ -2,3 +2,5 @@ test -z "$(go fmt ./...)" staticcheck ./... +go test --cover ./... +gosec ./... diff --git a/internal/client/ui/colors/colors.go b/internal/client/ui/colors/colors.go index 6b40009..284e029 100644 --- a/internal/client/ui/colors/colors.go +++ b/internal/client/ui/colors/colors.go @@ -274,9 +274,9 @@ func IsDarkened() bool { func DarkenColor(color lipgloss.Color, factor float64) lipgloss.Color { r, g, b, _ := color.RGBA() - r8 := uint8(r >> 8) - g8 := uint8(g >> 8) - b8 := uint8(b >> 8) + r8 := uint8(r >> 8) // #nosec G115 + g8 := uint8(g >> 8) // #nosec G115 + b8 := uint8(b >> 8) // #nosec G115 // Apply darkening factor (clamping to avoid underflow) darken := func(c uint8) uint8 { -- cgit v1.3.1