Completed check-ci.sh and made ci pass

This commit is contained in:
2025-07-03 14:54:38 +03:00
parent b0681791e3
commit eb219cab1a
2 changed files with 5 additions and 3 deletions

View File

@@ -2,3 +2,5 @@
test -z "$(go fmt ./...)"
staticcheck ./...
go test --cover ./...
gosec ./...

View File

@@ -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 {