Skip to content

Update: refine golangci #14

Update: refine golangci

Update: refine golangci #14

Triggered via pull request September 18, 2023 09:46
Status Success
Total duration 3m 11s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

30 errors and 30 warnings
bcs-webconsole
Cannot open: File exists
bcs-webconsole
Cannot open: File exists
bcs-webconsole
Cannot open: File exists
bcs-webconsole
Cannot open: File exists
bcs-webconsole
Cannot open: File exists
bcs-webconsole
Cannot open: File exists
bcs-webconsole
Cannot open: File exists
bcs-webconsole
Cannot open: File exists
bcs-webconsole
Cannot open: File exists
bcs-webconsole
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-bscp
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-monitor
Cannot open: File exists
bcs-webconsole
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
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-bscp
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
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/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/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/criteria/enumor/audit.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/pkg/criteria/constant/env.go#L13
package-comments: should have a package comment (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/pkg/tmplprocess/tmplprocessor.go#L13
package-comments: should have a package comment (revive)
bcs-monitor
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
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/component/client.go#L14
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)