Skip to content

Add pprofparser utils package #215

Add pprofparser utils package

Add pprofparser utils package #215

Triggered via pull request September 5, 2024 07:42
Status Failure
Total duration 1m 47s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

14 errors and 1 warning
build: pprofparser/service/parsing/collapse.go#L13
tracing redeclared in this block
build: pprofparser/service/parsing/collapse.go#L11
other declaration of tracing
build: pprofparser/service/parsing/collapse.go#L13
imported and not used: "github.com/GuanceCloud/cliutils/pprofparser/domain/tracing"
build
Process completed with exit code 1.
build: pprofparser/domain/events/type.go#L260
`newSortMap` is unused (deadcode)
build: pprofparser/domain/events/type.go#L271
`newDescriptionMap` is unused (deadcode)
build: pprofparser/service/parsing/collapse.go#L60
Error return value of `f.Close` is not checked (errcheck)
build: pprofparser/service/parsing/collapse.go#L147
Error return value of `f.Close` is not checked (errcheck)
build: pprofparser/service/parsing/collapse.go#L308
Error return value of `f.Close` is not checked (errcheck)
build: pprofparser/service/parsing/pprof.go#L355
Error return value of `closable.Close` is not checked (errcheck)
build: pprofparser/tools/filepathtoolkit/stat_test.go#L6
use of `println` forbidden by pattern `^print(ln)?$` (forbidigo)
build: pprofparser/tools/filepathtoolkit/stat_test.go#L7
use of `println` forbidden by pattern `^print(ln)?$` (forbidigo)
build: pprofparser/tools/filepathtoolkit/stat_test.go#L8
use of `println` forbidden by pattern `^print(ln)?$` (forbidigo)
build: pprofparser/service/parsing/collapse_test.go#L16
use of `println` forbidden by pattern `^print(ln)?$` (forbidigo)
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/