diff options
| -rwxr-xr-x | check-ci.sh | 2 | ||||
| -rw-r--r-- | 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 { |
