mirror of
https://github.com/Kyren223/eko.git
synced 2025-09-05 21:18:14 +00:00
Completed check-ci.sh and made ci pass
This commit is contained in:
@@ -2,3 +2,5 @@
|
||||
|
||||
test -z "$(go fmt ./...)"
|
||||
staticcheck ./...
|
||||
go test --cover ./...
|
||||
gosec ./...
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user