Skip to content

Fix the performance degradation issue of valid_json function (#125) #256

Fix the performance degradation issue of valid_json function (#125)

Fix the performance degradation issue of valid_json function (#125) #256

Triggered via push December 5, 2024 08:03
Status Success
Total duration 1m 36s
Artifacts

go.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
build: point/encode_v2.go#L16
`l` is unused (deadcode)
build: pprofparser/domain/quantity/kind.go#L16
don't use `init` function (gochecknoinits)
build: pprofparser/service/parsing/aggregators.go#L126
string `<unknown>` has 8 occurrences, but such constant `UnknownInfo` already exists (goconst)
build: pprofparser/domain/quantity/quantity.go#L46
ifElseChain: rewrite if-else to switch statement (gocritic)
build: pprofparser/service/parsing/aggregators.go#L196
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
build: pprofparser/service/parsing/aggregators.go#L206
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
build: pprofparser/service/parsing/aggregators.go#L216
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
build: pprofparser/service/parsing/aggregators.go#L279
singleCaseSwitch: should rewrite switch statement to if statement (gocritic)
build: pprofparser/service/parsing/collapse.go#L208
ifElseChain: rewrite if-else to switch statement (gocritic)
build: pprofparser/service/parsing/collapse.go#L369
ifElseChain: rewrite if-else to switch statement (gocritic)
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636