Skip to content

Update: fix

Update: fix #5

Triggered via push September 18, 2023 03:30
Status Success
Total duration 6m 46s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 30 warnings
bcs-bscp: bcs-services/bcs-bscp/embed.go#L27
pattern ui/dist: no matching files found (typecheck)
bcs-bscp
undefined: pbcs.ListAppsReq
bcs-bscp
undefined: pbcs.CreateCommitReq
bcs-bscp
undefined: pbcs.CreateCommitResp
bcs-bscp
undefined: pbcs.ListCommitsReq
bcs-bscp
undefined: pbcs.ListCommitsResp
bcs-bscp
undefined: pbcs.CreateContentReq
bcs-bscp
undefined: pbcs.CreateContentResp
bcs-bscp
undefined: pbcs.ListContentsReq
bcs-bscp
undefined: pbcs.ListContentsResp
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-monitor: bcs-services/bcs-monitor/pkg/config/config.go#L96
Error return value of `c.BKAPIGW.Init` is not checked (errcheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/config/config.go#L100
Error return value of `c.BCS.Init` is not checked (errcheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/config/watch/watch.go#L65
Error return value is not checked (errcheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/discovery/discovery.go#L54
Error return value of `svr.Init` is not checked (errcheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/discovery/discovery.go#L106
Error return value of `etcdRegistry.Init` is not checked (errcheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/query/discovery_client.go#L118
Error return value of `client.addStaticDiscovery` is not checked (errcheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/query/discovery_client.go#L119
Error return value of `client.addStaticDiscovery` is not checked (errcheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/query/discovery_client.go#L283
Error return value of `s.Run` is not checked (errcheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/storage/redis.go#L70
Error return value of `r.Client.Close` is not checked (errcheck)
bcs-monitor: bcs-services/bcs-monitor/pkg/api/logrule/logrule.go#L371
Error return value of `store.UpdateLogRule` is not checked (errcheck)
bcs-bscp: bcs-services/bcs-bscp/pkg/criteria/enumor/audit.go#L13
package-comments: should have a package comment (revive)
bcs-bscp: bcs-services/bcs-bscp/pkg/iam/meta/action.go#L25
exported: comment on exported const FindBusinessResource should be of the form "FindBusinessResource ..." (revive)
bcs-bscp: bcs-services/bcs-bscp/pkg/iam/meta/meta.go#L99
exported: comment on exported function DecisionsMap should be of the form "DecisionsMap ..." (revive)
bcs-bscp: bcs-services/bcs-bscp/pkg/rest/view/modifier/modifier.go#L13
package-comments: should have a package comment (revive)
bcs-bscp: bcs-services/bcs-bscp/pkg/criteria/constant/env.go#L13
package-comments: should have a package comment (revive)
bcs-bscp: bcs-services/bcs-bscp/pkg/criteria/constant/key.go#L97
exported: exported const AuthLoginProviderKey should have comment (or a comment on this block) or be unexported (revive)
bcs-bscp: bcs-services/bcs-bscp/cmd/data-service/db-migration/embed_sql.go#L17
exported: comment on exported var SQLFiles should be of the form "SQLFiles ..." (revive)
bcs-bscp: bcs-services/bcs-bscp/cmd/data-service/db-migration/embed_sql.go#L13
package-comments: should have a package comment (revive)
bcs-bscp: bcs-services/bcs-bscp/cmd/cache-service/service/cache/keys/lock.go#L62
exported: comment on exported method resKind.CredentialMatchedCI should be of the form "CredentialMatchedCI ..." (revive)
bcs-bscp: bcs-services/bcs-bscp/cmd/cache-service/service/cache/keys/cache.go#L13
package-comments: should have a package comment (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/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/replay/replay.go#L13
package-comments: should have a package comment (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/config/envs.go#L19
exported: exported var BK_APP_CODE 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/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)
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-monitor: bcs-services/bcs-monitor/pkg/config/env.go#L19
exported: exported var BK_SYSTEM_ID should have comment or be unexported (revive)
bcs-monitor: bcs-services/bcs-monitor/pkg/utils/table.go#L13
package-comments: should have a package comment (revive)
bcs-monitor: bcs-services/bcs-monitor/pkg/component/iam/iam.go#L14
package-comments: should have a package comment (revive)
bcs-monitor: bcs-services/bcs-monitor/pkg/tracing/http_tracing.go#L14
package-comments: should have a package comment (revive)
bcs-monitor: bcs-services/bcs-monitor/pkg/tracing/http_tracing.go#L39
exported: type name will be used as tracing.TracingTransport by other packages, and that is repetitive; consider calling this Transport (revive)
bcs-monitor: bcs-services/bcs-monitor/pkg/rest/tracing/request_id.go#L13
package-comments: should have a package comment (revive)
bcs-monitor: bcs-services/bcs-monitor/pkg/storegw/static_metrics/static_metrics.go#L14
package-comments: should have a package comment (revive)
bcs-monitor: bcs-services/bcs-monitor/pkg/storegw/static_metrics/static_metrics.go#L33
exported: type name will be used as staticmetrics.StaticMetricsStore by other packages, and that is repetitive; consider calling this Store (revive)
bcs-monitor: bcs-services/bcs-monitor/pkg/component/client.go#L14
package-comments: should have a package comment (revive)
bcs-monitor: bcs-services/bcs-monitor/pkg/query/query.go#L45
exported: type name will be used as query.QueryAPI by other packages, and that is repetitive; consider calling this API (revive)