Skip to content

(v2) use v2 of libraries #499

(v2) use v2 of libraries

(v2) use v2 of libraries #499

Triggered via pull request November 1, 2024 17:11
@aymanbagabasaymanbagabas
synchronize #143
v2-exp
Status Failure
Total duration 1m 6s
Artifacts

lint.yml

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

Annotations

36 errors and 5 warnings
lint / lint (ubuntu-latest): pkg.go#L16
var `registry` is unused (unused)
lint / lint (ubuntu-latest)
issues found
lint / lint-soft (ubuntu-latest): text.go#L24
`if nl == -1` has complex nested blocks (complexity: 6) (nestif)
lint / lint-soft (ubuntu-latest): json.go#L83
missing cases in switch of type slog.Kind: slog.KindAny, slog.KindBool, slog.KindDuration, slog.KindFloat64, slog.KindInt64, slog.KindString, slog.KindTime, slog.KindUint64, slog.KindLogValuer (exhaustive)
lint / lint-soft (ubuntu-latest): level.go#L30
missing cases in switch of type log.Level: log.noLevel (exhaustive)
lint / lint-soft (ubuntu-latest): logger.go#L124
missing cases in switch of type log.Formatter: log.TextFormatter (exhaustive)
lint / lint-soft (ubuntu-latest): stdlog.go#L17
missing cases in switch of type log.Level: log.FatalLevel, log.noLevel (exhaustive)
lint / lint-soft (ubuntu-latest): logger.go#L66
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): logger.go#L154
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): logger.go#L167
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): logger_121.go#L37
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (ubuntu-latest): logger_121.go#L53
Magic number: 2, in <argument> detected (mnd)
lint / lint (windows-latest)
The job was canceled because "ubuntu-latest" failed.
lint / lint (windows-latest)
The operation was canceled.
lint / lint (macos-latest)
The job was canceled because "ubuntu-latest" failed.
lint / lint (macos-latest)
The operation was canceled.
lint / lint-soft (macos-latest): text.go#L24
`if nl == -1` has complex nested blocks (complexity: 6) (nestif)
lint / lint-soft (macos-latest): json.go#L83
missing cases in switch of type slog.Kind: slog.KindAny, slog.KindBool, slog.KindDuration, slog.KindFloat64, slog.KindInt64, slog.KindString, slog.KindTime, slog.KindUint64, slog.KindLogValuer (exhaustive)
lint / lint-soft (macos-latest): level.go#L30
missing cases in switch of type log.Level: log.noLevel (exhaustive)
lint / lint-soft (macos-latest): logger.go#L124
missing cases in switch of type log.Formatter: log.TextFormatter (exhaustive)
lint / lint-soft (macos-latest): stdlog.go#L17
missing cases in switch of type log.Level: log.FatalLevel, log.noLevel (exhaustive)
lint / lint-soft (macos-latest): logger.go#L66
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (macos-latest): logger.go#L154
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (macos-latest): logger.go#L167
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (macos-latest): logger_121.go#L37
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (macos-latest): logger_121.go#L53
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (windows-latest): text.go#L24
`if nl == -1` has complex nested blocks (complexity: 6) (nestif)
lint / lint-soft (windows-latest): json.go#L83
missing cases in switch of type slog.Kind: slog.KindAny, slog.KindBool, slog.KindDuration, slog.KindFloat64, slog.KindInt64, slog.KindString, slog.KindTime, slog.KindUint64, slog.KindLogValuer (exhaustive)
lint / lint-soft (windows-latest): level.go#L30
missing cases in switch of type log.Level: log.noLevel (exhaustive)
lint / lint-soft (windows-latest): logger.go#L124
missing cases in switch of type log.Formatter: log.TextFormatter (exhaustive)
lint / lint-soft (windows-latest): stdlog.go#L17
missing cases in switch of type log.Level: log.FatalLevel, log.noLevel (exhaustive)
lint / lint-soft (windows-latest): logger.go#L66
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (windows-latest): logger.go#L154
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (windows-latest): logger.go#L167
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (windows-latest): logger_121.go#L37
Magic number: 2, in <argument> detected (mnd)
lint / lint-soft (windows-latest): logger_121.go#L53
Magic number: 2, in <argument> detected (mnd)
lint / lint (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/log/log. Supported file pattern: go.sum
lint / lint-soft (ubuntu-latest)
Restore cache failed: Dependencies file is not found in /home/runner/work/log/log. Supported file pattern: go.sum
lint / lint (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/log/log. Supported file pattern: go.sum
lint / lint-soft (macos-latest)
Restore cache failed: Dependencies file is not found in /Users/runner/work/log/log. Supported file pattern: go.sum
lint / lint-soft (windows-latest)
Restore cache failed: Dependencies file is not found in D:\a\log\log. Supported file pattern: go.sum