style: unified app.HandleFunc
style
#445
pr-check.yml
on: pull_request
compliant
34s
staticcheck
1m 18s
Annotations
5 errors and 2 warnings
staticcheck
cannot use c (variable of type *app.RequestContext) as context.Context value in argument to client.Echo: *app.RequestContext does not implement context.Context (missing method Deadline)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
staticcheck
cannot use c (variable of type *app.RequestContext) as context.Context value in argument to client.Echo: *app.RequestContext does not implement context.Context (missing method Deadline)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
staticcheck
[staticcheck] reported by reviewdog 🐶
# github.com/cloudwego/hertz-examples/opentelemetry/hertz/server
opentelemetry/hertz/server/main.go:70:28: cannot use c (variable of type *app.RequestContext) as context.Context value in argument to client.Echo: *app.RequestContext does not implement context.Context (missing method Deadline)
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/cloudwego/hertz-examples/opentelemetry/hertz/server\nopentelemetry/hertz/server/main.go:70:28: cannot use c (variable of type *app.RequestContext) as context.Context value in argument to client.Echo: *app.RequestContext does not implement context.Context (missing method Deadline)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
staticcheck
[staticcheck] reported by reviewdog 🐶
# github.com/cloudwego/hertz-examples/tracer/hertz/server
tracer/hertz/server/main.go:99:28: cannot use c (variable of type *app.RequestContext) as context.Context value in argument to client.Echo: *app.RequestContext does not implement context.Context (missing method Deadline)
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"# github.com/cloudwego/hertz-examples/tracer/hertz/server\ntracer/hertz/server/main.go:99:28: cannot use c (variable of type *app.RequestContext) as context.Context value in argument to client.Echo: *app.RequestContext does not implement context.Context (missing method Deadline)","code":{"value":"compile","url":"https://staticcheck.io/docs/checks#compile"},"location":{"path":"","range":{"start":{"line":0,"column":0},"end":{"line":0,"column":0}}},"related_locations":[],"severity":"ERROR"}
|
staticcheck
Process completed with exit code 1.
|
compliant
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
staticcheck
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions/checkout@v3, actions/setup-go@v4, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|