Skip to content

add slowg analyzer to check inappropriate use of log/slog #15

add slowg analyzer to check inappropriate use of log/slog

add slowg analyzer to check inappropriate use of log/slog #15

Triggered via pull request July 18, 2023 12:11
@rolinhrolinh
synchronize #2
pr/rolinh/slowg
Status Failure
Total duration 42s
Artifacts

pr-check.yaml

on: pull_request
Matrix: unit-test
Matrix: build
Matrix: go-mod
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 9 warnings
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L23
log.DebugContext undefined (type *slog.Logger has no field or method DebugContext)
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L24
log.InfoContext undefined (type *slog.Logger has no field or method InfoContext)
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L25
log.WarnContext undefined (type *slog.Logger has no field or method WarnContext)
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L26
log.ErrorContext undefined (type *slog.Logger has no field or method ErrorContext)
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L42
log.With("key", "val").DebugContext undefined (type *slog.Logger has no field or method DebugContext)
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L43
log.With("key", "val").InfoContext undefined (type *slog.Logger has no field or method InfoContext)
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L44
log.With("key", "val").WarnContext undefined (type *slog.Logger has no field or method WarnContext)
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L45
log.With("key", "val").ErrorContext undefined (type *slog.Logger has no field or method ErrorContext)
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L54
log.WithGroup("group").DebugContext undefined (type *slog.Logger has no field or method DebugContext)
unit-test (tip): slowg/testdata/src/stdlib/stdlib.go#L55
log.WithGroup("group").InfoContext undefined (type *slog.Logger has no field or method InfoContext)
go-mod (oldstable)
Restore cache failed: Dependencies file is not found in /home/runner/work/linters/linters. Supported file pattern: go.sum
go-mod (stable)
Restore cache failed: Dependencies file is not found in /home/runner/work/linters/linters. Supported file pattern: go.sum
go-mod (tip)
Restore cache failed: Dependencies file is not found in /home/runner/work/linters/linters. Supported file pattern: go.sum
unit-test (stable)
Restore cache failed: Dependencies file is not found in /home/runner/work/linters/linters. Supported file pattern: go.sum
unit-test (oldstable)
Restore cache failed: Dependencies file is not found in /home/runner/work/linters/linters. Supported file pattern: go.sum
build (tip)
Restore cache failed: Dependencies file is not found in /home/runner/work/linters/linters. Supported file pattern: go.sum
build (oldstable)
Restore cache failed: Dependencies file is not found in /home/runner/work/linters/linters. Supported file pattern: go.sum
unit-test (tip)
Restore cache failed: Dependencies file is not found in /home/runner/work/linters/linters. Supported file pattern: go.sum
build (stable)
Restore cache failed: Dependencies file is not found in /home/runner/work/linters/linters. Supported file pattern: go.sum