Skip to content

Update: add bcs-lint.yml #1

Update: add bcs-lint.yml

Update: add bcs-lint.yml #1

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

bcs-webconsole.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
lint: bcs-services/bcs-webconsole/console/audit/replay/replay.go#L53
Error return value of `term.Close` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/config/config.go#L45
Error return value of `c.Base.Init` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/config/config.go#L49
Error return value of `c.Auth.Init` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/config/config.go#L53
Error return value of `c.Logging.Init` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/config/config.go#L57
Error return value of `c.BCS.Init` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/config/config.go#L60
Error return value of `c.Redis.Init` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/config/config.go#L63
Error return value of `c.WebConsole.Init` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/config/config.go#L66
Error return value of `c.Etcd.Init` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/config/config.go#L200
Error return value of `c.Logging.InitBlog` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/config/config.go#L201
Error return value of `c.Base.InitManagers` is not checked (errcheck)
lint: bcs-services/bcs-webconsole/console/audit/term.go#L14
package-comments: should have a package comment (revive)
lint: bcs-services/bcs-webconsole/console/audit/term.go#L22
exported: exported type CmdParse should have comment or be unexported (revive)
lint: bcs-services/bcs-webconsole/console/audit/term.go#L28
exported: exported function NewCmdParse should have comment or be unexported (revive)
lint: bcs-services/bcs-webconsole/console/audit/replay/replay.go#L13
package-comments: should have a package comment (revive)
lint: bcs-services/bcs-webconsole/console/config/ternimal_record.go#L21
exported: exported type AuditConf should have comment or be unexported (revive)
lint: bcs-services/bcs-webconsole/console/config/envs.go#L19
exported: exported var BK_APP_CODE should have comment or be unexported (revive)
lint: bcs-services/bcs-webconsole/console/storage/init.go#L14
package-comments: should have a package comment (revive)
lint: bcs-services/bcs-webconsole/console/tracing/constants.go#L14
package-comments: should have a package comment (revive)
lint: 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)
lint: 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)