Skip to content

Update: add bcs-lint.yml #2

Update: add bcs-lint.yml

Update: add bcs-lint.yml #2

Triggered via pull request September 18, 2023 02:54
Status Success
Total duration 3m 40s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 errors and 10 warnings
bcs-monitor: bcs-services/bcs-monitor/pkg/config/bcs.go#L62
undefined: jwt (typecheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/config/bkapigw.go#L42
undefined: jwt (typecheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/config/config.go#L160
undefined: yaml (typecheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/config/config.go#L210
undefined: yaml (typecheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/config/logging.go#L37
c.Level undefined (type *LogConf has no field or method Level) (typecheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/tracing/http_tracing.go#L79
undefined: humanize (typecheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/tracing/http_tracing.go#L86
undefined: humanize (typecheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/tracing/http_tracing.go#L102
undefined: humanize (typecheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/component/client.go#L112
undefined: humanize (typecheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/component/client.go#L127
undefined: klog (typecheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/audit/replay/replay.go#L53
Error return value of `term.Close` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/config.go#L45
Error return value of `c.Base.Init` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/config.go#L49
Error return value of `c.Auth.Init` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/config.go#L53
Error return value of `c.Logging.Init` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/config.go#L57
Error return value of `c.BCS.Init` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/config.go#L60
Error return value of `c.Redis.Init` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/config.go#L63
Error return value of `c.WebConsole.Init` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/config.go#L66
Error return value of `c.Etcd.Init` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/config.go#L200
Error return value of `c.Logging.InitBlog` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/config.go#L201
Error return value of `c.Base.InitManagers` is not checked (errcheck)
bcs-webconsole: bcs-services/bcs-webconsole/console/audit/term.go#L22
exported: exported type CmdParse should have comment or be unexported (revive)
bcs-webconsole: bcs-services/bcs-webconsole/console/audit/term.go#L28
exported: exported function NewCmdParse should have comment or be unexported (revive)
bcs-webconsole: bcs-services/bcs-webconsole/console/audit/term.go#L14
package-comments: should have a package comment (revive)
bcs-webconsole: bcs-services/bcs-webconsole/console/audit/replay/replay.go#L13
package-comments: should have a package comment (revive)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/envs.go#L19
exported: exported var BK_APP_CODE should have comment or be unexported (revive)
bcs-webconsole: bcs-services/bcs-webconsole/console/config/ternimal_record.go#L21
exported: exported type AuditConf should have comment or be unexported (revive)
bcs-webconsole: bcs-services/bcs-webconsole/console/storage/init.go#L14
package-comments: should have a package comment (revive)
bcs-webconsole: bcs-services/bcs-webconsole/console/tracing/http_tracing.go#L32
exported: type name will be used as tracing.TracingTransport by other packages, and that is repetitive; consider calling this Transport (revive)
bcs-webconsole: bcs-services/bcs-webconsole/console/tracing/constants.go#L14
package-comments: should have a package comment (revive)
bcs-webconsole: bcs-services/bcs-webconsole/console/tracing/constants.go#L17
exported: exported const ServiceName should have comment (or a comment on this block) or be unexported (revive)