Preparing report...

Report for kmodules.xyz/client-go

A+    Excellent!    Found 93 issues across 125 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo94%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.


golint27%

Golint is a linter for Go source code.

    • /kmodules.xyz/client-go/dynamic/kubernetes.go
    • Line 47: warning: exported function WaitUntilDeleted should have comment or be unexported (golint)
    • Line 66: warning: exported function UntilHasLabel should have comment or be unexported (golint)
    • Line 70: warning: exported function UntilHasAnnotation should have comment or be unexported (golint)
    • Line 146: warning: exported function DetectWorkload should have comment or be unexported (golint)
    • Line 200: warning: exported function RemoveOwnerReferenceForItems should have comment or be unexported (golint)
    • Line 234: warning: exported function RemoveOwnerReferenceForSelector should have comment or be unexported (golint)
    • Line 266: warning: exported function EnsureOwnerReferenceForItems should have comment or be unexported (golint)
    • Line 300: warning: exported function EnsureOwnerReferenceForSelector should have comment or be unexported (golint)
    • Line 331: warning: exported function ResourceExists should have comment or be unexported (golint)
    • Line 354: warning: exported function ResourcesExists should have comment or be unexported (golint)
    • Line 372: warning: exported function ResourcesNotExists should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/pod_status.go
    • Line 24: warning: exported const PodConditionTypeReady should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: comment on exported function HasPodCondition should be of the form "HasPodCondition ..." (golint)
    • Line 101: warning: exported function UpsertPodReadinessGateConditionType should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/pv.go
    • Line 34: warning: exported function CreateOrPatchPV should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchPV should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchPVObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdatePV should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/portforward/tunnel.go
    • Line 39: warning: exported type Tunnel should have comment or be unexported (golint)
    • Line 52: warning: exported type TunnelOptions should have comment or be unexported (golint)
    • Line 61: warning: exported function NewTunnel should have comment or be unexported (golint)
    • Line 75: warning: exported method Tunnel.ForwardPort should have comment or be unexported (golint)
    • Line 131: warning: exported method Tunnel.Close should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/pod.go
    • Line 34: warning: exported function CreateOrPatchPod should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchPod should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchPodObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdatePod should have comment or be unexported (golint)
    • Line 120: warning: comment on exported function PodRunningAndReady should be of the form "PodRunningAndReady ..." (golint)
    • Line 136: warning: exported function RestartPods should have comment or be unexported (golint)
    • Line 146: warning: exported function WaitUntilPodRunning should have comment or be unexported (golint)
    • Line 156: warning: exported function WaitUntilPodRunningBySelector should have comment or be unexported (golint)
    • Line 184: warning: exported function WaitUntilPodDeletedBySelector should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/cmp.go
    • Line 45: warning: exported function Diff should have comment or be unexported (golint)
    • Line 49: warning: exported function Equal should have comment or be unexported (golint)
    • Line 53: warning: exported const LastAppliedConfigAnnotation should have comment or be unexported (golint)
    • Line 80: warning: exported function JsonDiff should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/hash.go
    • Line 65: warning: exported function GenerationHash should have comment or be unexported (golint)
    • Line 99: warning: exported function MustAlreadyReconciled should have comment or be unexported (golint)
    • Line 107: warning: exported function AlreadyReconciled should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/storage/v1/storageclass.go
    • Line 34: warning: exported function CreateOrPatchStorageClass should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchStorageClass should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchStorageClassObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateStorageClass should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/discovery/restmapper.go
    • Line 32: warning: exported function APIResourceForGVK should have comment or be unexported (golint)
    • Line 66: warning: exported function ResourceForGVK should have comment or be unexported (golint)
    • Line 70: warning: exported function FilterAPISubResources should have comment or be unexported (golint)
    • Line 80: warning: exported function FilterSubResources should have comment or be unexported (golint)
    • Line 90: warning: exported function NewRestMapper should have comment or be unexported (golint)
    • Line 94: warning: exported type ResourceMapper should have comment or be unexported (golint)
    • Line 111: warning: exported function NewResourceMapper should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/rbac/v1/role.go
    • Line 34: warning: exported function CreateOrPatchRole should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchRole should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchRoleObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateRole should have comment or be unexported (golint)
    • Line 103: warning: exported function WaitUntillRoleDeleted should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/doctor/types.go
    • Line 17: warning: package comment should be of the form "Package doctor ..." (golint)
    • Line 31: warning: exported type ClusterInfo should have comment or be unexported (golint)
    • Line 39: warning: exported type VersionInfo should have comment or be unexported (golint)
    • Line 48: warning: exported type RestConfig should have comment or be unexported (golint)
    • Line 54: warning: exported type Capabilities should have comment or be unexported (golint)
    • Line 64: warning: exported type APIServerConfig should have comment or be unexported (golint)
    • Line 83: warning: exported var ErrUnknown should have comment or be unexported (golint)
    • Line 86: warning: exported type FeatureList should have comment or be unexported (golint)
    • Line 91: warning: exported method FeatureList.Status should have comment or be unexported (golint)
    • Line 101: warning: exported type APIServers should have comment or be unexported (golint)
    • Line 103: warning: exported type ExtensionServerConfig should have comment or be unexported (golint)
    • Line 108: warning: exported type RequestHeaderConfig should have comment or be unexported (golint)
    • Line 130: warning: exported method ClusterInfo.Validate should have comment or be unexported (golint)
    • Line 228: warning: exported method APIServers.AdmissionControl should have comment or be unexported (golint)
    • Line 251: warning: exported method APIServers.RuntimeConfig should have comment or be unexported (golint)
    • Line 275: warning: exported method APIServers.FeatureGate should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/incluster.go
    • Line 34: warning: exported function Namespace should have comment or be unexported (golint)
    • Line 60: warning: exported function APIServerCertificate should have comment or be unexported (golint)
    • Line 98: warning: exported function ClusterDomain should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/status.go
    • Line 29: warning: exported type Condition should have comment or be unexported (golint)
    • Line 35: warning: exported function StatusEqual should have comment or be unexported (golint)
    • Line 50: warning: exported function StatusConditionAwareEqual should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/cli/cli.go
    • Line 37: warning: exported var AnalyticsClientID should have comment or be unexported (golint)
    • Line 42: warning: exported function SendAnalytics should have comment or be unexported (golint)
    • Line 53: warning: exported function SendPeriodicAnalytics should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/certholder/lib.go
    • Line 30: warning: exported type CertHolder should have comment or be unexported (golint)
    • Line 34: warning: exported var DefaultHolder should have comment or be unexported (golint)
    • Line 36: warning: exported function New should have comment or be unexported (golint)
    • Line 42: warning: exported method CertHolder.ForResource should have comment or be unexported (golint)
    • Line 52: warning: exported type ResourceCerts should have comment or be unexported (golint)
    • Line 58: warning: exported type Paths should have comment or be unexported (golint)
    • Line 65: warning: exported method ResourceCerts.Save should have comment or be unexported (golint)
    • Line 114: warning: exported method ResourceCerts.Get should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/openapi/getter_storage.go
    • Line 28: warning: exported type GetterStorage should have comment or be unexported (golint)
    • Line 36: warning: exported function NewGetterStorage should have comment or be unexported (golint)
    • Line 40: warning: exported method GetterStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 44: warning: exported method GetterStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 48: warning: comment on exported method GetterStorage.New should be of the form "New ..." (golint)
    • Line 53: warning: exported method GetterStorage.Get should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/apps/v1/daemonset.go
    • Line 34: warning: exported function CreateOrPatchDaemonSet should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchDaemonSet should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchDaemonSetObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateDaemonSet should have comment or be unexported (golint)
    • Line 103: warning: exported function WaitUntilDaemonSetReady should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/dynamic/conditions/conditions.go
    • Line 34: warning: exported type DynamicOptions should have comment or be unexported (golint)
    • Line 42: warning: exported method DynamicOptions.HasCondition should have comment or be unexported (golint)
    • Line 50: warning: exported method DynamicOptions.GetCondition should have comment or be unexported (golint)
    • Line 59: warning: exported method DynamicOptions.SetCondition should have comment or be unexported (golint)
    • Line 82: warning: exported method DynamicOptions.RemoveCondition should have comment or be unexported (golint)
    • Line 105: warning: exported method DynamicOptions.IsConditionTrue should have comment or be unexported (golint)
    • Line 113: warning: exported method DynamicOptions.ReadConditions should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/admissionregistration/v1beta1/mutatingwebhookconfiguration.go
    • Line 42: warning: exported function CreateOrPatchMutatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 65: warning: exported function PatchMutatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 69: warning: exported function PatchMutatingWebhookConfigurationObject should have comment or be unexported (golint)
    • Line 92: warning: exported function TryUpdateMutatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 113: warning: exported function UpdateMutatingWebhookCABundle should have comment or be unexported (golint)
    • Line 169: warning: exported function SyncMutatingWebhookCABundle should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/admissionregistration/v1beta1/xray.go
    • Line 56: warning: exported const KeyAdmissionWebhookActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 62: warning: exported var ErrMissingKind should have comment or be unexported (golint)
    • Line 63: warning: exported var ErrMissingVersion should have comment or be unexported (golint)
    • Line 64: warning: exported var ErrWebhookNotActivated should have comment or be unexported (golint)
    • Line 66: warning: exported type ValidatingWebhookXray should have comment or be unexported (golint)
    • Line 75: warning: exported function NewCreateValidatingWebhookXray should have comment or be unexported (golint)
    • Line 86: warning: exported function NewUpdateValidatingWebhookXray should have comment or be unexported (golint)
    • Line 97: warning: exported function NewDeleteValidatingWebhookXray should have comment or be unexported (golint)
    • Line 122: warning: exported method ValidatingWebhookXray.IsActive should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/service.go
    • Line 34: warning: exported function CreateOrPatchService should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchService should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchServiceObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateService should have comment or be unexported (golint)
    • Line 103: warning: exported function MergeServicePorts should have comment or be unexported (golint)
    • Line 138: warning: exported function WaitUntilServiceDeletedBySelector should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/doctor/doctor.go
    • Line 17: warning: package comment should be of the form "Package doctor ..." (golint)
    • Line 22: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 26: warning: exported type Doctor should have comment or be unexported (golint)
    • Line 31: warning: exported function New should have comment or be unexported (golint)
    • Line 39: warning: exported method Doctor.GetClusterInfo should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/exec/lib.go
    • Line 32: warning: exported type Options should have comment or be unexported (golint)
    • Line 37: warning: exported function Container should have comment or be unexported (golint)
    • Line 43: warning: exported function Command should have comment or be unexported (golint)
    • Line 49: warning: exported function Input should have comment or be unexported (golint)
    • Line 56: warning: exported function TTY should have comment or be unexported (golint)
    • Line 62: warning: exported function ExecIntoPod should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/parser/parser.go
    • Line 35: warning: exported type ResourceFn should have comment or be unexported (golint)
    • Line 37: warning: exported function ProcessResources should have comment or be unexported (golint)
    • Line 64: warning: exported function ProcessDir should have comment or be unexported (golint)
    • Line 86: warning: exported function ListResources should have comment or be unexported (golint)
    • Line 112: warning: exported function ExtractComponents should have comment or be unexported (golint)
    • Line 142: warning: exported function IsYAMLSyntaxError should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/apps/v1/replicaset.go
    • Line 35: warning: exported function CreateOrPatchReplicaSet should have comment or be unexported (golint)
    • Line 56: warning: exported function PatchReplicaSet should have comment or be unexported (golint)
    • Line 60: warning: exported function PatchReplicaSetObject should have comment or be unexported (golint)
    • Line 83: warning: exported function TryUpdateReplicaSet should have comment or be unexported (golint)
    • Line 104: warning: exported function WaitUntilReplicaSetReady should have comment or be unexported (golint)
    • Line 113: warning: exported function IsOwnedByDeployment should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/rbac/v1/clusterrolebinding.go
    • Line 34: warning: exported function CreateOrPatchClusterRoleBinding should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchClusterRoleBinding should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchClusterRoleBindingObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateClusterRoleBinding should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/openapi/std_storage.go
    • Line 30: warning: exported type StandardStorage should have comment or be unexported (golint)
    • Line 38: warning: exported function NewStandardStorage should have comment or be unexported (golint)
    • Line 42: warning: exported method StandardStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 46: warning: exported method StandardStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 50: warning: comment on exported method StandardStorage.New should be of the form "New ..." (golint)
    • Line 55: warning: exported method StandardStorage.Create should have comment or be unexported (golint)
    • Line 59: warning: exported method StandardStorage.Get should have comment or be unexported (golint)
    • Line 63: warning: comment on exported method StandardStorage.NewList should be of the form "NewList ..." (golint)
    • Line 68: warning: exported method StandardStorage.List should have comment or be unexported (golint)
    • Line 72: warning: exported method StandardStorage.ConvertToTable should have comment or be unexported (golint)
    • Line 76: warning: comment on exported method StandardStorage.Update should be of the form "Update ..." (golint)
    • Line 81: warning: comment on exported method StandardStorage.Delete should be of the form "Delete ..." (golint)
    • Line 86: warning: comment on exported method StandardStorage.DeleteCollection should be of the form "DeleteCollection ..." (golint)
    • Line 91: warning: comment on exported method StandardStorage.Watch should be of the form "Watch ..." (golint)
    • /kmodules.xyz/client-go/core/v1/configmap.go
    • Line 34: warning: exported function CreateOrPatchConfigMap should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchConfigMap should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchConfigMapObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateConfigMap should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/extensions/v1beta1/deployment.go
    • Line 35: warning: exported function CreateOrPatchDeployment should have comment or be unexported (golint)
    • Line 56: warning: exported function PatchDeployment should have comment or be unexported (golint)
    • Line 60: warning: exported function PatchDeploymentObject should have comment or be unexported (golint)
    • Line 83: warning: exported function TryUpdateDeployment should have comment or be unexported (golint)
    • Line 104: warning: exported function WaitUntilDeploymentReady should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/dynamic/unstructured.go
    • Line 37: warning: exported function CreateOrPatch should have comment or be unexported (golint)
    • Line 69: warning: exported function Patch should have comment or be unexported (golint)
    • Line 80: warning: exported function PatchObject should have comment or be unexported (golint)
    • Line 116: warning: exported function TryUpdate should have comment or be unexported (golint)
    • Line 151: warning: exported function UpdateStatus should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/kubernetes.go
    • Line 31: warning: exported function AddFinalizer should have comment or be unexported (golint)
    • Line 41: warning: exported function HasFinalizer should have comment or be unexported (golint)
    • Line 50: warning: exported function RemoveFinalizer should have comment or be unexported (golint)
    • Line 62: warning: exported function EnsureContainerDeleted should have comment or be unexported (golint)
    • Line 71: warning: exported function UpsertContainer should have comment or be unexported (golint)
    • Line 93: warning: exported function UpsertContainers should have comment or be unexported (golint)
    • Line 101: warning: exported function UpsertVolume should have comment or be unexported (golint)
    • Line 119: warning: exported function UpsertVolumeClaim should have comment or be unexported (golint)
    • Line 129: warning: exported function EnsureVolumeDeleted should have comment or be unexported (golint)
    • Line 138: warning: exported function UpsertVolumeMount should have comment or be unexported (golint)
    • Line 155: warning: exported function EnsureVolumeMountDeleted should have comment or be unexported (golint)
    • Line 164: warning: exported function UpsertVolumeMountByPath should have comment or be unexported (golint)
    • Line 174: warning: exported function EnsureVolumeMountDeletedByPath should have comment or be unexported (golint)
    • Line 183: warning: exported function UpsertEnvVars should have comment or be unexported (golint)
    • Line 200: warning: exported function EnsureEnvVarDeleted should have comment or be unexported (golint)
    • Line 209: warning: exported function UpsertMap should have comment or be unexported (golint)
    • Line 219: warning: exported function MergeLocalObjectReferences should have comment or be unexported (golint)
    • Line 289: warning: exported function RemoveOwnerReference should have comment or be unexported (golint)
    • Line 311: warning: exported function IsOwnerOfGroup should have comment or be unexported (golint)
    • Line 325: warning: exported function IsOwnerOfGroupKind should have comment or be unexported (golint)
    • Line 342: warning: exported function UpsertToleration should have comment or be unexported (golint)
    • Line 352: warning: exported function RemoveToleration should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/node.go
    • Line 42: warning: exported function CreateOrPatchNode should have comment or be unexported (golint)
    • Line 63: warning: exported function PatchNode should have comment or be unexported (golint)
    • Line 67: warning: exported function PatchNodeObject should have comment or be unexported (golint)
    • Line 90: warning: exported function TryUpdateNode should have comment or be unexported (golint)
    • Line 129: warning: exported type Topology should have comment or be unexported (golint)
    • Line 151: warning: exported method Topology.ConvertAffinity should have comment or be unexported (golint)
    • Line 203: warning: exported function DetectTopology should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/encoding.go
    • Line 34: warning: exported type Codec should have comment or be unexported (golint)
    • Line 39: warning: exported var JSONSerializer should have comment or be unexported (golint)
    • Line 48: warning: exported var JSONPrettySerializer should have comment or be unexported (golint)
    • Line 57: warning: exported var YAMLSerializer should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/dynamic/factory/interface.go
    • Line 28: warning: exported type Factory should have comment or be unexported (golint)
    • Line 32: warning: exported function New should have comment or be unexported (golint)
    • Line 39: warning: exported function NewCached should have comment or be unexported (golint)
    • Line 47: warning: exported function NewFilteredCached should have comment or be unexported (golint)
    • Line 55: warning: exported function NewSharedCached should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/openapi/rd_storage.go
    • Line 29: warning: exported type RDStorage should have comment or be unexported (golint)
    • Line 39: warning: exported function NewRDStorage should have comment or be unexported (golint)
    • Line 43: warning: exported method RDStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 47: warning: exported method RDStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 51: warning: comment on exported method RDStorage.New should be of the form "New ..." (golint)
    • Line 56: warning: exported method RDStorage.Get should have comment or be unexported (golint)
    • Line 60: warning: comment on exported method RDStorage.NewList should be of the form "NewList ..." (golint)
    • Line 65: warning: exported method RDStorage.List should have comment or be unexported (golint)
    • Line 69: warning: exported method RDStorage.ConvertToTable should have comment or be unexported (golint)
    • Line 73: warning: comment on exported method RDStorage.Delete should be of the form "Delete ..." (golint)
    • /kmodules.xyz/client-go/core/v1/events.go
    • Line 34: warning: exported function CreateOrPatchEvent should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchEvent should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchEventObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateEvent should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/serviceaccount.go
    • Line 34: warning: exported function CreateOrPatchServiceAccount should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchServiceAccount should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchServiceAccountObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateServiceAccount should have comment or be unexported (golint)
    • Line 103: warning: exported function WaitUntillServiceAccountDeleted should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/cloud.go
    • Line 30: warning: comment on exported function TestGKE should be of the form "TestGKE ..." (golint)
    • Line 71: warning: exported function TestAKS should have comment or be unexported (golint)
    • Line 102: warning: exported function TestEKS should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/util.go
    • Line 28: warning: exported const RetryInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 34: warning: exported type VerbType should have comment or be unexported (golint)
    • Line 37: warning: exported const VerbUnchanged should have comment (or a comment on this block) or be unexported (golint)
    • Line 47: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 51: warning: exported function IsRequestRetryable should have comment or be unexported (golint)
    • Line 61: warning: exported function AdmissionWebhookDeniedRequest should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/admissionregistration/v1beta1/validatingwebhookconfiguration.go
    • Line 42: warning: exported function CreateOrPatchValidatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 65: warning: exported function PatchValidatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 69: warning: exported function PatchValidatingWebhookConfigurationObject should have comment or be unexported (golint)
    • Line 92: warning: exported function TryUpdateValidatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 113: warning: exported function UpdateValidatingWebhookCABundle should have comment or be unexported (golint)
    • Line 169: warning: exported function SyncValidatingWebhookCABundle should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/policy/v1beta1/psp.go
    • Line 34: warning: exported function CreateOrPatchPodSecurityPolicy should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchPodSecurityPolicy should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchPodSecurityPolicyObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdatePodSecurityPolicy should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/annotations.go
    • Line 26: warning: exported type ParserFunc should have comment or be unexported (golint)
    • Line 36: warning: exported function GetBool should have comment or be unexported (golint)
    • Line 47: warning: exported function GetBoolValue should have comment or be unexported (golint)
    • Line 52: warning: exported function GetInt should have comment or be unexported (golint)
    • Line 63: warning: exported function GetIntValue should have comment or be unexported (golint)
    • Line 68: warning: exported function GetString should have comment or be unexported (golint)
    • Line 79: warning: exported function GetStringValue should have comment or be unexported (golint)
    • Line 84: warning: exported function HasKey should have comment or be unexported (golint)
    • Line 92: warning: exported function RemoveKey should have comment or be unexported (golint)
    • Line 100: warning: exported function GetList should have comment or be unexported (golint)
    • Line 113: warning: exported function GetListValue should have comment or be unexported (golint)
    • Line 118: warning: exported function GetMap should have comment or be unexported (golint)
    • Line 131: warning: exported function GetMapValue should have comment or be unexported (golint)
    • Line 136: warning: exported function GetFloat should have comment or be unexported (golint)
    • Line 148: warning: exported function GetFloatValue should have comment or be unexported (golint)
    • Line 153: warning: exported function GetDuration should have comment or be unexported (golint)
    • Line 165: warning: exported function GetDurationValue should have comment or be unexported (golint)
    • Line 170: warning: exported type GetFunc should have comment or be unexported (golint)
    • Line 172: warning: exported function ParseFor should have comment or be unexported (golint)
    • Line 178: warning: exported function GetStringValueForKeys should have comment or be unexported (golint)
    • Line 191: warning: exported function GetBytesForKeys should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/pvc.go
    • Line 34: warning: exported function CreateOrPatchPVC should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchPVC should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchPVCObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdatePVC should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/queue/handler.go
    • Line 45: warning: exported function DefaultEventHandler should have comment or be unexported (golint)
    • Line 54: warning: exported function NewEventHandler should have comment or be unexported (golint)
    • Line 63: warning: exported function NewUpsertHandler should have comment or be unexported (golint)
    • Line 72: warning: exported function NewDeleteHandler should have comment or be unexported (golint)
    • Line 81: warning: exported function NewReconcilableHandler should have comment or be unexported (golint)
    • Line 94: warning: exported function NewChangeHandler should have comment or be unexported (golint)
    • Line 111: warning: exported function NewSpecStatusChangeHandler should have comment or be unexported (golint)
    • Line 125: warning: exported function Enqueue should have comment or be unexported (golint)
    • Line 134: warning: exported function EnqueueAfter should have comment or be unexported (golint)
    • Line 143: warning: exported method QueueingEventHandler.OnAdd should have comment or be unexported (golint)
    • Line 150: warning: exported method QueueingEventHandler.OnUpdate should have comment or be unexported (golint)
    • Line 157: warning: exported method QueueingEventHandler.OnDelete should have comment or be unexported (golint)
    • Line 164: warning: exported function NewVersionedHandler should have comment or be unexported (golint)
    • Line 196: warning: exported function NewFilteredHandler should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/apps/v1/statefulset.go
    • Line 38: warning: exported function CreateOrPatchStatefulSet should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchStatefulSet should have comment or be unexported (golint)
    • Line 63: warning: exported function PatchStatefulSetObject should have comment or be unexported (golint)
    • Line 86: warning: exported function TryUpdateStatefulSet should have comment or be unexported (golint)
    • Line 107: warning: exported function IsStatefulSetReady should have comment or be unexported (golint)
    • Line 115: warning: exported function StatefulSetsAreReady should have comment or be unexported (golint)
    • Line 124: warning: exported function WaitUntilStatefulSetReady should have comment or be unexported (golint)
    • Line 133: warning: exported function DeleteStatefulSet should have comment or be unexported (golint)
    • Line 138: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /kmodules.xyz/client-go/rbac/v1/clusterrole.go
    • Line 34: warning: exported function CreateOrPatchClusterRole should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchClusterRole should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchClusterRoleObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateClusterRole should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/api/v1/certificates.go
    • Line 28: warning: exported type TLSConfig should have comment or be unexported (golint)
    • Line 40: warning: exported type CertificateSpec should have comment or be unexported (golint)
    • Line 114: warning: comment on exported type PrivateKeyEncoding should be of the form "PrivateKeyEncoding ..." (with optional leading article) (golint)
    • /kmodules.xyz/client-go/openapi/cd_storage.go
    • Line 28: warning: exported type CDStorage should have comment or be unexported (golint)
    • Line 37: warning: exported function NewCDStorage should have comment or be unexported (golint)
    • Line 41: warning: exported method CDStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 45: warning: exported method CDStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 49: warning: comment on exported method CDStorage.New should be of the form "New ..." (golint)
    • Line 54: warning: exported method CDStorage.Create should have comment or be unexported (golint)
    • Line 58: warning: comment on exported method CDStorage.Delete should be of the form "Delete ..." (golint)
    • /kmodules.xyz/client-go/openapi/render.go
    • Line 42: warning: exported type TypeInfo should have comment or be unexported (golint)
    • Line 49: warning: exported type VersionResource should have comment or be unexported (golint)
    • Line 54: warning: exported type Config should have comment or be unexported (golint)
    • Line 67: warning: exported method Config.GetOpenAPIDefinitions should have comment or be unexported (golint)
    • Line 77: warning: exported function RenderOpenAPISpec should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/extensions/v1beta1/daemonset.go
    • Line 34: warning: exported function CreateOrPatchDaemonSet should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchDaemonSet should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchDaemonSetObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateDaemonSet should have comment or be unexported (golint)
    • Line 103: warning: exported function WaitUntilDaemonSetReady should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/ipallocator/lib.go
    • Line 24: warning: exported type DiscoverVia should have comment or be unexported (golint)
    • Line 30: warning: exported const DiscoverViaDNS should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type IPAllocator should have comment or be unexported (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 51: warning: exported method IPAllocator.ClusterIP should have comment or be unexported (golint)
    • Line 66: warning: exported method IPAllocator.ServiceAddress should have comment or be unexported (golint)
    • Line 77: warning: exported method IPAllocator.HostNetwork should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/batch/v1/job.go
    • Line 35: warning: exported function CreateOrPatchJob should have comment or be unexported (golint)
    • Line 56: warning: exported function PatchJob should have comment or be unexported (golint)
    • Line 60: warning: exported function PatchJobObject should have comment or be unexported (golint)
    • Line 83: warning: exported function TryUpdateJob should have comment or be unexported (golint)
    • Line 104: warning: exported function WaitUntilJobCompletion should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/extensions/v1beta1/ingress.go
    • Line 34: warning: exported function CreateOrPatchIngress should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchIngress should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchIngressObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateIngress should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/clusterid/lib.go
    • Line 30: warning: exported function AddFlags should have comment or be unexported (golint)
    • Line 34: warning: exported function AddGoFlags should have comment or be unexported (golint)
    • Line 38: warning: exported function ClusterName should have comment or be unexported (golint)
    • Line 42: warning: exported function ClusterUID should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/clientcmd/client_config.go
    • Line 28: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 49: warning: exported function BuildConfigFromContext should have comment or be unexported (golint)
    • Line 67: warning: exported function ClientFromContext should have comment or be unexported (golint)
    • Line 75: warning: exported function NamespaceFromContext should have comment or be unexported (golint)
    • Line 97: warning: exported function UseKubeAPIServerFQDNForAKS should have comment or be unexported (golint)
    • Line 101: warning: comment on exported function Fix should be of the form "Fix ..." (golint)
    • /kmodules.xyz/client-go/core/v1/endpoints.go
    • Line 32: warning: exported function CreateOrPatchEndpoints should have comment or be unexported (golint)
    • Line 53: warning: exported function PatchEndpoints should have comment or be unexported (golint)
    • Line 57: warning: exported function PatchEndpointsObject should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/batch/v1beta1/cronjob.go
    • Line 34: warning: exported function CreateOrPatchCronJob should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchCronJob should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchCronJobObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateCronJob should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/certificates/v1beta1/csr.go
    • Line 34: warning: exported function CreateOrPatchCSR should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchCSR should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchCSRObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateCSR should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/apiregistration/v1beta1/apiservice.go
    • Line 34: warning: exported function CreateOrPatchAPIService should have comment or be unexported (golint)
    • Line 57: warning: exported function PatchAPIService should have comment or be unexported (golint)
    • Line 61: warning: exported function PatchAPIServiceObject should have comment or be unexported (golint)
    • Line 84: warning: exported function TryUpdateAPIService should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/apps/v1/deployment.go
    • Line 38: warning: exported function CreateOrPatchDeployment should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchDeployment should have comment or be unexported (golint)
    • Line 63: warning: exported function PatchDeploymentObject should have comment or be unexported (golint)
    • Line 86: warning: exported function TryUpdateDeployment should have comment or be unexported (golint)
    • Line 107: warning: exported function IsDeploymentReady should have comment or be unexported (golint)
    • Line 115: warning: exported function DeploymentsAreReady should have comment or be unexported (golint)
    • Line 124: warning: exported function WaitUntilDeploymentReady should have comment or be unexported (golint)
    • Line 133: warning: exported function DeleteDeployment should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/networking/v1beta1/ingress.go
    • Line 34: warning: exported function CreateOrPatchIngress should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchIngress should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchIngressObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateIngress should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/secret.go
    • Line 34: warning: exported function CreateOrPatchSecret should have comment or be unexported (golint)
    • Line 79: warning: exported function PatchSecret should have comment or be unexported (golint)
    • Line 83: warning: exported function PatchSecretObject should have comment or be unexported (golint)
    • Line 106: warning: exported function TryUpdateSecret should have comment or be unexported (golint)
    • Line 127: warning: exported function ObfuscateSecret should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/dataformat.go
    • Line 26: warning: exported function DecodeObject should have comment or be unexported (golint)
    • Line 39: warning: exported type DataFormat should have comment or be unexported (golint)
    • Line 42: warning: comment on exported const KeepFormat should be of the form "KeepFormat ..." (golint)
    • Line 44: warning: exported const JsonFormat should have comment (or a comment on this block) or be unexported (golint)
    • Line 48: warning: exported function NewDataFormat should have comment or be unexported (golint)
    • Line 59: warning: exported function Marshal should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/patch.go
    • Line 39: warning: exported function CreateStrategicPatch should have comment or be unexported (golint)
    • Line 53: warning: exported function CreateJSONMergePatch should have comment or be unexported (golint)
    • Line 75: warning: exported function CreateJSONPatch should have comment or be unexported (golint)
    • Line 117: warning: exported function RequireChainKeyUnchanged should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/tools/backup/manager.go
    • Line 37: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 47: warning: exported type ItemList should have comment or be unexported (golint)
    • Line 51: warning: exported type BackupManager should have comment or be unexported (golint)
    • Line 57: warning: exported function NewBackupManager should have comment or be unexported (golint)
    • Line 74: warning: exported method BackupManager.BackupToDir should have comment or be unexported (golint)
    • Line 88: warning: exported method BackupManager.BackupToTar should have comment or be unexported (golint)
    • Line 129: warning: exported method BackupManager.Backup should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/dynamic/discovery/discovery.go
    • Line 31: warning: exported type APIResource should have comment or be unexported (golint)
    • Line 36: warning: exported method APIResource.GroupVersion should have comment or be unexported (golint)
    • Line 45: warning: exported method APIResource.GroupVersionKind should have comment or be unexported (golint)
    • Line 53: warning: exported type ResourceMap should have comment or be unexported (golint)
    • Line 61: warning: exported method ResourceMap.Get should have comment or be unexported (golint)
    • Line 72: warning: exported method ResourceMap.GetKind should have comment or be unexported (golint)
    • Line 138: warning: exported method ResourceMap.Start should have comment or be unexported (golint)
    • Line 160: warning: exported method ResourceMap.Stop should have comment or be unexported (golint)
    • Line 165: warning: exported method ResourceMap.HasSynced should have comment or be unexported (golint)
    • Line 171: warning: exported function NewResourceMap should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/rbac/v1/rolebinding.go
    • Line 34: warning: exported function CreateOrPatchRoleBinding should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchRoleBinding should have comment or be unexported (golint)
    • Line 59: warning: exported function PatchRoleBindingObject should have comment or be unexported (golint)
    • Line 82: warning: exported function TryUpdateRoleBinding should have comment or be unexported (golint)
    • Line 103: warning: exported function WaitUntillRoleBindingDeleted should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/core/v1/rc.go
    • Line 35: warning: exported function CreateOrPatchRC should have comment or be unexported (golint)
    • Line 56: warning: exported function PatchRC should have comment or be unexported (golint)
    • Line 60: warning: exported function PatchRCObject should have comment or be unexported (golint)
    • Line 83: warning: exported function TryUpdateRC should have comment or be unexported (golint)
    • Line 104: warning: exported function WaitUntilRCReady should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/meta/lib.go
    • Line 60: warning: exported function DeleteInBackground should have comment or be unexported (golint)
    • Line 65: warning: exported function DeleteInForeground should have comment or be unexported (golint)
    • Line 70: warning: exported function GetKind should have comment or be unexported (golint)
    • Line 74: warning: exported function FilterKeys should have comment or be unexported (golint)
    • Line 104: warning: exported function MergeKeys should have comment or be unexported (golint)
    • Line 120: warning: exported function OverwriteKeys should have comment or be unexported (golint)
    • Line 134: warning: exported function NameWithPrefix should have comment or be unexported (golint)
    • Line 138: warning: exported function ValidNameWithPrefix should have comment or be unexported (golint)
    • Line 147: warning: exported function NameWithSuffix should have comment or be unexported (golint)
    • Line 159: warning: comment on exported function ValidNameWithSuffix should be of the form "ValidNameWithSuffix ..." (golint)
    • Line 169: warning: exported function ValidNameWithPrefixNSuffix should have comment or be unexported (golint)
    • Line 182: warning: exported function ValidCronJobNameWithPrefix should have comment or be unexported (golint)
    • Line 186: warning: exported function ValidCronJobNameWithSuffix should have comment or be unexported (golint)
    • Line 190: warning: exported function ValidCronJobNameWithPrefixNSuffix should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/extensions/v1beta1/replicaset.go
    • Line 35: warning: exported function CreateOrPatchReplicaSet should have comment or be unexported (golint)
    • Line 56: warning: exported function PatchReplicaSet should have comment or be unexported (golint)
    • Line 60: warning: exported function PatchReplicaSetObject should have comment or be unexported (golint)
    • Line 83: warning: exported function TryUpdateReplicaSet should have comment or be unexported (golint)
    • Line 104: warning: exported function WaitUntilReplicaSetReady should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/discovery/lib.go
    • Line 32: warning: exported function GetVersion should have comment or be unexported (golint)
    • Line 44: warning: exported function GetVersionInfo should have comment or be unexported (golint)
    • Line 57: warning: exported function GetBaseVersion should have comment or be unexported (golint)
    • Line 69: warning: exported function CheckAPIVersion should have comment or be unexported (golint)
    • Line 85: warning: exported function IsPreferredAPIResource should have comment or be unexported (golint)
    • Line 89: warning: exported function ExistsGroupVersionKind should have comment or be unexported (golint)
    • Line 105: warning: exported function ExistsGroupKind should have comment or be unexported (golint)
    • Line 125: warning: exported function ExistsGroupKinds should have comment or be unexported (golint)
    • Line 158: warning: exported type KnownBug should have comment or be unexported (golint)
    • Line 167: warning: don't use underscores in Go names; var err62649_K1_9 should be err62649K1_9 (golint)
    • Line 168: warning: don't use underscores in Go names; var err62649_K1_10 should be err62649K1_10 (golint)
    • Line 169: warning: don't use underscores in Go names; var err83778_K1_16 should be err83778K1_16 (golint)
    • Line 172: warning: exported var DefaultConstraint should have comment or be unexported (golint)
    • Line 191: warning: exported function IsDefaultSupportedVersion should have comment or be unexported (golint)
    • Line 199: warning: exported function IsSupportedVersion should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/policy/v1beta1/pdb.go
    • Line 37: warning: exported function CreateOrPatchPodDisruptionBudget should have comment or be unexported (golint)
    • Line 87: warning: exported function PatchPodDisruptionBudget should have comment or be unexported (golint)
    • Line 91: warning: exported function PatchPodDisruptionBudgetObject should have comment or be unexported (golint)
    • Line 114: warning: exported function TryUpdatePodDisruptionBudget should have comment or be unexported (golint)
    • /kmodules.xyz/client-go/openapi/lister_storage.go
    • Line 29: warning: exported type ListerStorage should have comment or be unexported (golint)
    • Line 38: warning: exported function NewListerStorage should have comment or be unexported (golint)
    • Line 42: warning: exported method ListerStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 46: warning: exported method ListerStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 50: warning: comment on exported method ListerStorage.New should be of the form "New ..." (golint)
    • Line 55: warning: exported method ListerStorage.Get should have comment or be unexported (golint)
    • Line 59: warning: comment on exported method ListerStorage.NewList should be of the form "NewList ..." (golint)
    • Line 64: warning: exported method ListerStorage.List should have comment or be unexported (golint)
    • Line 68: warning: exported method ListerStorage.ConvertToTable should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!