Skip to content

fix: minor typo in grayscale conversion #102

fix: minor typo in grayscale conversion

fix: minor typo in grayscale conversion #102

Re-run triggered November 20, 2024 21:43
Status Success
Total duration 2m 21s
Artifacts

lint.yml

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

Annotations

30 errors and 6 warnings
lint / lint-soft (ubuntu-latest): env.go#L167
`if err == nil` has complex nested blocks (complexity: 7) (nestif)
lint / lint-soft (ubuntu-latest): writer.go#L38
missing cases in switch of type colorprofile.Profile: colorprofile.ANSI256, colorprofile.ANSI, colorprofile.Ascii (exhaustive)
lint / lint-soft (ubuntu-latest): env.go#L199
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#L97
Magic number: 30, in <argument> detected (mnd)
lint / lint-soft (macos-latest): env.go#L167
`if err == nil` has complex nested blocks (complexity: 7) (nestif)
lint / lint-soft (macos-latest): writer.go#L38
missing cases in switch of type colorprofile.Profile: colorprofile.ANSI256, colorprofile.ANSI, colorprofile.Ascii (exhaustive)
lint / lint-soft (macos-latest): env.go#L199
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#L97
Magic number: 30, in <argument> detected (mnd)
lint / lint-soft (windows-latest): env.go#L167
`if err == nil` has complex nested blocks (complexity: 7) (nestif)
lint / lint-soft (windows-latest): writer.go#L38
missing cases in switch of type colorprofile.Profile: colorprofile.ANSI256, colorprofile.ANSI, colorprofile.Ascii (exhaustive)
lint / lint-soft (windows-latest): env.go#L199
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#L97
Magic number: 30, in <argument> detected (mnd)
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-soft (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/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 (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/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
lint / lint (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\colorprofile\colorprofile. Supported file pattern: go.sum