Skip to content

improve authorization #416

improve authorization

improve authorization #416

Triggered via pull request November 29, 2024 09:14
Status Failure
Total duration 8m 36s
Artifacts

presubmit.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
presubmit: pkg/utils/client/metadata/metadata.go#L221
S1034: assigning the result of this type assertion to a variable (switch api := api.(type)) could eliminate type assertions in switch cases (gosimple)
presubmit: pkg/utils/client/metadata/metadata.go#L223
S1034(related information): could eliminate this type assertion (gosimple)
presubmit: pkg/utils/client/metadata/metadata.go#L201
ineffectual assignment to res (ineffassign)
presubmit: pkg/utils/client/metadata/metadata.go#L34
ST1003: should not use ALL_CAPS in Go names; use CamelCase instead (stylecheck)
presubmit: pkg/utils/client/metadata/metadata.go#L36
ST1003: should not use ALL_CAPS in Go names; use CamelCase instead (stylecheck)
presubmit: pkg/utils/client/metadata/metadata.go#L116
ST1003: method RamRoleToken should be RAMRoleToken (stylecheck)
presubmit: pkg/utils/client/metadata/metadata.go#L134
ST1003: struct field AccessKeyId should be AccessKeyID (stylecheck)
presubmit: pkg/utils/client/metadata/metadata.go#L178
ST1003: method Url should be URL (stylecheck)
presubmit: pkg/utils/client/metadata/metadata.go#L219
ST1005: error strings should not end with punctuation or newlines (stylecheck)
presubmit: pkg/utils/client/metadata/metadata.go#L228
ST1005: error strings should not end with punctuation or newlines (stylecheck)