Skip to content

chore(color): have LightDark accept strings (rather than colors) for … #1965

chore(color): have LightDark accept strings (rather than colors) for …

chore(color): have LightDark accept strings (rather than colors) for … #1965

Triggered via push January 7, 2025 17:07
Status Success
Total duration 1m 46s
Artifacts

lint.yml

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

Annotations

30 errors and 8 warnings
lint / lint-soft (ubuntu-latest): color.go#L215
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): query.go#L40
Magic number: 0o644, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): query.go#L47
Magic number: 0o644, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): terminal.go#L32
Magic number: 11, in <case> detected (mnd)
lint / lint-soft (ubuntu-latest): color.go#L78
Magic number: 16, in <condition> detected (mnd)
lint / lint-soft (ubuntu-latest): color.go#L80
Magic number: 256, in <condition> detected (mnd)
lint / lint-soft (ubuntu-latest): terminal.go#L34
Magic number: 2, in <condition> detected (mnd)
lint / lint-soft (ubuntu-latest): color.go#L61
`if strings.HasPrefix(s, "#")` has complex nested blocks (complexity: 7) (nestif)
lint / lint-soft (ubuntu-latest): query.go#L35
`if runtime.GOOS == "windows"` has complex nested blocks (complexity: 6) (nestif)
lint / lint-soft (macos-latest): color.go#L215
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): query.go#L40
Magic number: 0o644, in <argument> detected (mnd)
lint / lint-soft (macos-latest): query.go#L47
Magic number: 0o644, in <argument> detected (mnd)
lint / lint-soft (macos-latest): terminal.go#L32
Magic number: 11, in <case> detected (mnd)
lint / lint-soft (macos-latest): color.go#L78
Magic number: 16, in <condition> detected (mnd)
lint / lint-soft (macos-latest): color.go#L80
Magic number: 256, in <condition> detected (mnd)
lint / lint-soft (macos-latest): terminal.go#L34
Magic number: 2, in <condition> detected (mnd)
lint / lint-soft (macos-latest): color.go#L61
`if strings.HasPrefix(s, "#")` has complex nested blocks (complexity: 7) (nestif)
lint / lint-soft (macos-latest): query.go#L35
`if runtime.GOOS == "windows"` has complex nested blocks (complexity: 6) (nestif)
lint / lint-soft (windows-latest): color.go#L215
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): query.go#L40
Magic number: 0o644, in <argument> detected (mnd)
lint / lint-soft (windows-latest): query.go#L47
Magic number: 0o644, in <argument> detected (mnd)
lint / lint-soft (windows-latest): terminal.go#L32
Magic number: 11, in <case> detected (mnd)
lint / lint-soft (windows-latest): color.go#L78
Magic number: 16, in <condition> detected (mnd)
lint / lint-soft (windows-latest): color.go#L80
Magic number: 256, in <condition> detected (mnd)
lint / lint-soft (windows-latest): terminal.go#L34
Magic number: 2, in <condition> detected (mnd)
lint / lint-soft (windows-latest): color.go#L61
`if strings.HasPrefix(s, "#")` has complex nested blocks (complexity: 7) (nestif)
lint / lint-soft (windows-latest): query.go#L35
`if runtime.GOOS == "windows"` has complex nested blocks (complexity: 6) (nestif)
lint / lint-soft (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
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)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
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-soft (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/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 (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\lipgloss\lipgloss. Supported file pattern: go.sum