feat(core) : reducing locks coverage to avoid potential deadlocks #5037
Annotations
11 warnings
Run actions/setup-go@v5
Restore cache failed: Dependencies file is not found in /home/runner/work/KubeArmor/KubeArmor. Supported file pattern: go.sum
|
Run Revive Action on KubeArmor:
KubeArmor/policy/policy.go#L17
type name will be used as policy.PolicyServer by other packages, and that stutters; consider calling this Server
|
Run Revive Action on KubeArmor:
KubeArmor/policy/policy.go#L26
parameter 'c' seems to be unused, consider removing or renaming it as _
|
Run Revive Action on KubeArmor:
KubeArmor/policy/policy.go#L58
parameter 'c' seems to be unused, consider removing or renaming it as _
|
Run Revive Action on KubeArmor:
KubeArmor/common/common.go#L133
redefinition of the built-in function new
|
Run Revive Action on KubeArmor:
KubeArmor/state/stateAgent.go#L4
package comment should be of the form "Package state ..."
|
Run Revive Action on KubeArmor:
KubeArmor/cert/certloader.go#L15
exported type CertLoader should have comment or be unexported
|
Run Revive Action on KubeArmor:
KubeArmor/state/stateAgent.go#L42
type name will be used as state.StateAgent by other packages, and that stutters; consider calling this Agent
|
Run Revive Action on KubeArmor:
KubeArmor/cert/certloader.go#L15
type name will be used as cert.CertLoader by other packages, and that stutters; consider calling this Loader
|
Run Revive Action on KubeArmor:
KubeArmor/cert/tls.go#L15
exported const SelfCertProvider should have comment (or a comment on this block) or be unexported
|
Run Revive Action on KubeArmor:
KubeArmor/cert/cert.go#L28
comment on exported const KubeArmor_ORG should be of the form "KubeArmor_ORG ..."
|
Loading