Skip to content

refactor: reorder color profiles #159

refactor: reorder color profiles

refactor: reorder color profiles #159

Triggered via push January 27, 2025 20:53
Status Success
Total duration 1m 11s
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): env.go#L35
string `dumb` has 4 occurrences, make it a constant (goconst)
lint / lint-soft (ubuntu-latest): writer.go#L38
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.ANSI, colorprofile.ANSI256 (exhaustive)
lint / lint-soft (ubuntu-latest): env.go#L258
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): profile.go#L86
Magic number: 40, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): profile.go#L90
Magic number: 255.0, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): profile.go#L91
Magic number: 255.0, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): profile.go#L92
Magic number: 255.0, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): profile.go#L118
Magic number: 16, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): profile.go#L120
Magic number: 232, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): writer.go#L98
Magic number: 30, in <argument> detected (mnd)
lint / lint-soft (macos-latest): env.go#L35
string `dumb` has 4 occurrences, make it a constant (goconst)
lint / lint-soft (macos-latest): writer.go#L38
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.ANSI, colorprofile.ANSI256 (exhaustive)
lint / lint-soft (macos-latest): env.go#L258
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (macos-latest): profile.go#L86
Magic number: 40, in <argument> detected (mnd)
lint / lint-soft (macos-latest): profile.go#L90
Magic number: 255.0, in <argument> detected (mnd)
lint / lint-soft (macos-latest): profile.go#L91
Magic number: 255.0, in <argument> detected (mnd)
lint / lint-soft (macos-latest): profile.go#L92
Magic number: 255.0, in <argument> detected (mnd)
lint / lint-soft (macos-latest): profile.go#L118
Magic number: 16, in <argument> detected (mnd)
lint / lint-soft (macos-latest): profile.go#L120
Magic number: 232, in <argument> detected (mnd)
lint / lint-soft (macos-latest): writer.go#L98
Magic number: 30, in <argument> detected (mnd)
lint / lint-soft (windows-latest): env.go#L35
string `dumb` has 4 occurrences, make it a constant (goconst)
lint / lint-soft (windows-latest): writer.go#L38
missing cases in switch of type colorprofile.Profile: colorprofile.Ascii, colorprofile.ANSI, colorprofile.ANSI256 (exhaustive)
lint / lint-soft (windows-latest): env.go#L258
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (windows-latest): profile.go#L86
Magic number: 40, in <argument> detected (mnd)
lint / lint-soft (windows-latest): profile.go#L90
Magic number: 255.0, in <argument> detected (mnd)
lint / lint-soft (windows-latest): profile.go#L91
Magic number: 255.0, in <argument> detected (mnd)
lint / lint-soft (windows-latest): profile.go#L92
Magic number: 255.0, in <argument> detected (mnd)
lint / lint-soft (windows-latest): profile.go#L118
Magic number: 16, in <argument> detected (mnd)
lint / lint-soft (windows-latest): profile.go#L120
Magic number: 232, in <argument> detected (mnd)
lint / lint-soft (windows-latest): writer.go#L98
Magic number: 30, in <argument> detected (mnd)
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/colorprofile/colorprofile. 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/colorprofile/colorprofile. Supported file pattern: go.sum
lint / lint (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/colorprofile/colorprofile. Supported file pattern: go.sum
lint / lint-soft (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/colorprofile/colorprofile. Supported file pattern: go.sum
lint / lint (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\colorprofile\colorprofile. Supported file pattern: go.sum
lint / lint-soft (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\colorprofile\colorprofile. Supported file pattern: go.sum