feat: support cwgo generate code && service registry extension #266
Annotations
6 errors
pkg/client/check.go#L56
[staticcheck] reported by reviewdog 🐶
should omit comparison to bool constant, can be simplified to !isExist
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"should omit comparison to bool constant, can be simplified to !isExist","code":{"value":"S1002","url":"https://staticcheck.io/docs/checks#S1002"},"location":{"path":"/data00/runner/cloudwego-sg-runner-04/cwgo/cwgo/pkg/client/check.go","range":{"start":{"line":56,"column":57}}},"severity":"ERROR"}
|
pkg/generator/imports.go#L25
[staticcheck] reported by reviewdog 🐶
error var keyInputErr should have name of the form errFoo
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"error var keyInputErr should have name of the form errFoo","code":{"value":"ST1012","url":"https://staticcheck.io/docs/checks#ST1012"},"location":{"path":"/data00/runner/cloudwego-sg-runner-04/cwgo/cwgo/pkg/generator/imports.go","range":{"start":{"line":25,"column":5}}},"severity":"ERROR"}
|
pkg/generator/server.go#L33
[staticcheck] reported by reviewdog 🐶
error var typeInputErr should have name of the form errFoo
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"error var typeInputErr should have name of the form errFoo","code":{"value":"ST1012","url":"https://staticcheck.io/docs/checks#ST1012"},"location":{"path":"/data00/runner/cloudwego-sg-runner-04/cwgo/cwgo/pkg/generator/server.go","range":{"start":{"line":33,"column":5}}},"severity":"ERROR"}
|
pkg/generator/template.go#L196
[staticcheck] reported by reviewdog 🐶
should check returned error before deferring file.Close()
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"should check returned error before deferring file.Close()","code":{"value":"SA5001","url":"https://staticcheck.io/docs/checks#SA5001"},"location":{"path":"/data00/runner/cloudwego-sg-runner-04/cwgo/cwgo/pkg/generator/template.go","range":{"start":{"line":196,"column":4}}},"severity":"ERROR"}
|
pkg/server/check.go#L52
[staticcheck] reported by reviewdog 🐶
should omit comparison to bool constant, can be simplified to !isExist
Raw Output:
{"source":{"name":"staticcheck","url":"https://staticcheck.io"},"message":"should omit comparison to bool constant, can be simplified to !isExist","code":{"value":"S1002","url":"https://staticcheck.io/docs/checks#S1002"},"location":{"path":"/data00/runner/cloudwego-sg-runner-04/cwgo/cwgo/pkg/server/check.go","range":{"start":{"line":52,"column":57}}},"severity":"ERROR"}
|
|
The logs for this run have expired and are no longer available.
Loading