Skip to content

(v2) fix: restore lipgloss.Color behavior #1899

(v2) fix: restore lipgloss.Color behavior

(v2) fix: restore lipgloss.Color behavior #1899

Triggered via pull request November 18, 2024 15:34
Status Failure
Total duration 1m 15s
Artifacts

lint.yml

on: pull_request
Matrix: lint / lint-soft
Matrix: lint / lint
Fit to window
Zoom out
Zoom in

Annotations

34 errors and 6 warnings
lint / lint-soft (ubuntu-latest): color.go#L61
`if strings.HasPrefix(s, "#")` has complex nested blocks (complexity: 5) (nestif)
lint / lint-soft (ubuntu-latest): color.go#L211
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
lint / lint-soft (ubuntu-latest): compat/color.go#L51
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
lint / lint-soft (ubuntu-latest): terminal.go#L34
Magic number: 11, in <case> detected (mnd)
lint / lint-soft (ubuntu-latest): color.go#L73
Magic number: 16, in <condition> detected (mnd)
lint / lint-soft (ubuntu-latest): terminal.go#L36
Magic number: 2, in <condition> detected (mnd)
lint / lint-soft (ubuntu-latest): terminal.go#L120
Magic number: 0xff, in <condition> detected (mnd)
lint / lint-soft (ubuntu-latest): terminal.go#L130
Magic number: 3, in <condition> detected (mnd)
lint / lint-soft (ubuntu-latest): terminal.go#L141
Magic number: 4, in <condition> detected (mnd)
lint / lint (ubuntu-latest): color.go#L74
G115: integer overflow conversion int -> uint8 (gosec)
lint / lint (ubuntu-latest): color.go#L76
G115: integer overflow conversion int -> uint8 (gosec)
lint / lint (ubuntu-latest)
issues found
lint / lint (macos-latest)
The job was canceled because "ubuntu-latest" failed.
lint / lint (macos-latest)
The operation was canceled.
lint / lint (windows-latest)
The job was canceled because "ubuntu-latest" failed.
lint / lint (windows-latest)
The operation was canceled.
lint / lint-soft (macos-latest): color.go#L61
`if strings.HasPrefix(s, "#")` has complex nested blocks (complexity: 5) (nestif)
lint / lint-soft (macos-latest): color.go#L211
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
lint / lint-soft (macos-latest): compat/color.go#L51
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
lint / lint-soft (macos-latest): terminal.go#L34
Magic number: 11, in <case> detected (mnd)
lint / lint-soft (macos-latest): color.go#L73
Magic number: 16, in <condition> detected (mnd)
lint / lint-soft (macos-latest): terminal.go#L36
Magic number: 2, in <condition> detected (mnd)
lint / lint-soft (macos-latest): terminal.go#L120
Magic number: 0xff, in <condition> detected (mnd)
lint / lint-soft (macos-latest): terminal.go#L130
Magic number: 3, in <condition> detected (mnd)
lint / lint-soft (macos-latest): terminal.go#L141
Magic number: 4, in <condition> detected (mnd)
lint / lint-soft (windows-latest): color.go#L61
`if strings.HasPrefix(s, "#")` has complex nested blocks (complexity: 5) (nestif)
lint / lint-soft (windows-latest): color.go#L211
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
lint / lint-soft (windows-latest): compat/color.go#L51
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.NoTTY (exhaustive)
lint / lint-soft (windows-latest): terminal.go#L34
Magic number: 11, in <case> detected (mnd)
lint / lint-soft (windows-latest): color.go#L73
Magic number: 16, in <condition> detected (mnd)
lint / lint-soft (windows-latest): terminal.go#L36
Magic number: 2, in <condition> detected (mnd)
lint / lint-soft (windows-latest): terminal.go#L120
Magic number: 0xff, in <condition> detected (mnd)
lint / lint-soft (windows-latest): terminal.go#L130
Magic number: 3, in <condition> detected (mnd)
lint / lint-soft (windows-latest): terminal.go#L141
Magic number: 4, in <condition> detected (mnd)
lint / lint-soft (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/lipgloss/lipgloss. Supported file pattern: go.sum
lint / lint (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/lipgloss/lipgloss. Supported file pattern: go.sum
lint / lint (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/lipgloss/lipgloss. Supported file pattern: go.sum
lint / lint (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\lipgloss\lipgloss. Supported file pattern: go.sum
lint / lint-soft (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/lipgloss/lipgloss. Supported file pattern: go.sum
lint / lint-soft (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\lipgloss\lipgloss. Supported file pattern: go.sum