Preparing report...

Report for github.com/appscode/kutil

A+    Excellent!    Found 90 issues across 124 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.

    • kutil/discovery/restmapper.go
    • Line 308: warning: cyclomatic complexity 27 of function (*DefaultRESTMapper).ResourcesFor() is high (> 15) (gocyclo)
    • Line 202: warning: cyclomatic complexity 25 of function (*DefaultRESTMapper).ResourcesForKind() is high (> 15) (gocyclo)
    • Line 407: warning: cyclomatic complexity 20 of function (*DefaultRESTMapper).KindsFor() is high (> 15) (gocyclo)

golint28%

Golint is a linter for Go source code.

    • kutil/storage/v1beta1/storageclass.go
    • Line 16: warning: exported function CreateOrPatchStorageClass should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchStorageClass should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchStorageClassObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateStorageClass should have comment or be unexported (golint)
    • kutil/discovery/restmapper.go
    • Line 19: warning: exported function DetectResource should have comment or be unexported (golint)
    • Line 41: warning: exported function APIResourceForGVK should have comment or be unexported (golint)
    • Line 72: warning: exported function ResourceForGVK should have comment or be unexported (golint)
    • Line 92: warning: exported function FilterAPISubResources should have comment or be unexported (golint)
    • Line 102: warning: exported function FilterSubResources should have comment or be unexported (golint)
    • Line 112: warning: exported function LoadRestMapper should have comment or be unexported (golint)
    • Line 166: warning: comment on exported type DefaultRESTMapper should be of the form "DefaultRESTMapper ..." (with optional leading article) (golint)
    • Line 176: warning: exported function NewDefaultRESTMapper should have comment or be unexported (golint)
    • Line 192: warning: exported method DefaultRESTMapper.AddSpecific should have comment or be unexported (golint)
    • Line 202: warning: exported method DefaultRESTMapper.ResourcesForKind should have comment or be unexported (golint)
    • Line 278: warning: exported method DefaultRESTMapper.ResourceForKind should have comment or be unexported (golint)
    • Line 308: warning: exported method DefaultRESTMapper.ResourcesFor should have comment or be unexported (golint)
    • Line 395: warning: exported method DefaultRESTMapper.ResourceFor should have comment or be unexported (golint)
    • Line 407: warning: exported method DefaultRESTMapper.KindsFor should have comment or be unexported (golint)
    • Line 474: warning: exported method DefaultRESTMapper.KindFor should have comment or be unexported (golint)
    • kutil/core/v1/pv.go
    • Line 16: warning: exported function CreateOrPatchPV should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchPV should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchPVObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdatePV should have comment or be unexported (golint)
    • kutil/openapi/cd_storage.go
    • Line 12: warning: exported type CDStorage should have comment or be unexported (golint)
    • Line 21: warning: exported function NewCDStorage should have comment or be unexported (golint)
    • Line 25: warning: exported method CDStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 29: warning: exported method CDStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 33: warning: comment on exported method CDStorage.New should be of the form "New ..." (golint)
    • Line 38: warning: exported method CDStorage.Create should have comment or be unexported (golint)
    • Line 42: warning: comment on exported method CDStorage.Delete should be of the form "Delete ..." (golint)
    • kutil/apps/v1/deployment.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 18: warning: exported function CreateOrPatchDeployment should have comment or be unexported (golint)
    • Line 36: warning: exported function PatchDeployment should have comment or be unexported (golint)
    • Line 40: warning: exported function PatchDeploymentObject should have comment or be unexported (golint)
    • Line 63: warning: exported function TryUpdateDeployment should have comment or be unexported (golint)
    • Line 84: warning: exported function WaitUntilDeploymentReady should have comment or be unexported (golint)
    • Line 93: warning: exported function DeleteDeployment should have comment or be unexported (golint)
    • kutil/tools/cli/cli.go
    • Line 20: warning: exported var AnalyticsClientID should have comment or be unexported (golint)
    • Line 25: warning: exported function SendAnalytics should have comment or be unexported (golint)
    • Line 36: warning: exported function SendPeriodicAnalytics should have comment or be unexported (golint)
    • kutil/core/v1/endpoints.go
    • Line 14: warning: exported function CreateOrPatchEndpoints should have comment or be unexported (golint)
    • Line 32: warning: exported function PatchEndpoints should have comment or be unexported (golint)
    • Line 36: warning: exported function PatchEndpointsObject should have comment or be unexported (golint)
    • kutil/apiextensions/v1beta1/cli-utils.go
    • Line 52: warning: exported type Labels should have comment or be unexported (golint)
    • Line 57: warning: exported method Labels.Type should have comment or be unexported (golint)
    • Line 78: warning: comment on exported method Labels.Set should be of the form "Set ..." (golint)
    • Line 93: warning: exported function NewCustomResourceDefinition should have comment or be unexported (golint)
    • Line 139: warning: exported function MarshallCrd should have comment or be unexported (golint)
    • kutil/meta/patch.go
    • Line 23: warning: exported function CreateStrategicPatch should have comment or be unexported (golint)
    • Line 37: warning: exported function CreateJSONMergePatch should have comment or be unexported (golint)
    • Line 59: warning: exported function CreateJSONPatch should have comment or be unexported (golint)
    • Line 101: warning: exported function RequireChainKeyUnchanged should have comment or be unexported (golint)
    • kutil/policy/v1beta1/pdb.go
    • Line 16: warning: exported function CreateOrPatchPodDisruptionBudget should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchPodDisruptionBudget should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchPodDisruptionBudgetObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdatePodDisruptionBudget should have comment or be unexported (golint)
    • kutil/openapi/render.go
    • Line 22: warning: exported type TypeInfo should have comment or be unexported (golint)
    • Line 29: warning: exported type Config should have comment or be unexported (golint)
    • Line 42: warning: exported method Config.GetOpenAPIDefinitions should have comment or be unexported (golint)
    • Line 52: warning: exported function RenderOpenAPISpec should have comment or be unexported (golint)
    • kutil/tools/doctor/doctor.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 9: warning: exported type Doctor should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 22: warning: exported method Doctor.GetClusterInfo should have comment or be unexported (golint)
    • kutil/meta/cmp.go
    • Line 29: warning: exported function Diff should have comment or be unexported (golint)
    • Line 33: warning: exported function Equal should have comment or be unexported (golint)
    • Line 37: warning: exported const LastAppliedConfigAnnotation should have comment or be unexported (golint)
    • Line 64: warning: exported function JsonDiff should have comment or be unexported (golint)
    • kutil/dynamic/unstructured.go
    • Line 19: warning: exported function CreateOrPatch should have comment or be unexported (golint)
    • Line 46: warning: exported function Patch should have comment or be unexported (golint)
    • Line 55: warning: exported function PatchObject should have comment or be unexported (golint)
    • Line 89: warning: exported function TryUpdate should have comment or be unexported (golint)
    • kutil/extensions/v1beta1/ingress.go
    • Line 16: warning: exported function CreateOrPatchIngress should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchIngress should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchIngressObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateIngress should have comment or be unexported (golint)
    • kutil/core/v1/pvc.go
    • Line 16: warning: exported function CreateOrPatchPVC should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchPVC should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchPVCObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdatePVC should have comment or be unexported (golint)
    • kutil/tools/controller/client_builder.go
    • Line 56: warning: exported method SimpleControllerClientBuilder.Config should have comment or be unexported (golint)
    • Line 61: warning: exported method SimpleControllerClientBuilder.ConfigOrDie should have comment or be unexported (golint)
    • Line 69: warning: exported method SimpleControllerClientBuilder.Client should have comment or be unexported (golint)
    • Line 77: warning: exported method SimpleControllerClientBuilder.ClientOrDie should have comment or be unexported (golint)
    • Line 104: warning: comment on exported method SAControllerClientBuilder.Config should be of the form "Config ..." (golint)
    • Line 235: warning: exported method SAControllerClientBuilder.ConfigOrDie should have comment or be unexported (golint)
    • Line 243: warning: exported method SAControllerClientBuilder.Client should have comment or be unexported (golint)
    • Line 251: warning: exported method SAControllerClientBuilder.ClientOrDie should have comment or be unexported (golint)
    • kutil/apps/v1/replicaset.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 17: warning: exported function CreateOrPatchReplicaSet should have comment or be unexported (golint)
    • Line 35: warning: exported function PatchReplicaSet should have comment or be unexported (golint)
    • Line 39: warning: exported function PatchReplicaSetObject should have comment or be unexported (golint)
    • Line 62: warning: exported function TryUpdateReplicaSet should have comment or be unexported (golint)
    • Line 83: warning: exported function WaitUntilReplicaSetReady should have comment or be unexported (golint)
    • Line 92: warning: exported function IsOwnedByDeployment should have comment or be unexported (golint)
    • kutil/apps/v1/statefulset.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 19: warning: exported function CreateOrPatchStatefulSet should have comment or be unexported (golint)
    • Line 37: warning: exported function PatchStatefulSet should have comment or be unexported (golint)
    • Line 41: warning: exported function PatchStatefulSetObject should have comment or be unexported (golint)
    • Line 64: warning: exported function TryUpdateStatefulSet should have comment or be unexported (golint)
    • Line 85: warning: exported function WaitUntilStatefulSetReady should have comment or be unexported (golint)
    • Line 94: warning: exported function DeleteStatefulSet should have comment or be unexported (golint)
    • Line 99: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • kutil/dynamic/lister/lister.go
    • Line 29: warning: exported type Lister should have comment or be unexported (golint)
    • Line 34: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported method Lister.List should have comment or be unexported (golint)
    • Line 48: warning: exported method Lister.ListNamespace should have comment or be unexported (golint)
    • Line 55: warning: exported method Lister.Get should have comment or be unexported (golint)
    • kutil/rbac/v1beta1/role.go
    • Line 16: warning: exported function CreateOrPatchRole should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchRole should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchRoleObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateRole should have comment or be unexported (golint)
    • Line 82: warning: exported function WaitUntillRoleDeleted should have comment or be unexported (golint)
    • kutil/tools/fsnotify/lib.go
    • Line 12: warning: exported type Watcher should have comment or be unexported (golint)
    • Line 24: warning: exported method Watcher.Run should have comment or be unexported (golint)
    • kutil/core/v1/configmap.go
    • Line 16: warning: exported function CreateOrPatchConfigMap should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchConfigMap should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchConfigMapObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateConfigMap should have comment or be unexported (golint)
    • kutil/apps/v1beta1/deployment.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 18: warning: exported function CreateOrPatchDeployment should have comment or be unexported (golint)
    • Line 36: warning: exported function PatchDeployment should have comment or be unexported (golint)
    • Line 40: warning: exported function PatchDeploymentObject should have comment or be unexported (golint)
    • Line 63: warning: exported function TryUpdateDeployment should have comment or be unexported (golint)
    • Line 84: warning: exported function WaitUntilDeploymentReady should have comment or be unexported (golint)
    • Line 93: warning: exported function DeleteDeployment should have comment or be unexported (golint)
    • kutil/meta/lib.go
    • Line 10: warning: exported function DeleteInBackground should have comment or be unexported (golint)
    • Line 15: warning: exported function GetKind should have comment or be unexported (golint)
    • Line 19: warning: exported function FilterKeys should have comment or be unexported (golint)
    • kutil/meta/annotations.go
    • Line 10: warning: exported type ParserFunc should have comment or be unexported (golint)
    • Line 20: warning: exported function GetBool should have comment or be unexported (golint)
    • Line 31: warning: exported function GetBoolValue should have comment or be unexported (golint)
    • Line 36: warning: exported function GetInt should have comment or be unexported (golint)
    • Line 47: warning: exported function GetIntValue should have comment or be unexported (golint)
    • Line 52: warning: exported function GetString should have comment or be unexported (golint)
    • Line 63: warning: exported function GetStringValue should have comment or be unexported (golint)
    • Line 68: warning: exported function HasKey should have comment or be unexported (golint)
    • Line 76: warning: exported function RemoveKey should have comment or be unexported (golint)
    • Line 84: warning: exported function GetList should have comment or be unexported (golint)
    • Line 97: warning: exported function GetListValue should have comment or be unexported (golint)
    • Line 102: warning: exported function GetMap should have comment or be unexported (golint)
    • Line 115: warning: exported function GetMapValue should have comment or be unexported (golint)
    • Line 120: warning: exported function GetFloat should have comment or be unexported (golint)
    • Line 132: warning: exported function GetFloatValue should have comment or be unexported (golint)
    • Line 137: warning: exported function GetDuration should have comment or be unexported (golint)
    • Line 149: warning: exported function GetDurationValue should have comment or be unexported (golint)
    • Line 154: warning: exported type GetFunc should have comment or be unexported (golint)
    • Line 156: warning: exported function ParseFor should have comment or be unexported (golint)
    • kutil/policy/v1beta1/psp.go
    • Line 16: warning: exported function CreateOrPatchPodSecurityPolicy should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchPodSecurityPolicy should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchPodSecurityPolicyObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdatePodSecurityPolicy should have comment or be unexported (golint)
    • kutil/rbac/v1/role.go
    • Line 16: warning: exported function CreateOrPatchRole should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchRole should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchRoleObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateRole should have comment or be unexported (golint)
    • Line 82: warning: exported function WaitUntillRoleDeleted should have comment or be unexported (golint)
    • kutil/extensions/v1beta1/replicaset.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 17: warning: exported function CreateOrPatchReplicaSet should have comment or be unexported (golint)
    • Line 35: warning: exported function PatchReplicaSet should have comment or be unexported (golint)
    • Line 39: warning: exported function PatchReplicaSetObject should have comment or be unexported (golint)
    • Line 62: warning: exported function TryUpdateReplicaSet should have comment or be unexported (golint)
    • Line 83: warning: exported function WaitUntilReplicaSetReady should have comment or be unexported (golint)
    • kutil/core/v1/kubernetes.go
    • Line 15: warning: exported function RemoveNextInitializer should have comment or be unexported (golint)
    • Line 28: warning: exported function AddFinalizer should have comment or be unexported (golint)
    • Line 38: warning: exported function HasFinalizer should have comment or be unexported (golint)
    • Line 47: warning: exported function RemoveFinalizer should have comment or be unexported (golint)
    • Line 59: warning: exported function EnsureContainerDeleted should have comment or be unexported (golint)
    • Line 68: warning: exported function UpsertContainer should have comment or be unexported (golint)
    • Line 82: warning: exported function UpsertContainers should have comment or be unexported (golint)
    • Line 90: warning: exported function UpsertVolume should have comment or be unexported (golint)
    • Line 108: warning: exported function UpsertVolumeClaim should have comment or be unexported (golint)
    • Line 118: warning: exported function EnsureVolumeDeleted should have comment or be unexported (golint)
    • Line 127: warning: exported function UpsertVolumeMount should have comment or be unexported (golint)
    • Line 144: warning: exported function EnsureVolumeMountDeleted should have comment or be unexported (golint)
    • Line 153: warning: exported function UpsertVolumeMountByPath should have comment or be unexported (golint)
    • Line 163: warning: exported function EnsureVolumeMountDeletedByPath should have comment or be unexported (golint)
    • Line 172: warning: exported function UpsertEnvVars should have comment or be unexported (golint)
    • Line 189: warning: exported function EnsureEnvVarDeleted should have comment or be unexported (golint)
    • Line 198: warning: exported function UpsertMap should have comment or be unexported (golint)
    • Line 208: warning: exported function MergeLocalObjectReferences should have comment or be unexported (golint)
    • Line 223: warning: exported function EnsureOwnerReference should have comment or be unexported (golint)
    • Line 259: warning: exported function RemoveOwnerReference should have comment or be unexported (golint)
    • kutil/meta/hash.go
    • Line 50: warning: exported function GenerationHash should have comment or be unexported (golint)
    • Line 84: warning: exported function AlreadyObserved should have comment or be unexported (golint)
    • Line 100: warning: exported function AlreadyObserved2 should have comment or be unexported (golint)
    • kutil/dynamic/controllerref/unstructured.go
    • Line 34: warning: exported type UnstructuredManager should have comment or be unexported (golint)
    • Line 41: warning: exported function NewUnstructuredManager should have comment or be unexported (golint)
    • Line 54: warning: exported method UnstructuredManager.ClaimChildren should have comment or be unexported (golint)
    • kutil/tools/queue/handler.go
    • Line 25: warning: exported function DefaultEventHandler should have comment or be unexported (golint)
    • Line 34: warning: exported function NewEventHandler should have comment or be unexported (golint)
    • Line 43: warning: exported function NewUpsertHandler should have comment or be unexported (golint)
    • Line 52: warning: exported function NewDeleteHandler should have comment or be unexported (golint)
    • Line 61: warning: exported function NewObservableHandler should have comment or be unexported (golint)
    • Line 75: warning: exported function NewObservableUpdateHandler should have comment or be unexported (golint)
    • Line 87: warning: exported function Enqueue should have comment or be unexported (golint)
    • Line 96: warning: exported method QueueingEventHandler.OnAdd should have comment or be unexported (golint)
    • Line 103: warning: exported method QueueingEventHandler.OnUpdate should have comment or be unexported (golint)
    • Line 110: warning: exported method QueueingEventHandler.OnDelete should have comment or be unexported (golint)
    • Line 117: warning: exported function NewVersionedHandler should have comment or be unexported (golint)
    • Line 149: warning: exported function NewFilteredHandler should have comment or be unexported (golint)
    • kutil/meta/encoding.go
    • Line 18: warning: exported type Codec should have comment or be unexported (golint)
    • Line 23: warning: exported var JSONSerializer should have comment or be unexported (golint)
    • Line 32: warning: exported var YAMLSerializer should have comment or be unexported (golint)
    • kutil/core/v1/service.go
    • Line 16: warning: exported function CreateOrPatchService should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchService should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchServiceObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateService should have comment or be unexported (golint)
    • Line 82: warning: exported function MergeServicePorts should have comment or be unexported (golint)
    • Line 111: warning: exported function WaitUntilServiceDeletedBySelector should have comment or be unexported (golint)
    • kutil/rbac/v1beta1/clusterrolebinding.go
    • Line 16: warning: exported function CreateOrPatchClusterRoleBinding should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchClusterRoleBinding should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchClusterRoleBindingObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateClusterRoleBinding should have comment or be unexported (golint)
    • kutil/admissionregistration/v1beta1/xray.go
    • Line 38: warning: exported const KeyAdmissionWebhookActive should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported var ErrMissingKind should have comment or be unexported (golint)
    • Line 45: warning: exported var ErrMissingVersion should have comment or be unexported (golint)
    • Line 46: warning: exported var ErrWebhookNotActivated should have comment or be unexported (golint)
    • Line 48: warning: exported type ValidatingWebhookXray should have comment or be unexported (golint)
    • Line 57: warning: exported function NewCreateValidatingWebhookXray should have comment or be unexported (golint)
    • Line 68: warning: exported function NewUpdateValidatingWebhookXray should have comment or be unexported (golint)
    • Line 79: warning: exported function NewDeleteValidatingWebhookXray should have comment or be unexported (golint)
    • Line 104: warning: exported method ValidatingWebhookXray.IsActive should have comment or be unexported (golint)
    • kutil/tools/docker/lib.go
    • Line 17: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 19: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 28: warning: exported var ErrManifestV2Required should have comment or be unexported (golint)
    • Line 31: warning: exported function MakeDockerKeyring should have comment or be unexported (golint)
    • Line 35: warning: exported type ImageRef should have comment or be unexported (golint)
    • Line 43: warning: exported method ImageRef.Ref should have comment or be unexported (golint)
    • Line 57: warning: exported function ParseImageName should have comment or be unexported (golint)
    • kutil/meta/incluster.go
    • Line 18: warning: exported function Namespace should have comment or be unexported (golint)
    • Line 38: warning: exported function APIServerCertificate should have comment or be unexported (golint)
    • kutil/batch/v1/job.go
    • Line 17: warning: exported function CreateOrPatchJob should have comment or be unexported (golint)
    • Line 35: warning: exported function PatchJob should have comment or be unexported (golint)
    • Line 39: warning: exported function PatchJobObject should have comment or be unexported (golint)
    • Line 62: warning: exported function TryUpdateJob should have comment or be unexported (golint)
    • Line 83: warning: exported function WaitUntilJobCompletion should have comment or be unexported (golint)
    • kutil/extensions/v1beta1/daemonset.go
    • Line 18: warning: exported function CreateOrPatchDaemonSet should have comment or be unexported (golint)
    • Line 36: warning: exported function PatchDaemonSet should have comment or be unexported (golint)
    • Line 40: warning: exported function PatchDaemonSetObject should have comment or be unexported (golint)
    • Line 67: warning: exported function TryUpdateDaemonSet should have comment or be unexported (golint)
    • Line 88: warning: exported function WaitUntilDaemonSetReady should have comment or be unexported (golint)
    • kutil/dynamic/apply/apply.go
    • Line 39: warning: exported function SetLastApplied should have comment or be unexported (golint)
    • Line 54: warning: exported function GetLastApplied should have comment or be unexported (golint)
    • kutil/tools/clusterid/lib.go
    • Line 11: warning: exported function AddFlags should have comment or be unexported (golint)
    • Line 15: warning: exported function AddGoFlags should have comment or be unexported (golint)
    • Line 19: warning: exported function ClusterName should have comment or be unexported (golint)
    • kutil/core/v1/secret.go
    • Line 16: warning: exported function CreateOrPatchSecret should have comment or be unexported (golint)
    • Line 50: warning: exported function PatchSecret should have comment or be unexported (golint)
    • Line 54: warning: exported function PatchSecretObject should have comment or be unexported (golint)
    • Line 77: warning: exported function TryUpdateSecret should have comment or be unexported (golint)
    • Line 98: warning: exported function ObfuscateSecret should have comment or be unexported (golint)
    • kutil/tools/queue/worker.go
    • Line 21: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method Worker.GetQueue should have comment or be unexported (golint)
    • kutil/tools/controller/controller_utils.go
    • Line 33: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 127: warning: exported method RealPodControl.CreatePods should have comment or be unexported (golint)
    • Line 131: warning: exported method RealPodControl.CreatePodsWithControllerRef should have comment or be unexported (golint)
    • Line 138: warning: exported method RealPodControl.CreatePodsOnNode should have comment or be unexported (golint)
    • Line 145: warning: exported method RealPodControl.PatchPod should have comment or be unexported (golint)
    • Line 150: warning: exported function GetPodFromTemplate should have comment or be unexported (golint)
    • Line 189: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 201: warning: exported method RealPodControl.DeletePod should have comment or be unexported (golint)
    • Line 210: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 216: warning: exported type FakePodControl should have comment or be unexported (golint)
    • Line 229: warning: exported method FakePodControl.PatchPod should have comment or be unexported (golint)
    • Line 239: warning: exported method FakePodControl.CreatePods should have comment or be unexported (golint)
    • Line 253: warning: exported method FakePodControl.CreatePodsWithControllerRef should have comment or be unexported (golint)
    • Line 268: warning: exported method FakePodControl.CreatePodsOnNode should have comment or be unexported (golint)
    • Line 283: warning: exported method FakePodControl.DeletePod should have comment or be unexported (golint)
    • Line 293: warning: exported method FakePodControl.Clear should have comment or be unexported (golint)
    • kutil/rbac/v1beta1/clusterrole.go
    • Line 16: warning: exported function CreateOrPatchClusterRole should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchClusterRole should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchClusterRoleObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateClusterRole should have comment or be unexported (golint)
    • kutil/core/v1/serviceaccount.go
    • Line 16: warning: exported function CreateOrPatchServiceAccount should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchServiceAccount should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchServiceAccountObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateServiceAccount should have comment or be unexported (golint)
    • Line 82: warning: exported function WaitUntillServiceAccountDeleted should have comment or be unexported (golint)
    • kutil/openapi/lister_storage.go
    • Line 13: warning: exported type ListerStorage should have comment or be unexported (golint)
    • Line 22: warning: exported function NewListerStorage should have comment or be unexported (golint)
    • Line 26: warning: exported method ListerStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 30: warning: exported method ListerStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method ListerStorage.New should be of the form "New ..." (golint)
    • Line 39: warning: exported method ListerStorage.Get should have comment or be unexported (golint)
    • Line 43: warning: comment on exported method ListerStorage.NewList should be of the form "NewList ..." (golint)
    • Line 48: warning: exported method ListerStorage.List should have comment or be unexported (golint)
    • kutil/storage/v1/storageclass.go
    • Line 16: warning: exported function CreateOrPatchStorageClass should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchStorageClass should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchStorageClassObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateStorageClass should have comment or be unexported (golint)
    • kutil/rbac/v1beta1/rolebinding.go
    • Line 16: warning: exported function CreateOrPatchRoleBinding should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchRoleBinding should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchRoleBindingObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateRoleBinding should have comment or be unexported (golint)
    • Line 82: warning: exported function WaitUntillRoleBindingDeleted should have comment or be unexported (golint)
    • kutil/rbac/v1/clusterrolebinding.go
    • Line 16: warning: exported function CreateOrPatchClusterRoleBinding should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchClusterRoleBinding should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchClusterRoleBindingObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateClusterRoleBinding should have comment or be unexported (golint)
    • kutil/admissionregistration/v1beta1/mutatingwebhookconfiguration.go
    • Line 25: warning: exported function CreateOrPatchMutatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 45: warning: exported function PatchMutatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 49: warning: exported function PatchMutatingWebhookConfigurationObject should have comment or be unexported (golint)
    • Line 72: warning: exported function TryUpdateMutatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 93: warning: exported function UpdateMutatingWebhookCABundle should have comment or be unexported (golint)
    • Line 149: warning: exported function SyncMutatingWebhookCABundle should have comment or be unexported (golint)
    • kutil/admissionregistration/v1beta1/validatingwebhookconfiguration.go
    • Line 25: warning: exported function CreateOrPatchValidatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 45: warning: exported function PatchValidatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 49: warning: exported function PatchValidatingWebhookConfigurationObject should have comment or be unexported (golint)
    • Line 72: warning: exported function TryUpdateValidatingWebhookConfiguration should have comment or be unexported (golint)
    • Line 93: warning: exported function UpdateValidatingWebhookCABundle should have comment or be unexported (golint)
    • Line 149: warning: exported function SyncValidatingWebhookCABundle should have comment or be unexported (golint)
    • kutil/tools/ipallocator/lib.go
    • Line 8: warning: exported type DiscoverVia should have comment or be unexported (golint)
    • Line 14: warning: exported const DiscoverViaDNS should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type IPAllocator should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • Line 35: warning: exported method IPAllocator.ClusterIP should have comment or be unexported (golint)
    • Line 50: warning: exported method IPAllocator.ServiceAddress should have comment or be unexported (golint)
    • Line 61: warning: exported method IPAllocator.HostNetwork should have comment or be unexported (golint)
    • kutil/openapi/getter_storage.go
    • Line 12: warning: exported type GetterStorage should have comment or be unexported (golint)
    • Line 20: warning: exported function NewGetterStorage should have comment or be unexported (golint)
    • Line 24: warning: exported method GetterStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 28: warning: exported method GetterStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 32: warning: comment on exported method GetterStorage.New should be of the form "New ..." (golint)
    • Line 37: warning: exported method GetterStorage.Get should have comment or be unexported (golint)
    • kutil/tools/clientcmd/client_config.go
    • Line 12: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 32: warning: exported function BuildConfigFromContext should have comment or be unexported (golint)
    • Line 50: warning: exported function ClientFromContext should have comment or be unexported (golint)
    • Line 58: warning: exported function NamespaceFromContext should have comment or be unexported (golint)
    • Line 80: warning: exported function UseKubeAPIServerFQDNForAKS should have comment or be unexported (golint)
    • Line 84: warning: comment on exported function Fix should be of the form "Fix ..." (golint)
    • kutil/meta/cloud.go
    • Line 14: warning: comment on exported function TestGKE should be of the form "TestGKE ..." (golint)
    • Line 55: warning: exported function TestAKS should have comment or be unexported (golint)
    • Line 86: warning: exported function TestEKS should have comment or be unexported (golint)
    • kutil/extensions/v1beta1/deployment.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 17: warning: exported function CreateOrPatchDeployment should have comment or be unexported (golint)
    • Line 35: warning: exported function PatchDeployment should have comment or be unexported (golint)
    • Line 39: warning: exported function PatchDeploymentObject should have comment or be unexported (golint)
    • Line 62: warning: exported function TryUpdateDeployment should have comment or be unexported (golint)
    • Line 83: warning: exported function WaitUntilDeploymentReady should have comment or be unexported (golint)
    • kutil/apps/v1/daemonset.go
    • Line 16: warning: exported function CreateOrPatchDaemonSet should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchDaemonSet should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchDaemonSetObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateDaemonSet should have comment or be unexported (golint)
    • Line 82: warning: exported function WaitUntilDaemonSetReady should have comment or be unexported (golint)
    • kutil/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)
    • kutil/openapi/rd_storage.go
    • Line 13: warning: exported type RDStorage should have comment or be unexported (golint)
    • Line 23: warning: exported function NewRDStorage should have comment or be unexported (golint)
    • Line 27: warning: exported method RDStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 31: warning: exported method RDStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method RDStorage.New should be of the form "New ..." (golint)
    • Line 40: warning: exported method RDStorage.Get should have comment or be unexported (golint)
    • Line 44: warning: comment on exported method RDStorage.NewList should be of the form "NewList ..." (golint)
    • Line 49: warning: exported method RDStorage.List should have comment or be unexported (golint)
    • Line 53: warning: comment on exported method RDStorage.Delete should be of the form "Delete ..." (golint)
    • kutil/openapi/std_storage.go
    • Line 14: warning: exported type StandardStorage should have comment or be unexported (golint)
    • Line 22: warning: exported function NewStandardStorage should have comment or be unexported (golint)
    • Line 26: warning: exported method StandardStorage.GroupVersionKind should have comment or be unexported (golint)
    • Line 30: warning: exported method StandardStorage.NamespaceScoped should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method StandardStorage.New should be of the form "New ..." (golint)
    • Line 39: warning: exported method StandardStorage.Create should have comment or be unexported (golint)
    • Line 43: warning: exported method StandardStorage.Get should have comment or be unexported (golint)
    • Line 47: warning: comment on exported method StandardStorage.NewList should be of the form "NewList ..." (golint)
    • Line 52: warning: exported method StandardStorage.List should have comment or be unexported (golint)
    • Line 56: warning: comment on exported method StandardStorage.Update should be of the form "Update ..." (golint)
    • Line 61: warning: comment on exported method StandardStorage.Delete should be of the form "Delete ..." (golint)
    • Line 66: warning: comment on exported method StandardStorage.DeleteCollection should be of the form "DeleteCollection ..." (golint)
    • Line 71: warning: comment on exported method StandardStorage.Watch should be of the form "Watch ..." (golint)
    • kutil/tools/doctor/types.go
    • Line 14: warning: exported type ClusterInfo should have comment or be unexported (golint)
    • Line 22: warning: exported type VersionInfo should have comment or be unexported (golint)
    • Line 31: warning: exported type RestConfig should have comment or be unexported (golint)
    • Line 37: warning: exported type Capabilities should have comment or be unexported (golint)
    • Line 47: warning: exported type APIServerConfig should have comment or be unexported (golint)
    • Line 66: warning: exported var ErrUnknown should have comment or be unexported (golint)
    • Line 69: warning: exported type FeatureList should have comment or be unexported (golint)
    • Line 74: warning: exported method FeatureList.Status should have comment or be unexported (golint)
    • Line 84: warning: exported type APIServers should have comment or be unexported (golint)
    • Line 86: warning: exported type ExtensionServerConfig should have comment or be unexported (golint)
    • Line 91: warning: exported type RequestHeaderConfig should have comment or be unexported (golint)
    • Line 113: warning: exported method ClusterInfo.Validate should have comment or be unexported (golint)
    • Line 211: warning: exported method APIServers.AdmissionControl should have comment or be unexported (golint)
    • Line 234: warning: exported method APIServers.RuntimeConfig should have comment or be unexported (golint)
    • Line 258: warning: exported method APIServers.FeatureGate should have comment or be unexported (golint)
    • kutil/tools/portforward/tunnel.go
    • Line 17: warning: exported type Tunnel should have comment or be unexported (golint)
    • Line 29: warning: exported function NewTunnel should have comment or be unexported (golint)
    • Line 42: warning: exported method Tunnel.ForwardPort should have comment or be unexported (golint)
    • Line 81: warning: exported method Tunnel.Close should have comment or be unexported (golint)
    • kutil/tools/controller/controller_ref_manager.go
    • Line 32: warning: exported type BaseControllerRefManager should have comment or be unexported (golint)
    • Line 41: warning: exported method BaseControllerRefManager.CanAdopt should have comment or be unexported (golint)
    • Line 120: warning: exported type PodControllerRefManager should have comment or be unexported (golint)
    • kutil/dynamic/clientset/dynamic_clientset.go
    • Line 32: warning: exported type Clientset should have comment or be unexported (golint)
    • Line 37: warning: exported function New should have comment or be unexported (golint)
    • Line 44: warning: exported method Clientset.HasSynced should have comment or be unexported (golint)
    • Line 48: warning: exported method Clientset.Resource should have comment or be unexported (golint)
    • Line 57: warning: exported method Clientset.Kind should have comment or be unexported (golint)
    • Line 88: warning: exported type ResourceClient should have comment or be unexported (golint)
    • Line 96: warning: exported method ResourceClient.WithNamespace should have comment or be unexported (golint)
    • Line 103: warning: exported method ResourceClient.Kind should have comment or be unexported (golint)
    • Line 107: warning: exported method ResourceClient.GroupVersion should have comment or be unexported (golint)
    • Line 111: warning: exported method ResourceClient.GroupResource should have comment or be unexported (golint)
    • Line 118: warning: exported method ResourceClient.GroupVersionKind should have comment or be unexported (golint)
    • Line 122: warning: exported method ResourceClient.APIResource should have comment or be unexported (golint)
    • Line 126: warning: exported method ResourceClient.UpdateWithRetries should have comment or be unexported (golint)
    • kutil/core/v1/node.go
    • Line 16: warning: exported function CreateOrPatchNode should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchNode should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchNodeObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateNode should have comment or be unexported (golint)
    • kutil/core/v1/pod.go
    • Line 16: warning: exported function CreateOrPatchPod should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchPod should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchPodObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdatePod should have comment or be unexported (golint)
    • Line 82: warning: comment on exported function PodRunningAndReady should be of the form "PodRunningAndReady ..." (golint)
    • Line 101: warning: exported function RestartPods should have comment or be unexported (golint)
    • Line 111: warning: exported function WaitUntilPodRunning should have comment or be unexported (golint)
    • Line 121: warning: exported function WaitUntilPodRunningBySelector should have comment or be unexported (golint)
    • Line 149: warning: exported function WaitUntilPodDeletedBySelector should have comment or be unexported (golint)
    • kutil/tools/exec/lib.go
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 21: warning: exported function Container should have comment or be unexported (golint)
    • Line 27: warning: exported function Command should have comment or be unexported (golint)
    • Line 33: warning: exported function Input should have comment or be unexported (golint)
    • Line 40: warning: exported function TTY should have comment or be unexported (golint)
    • Line 46: warning: exported function ExecIntoPod should have comment or be unexported (golint)
    • kutil/dynamic/object/object.go
    • Line 26: warning: exported type StatusCondition should have comment or be unexported (golint)
    • Line 33: warning: exported method StatusCondition.Object should have comment or be unexported (golint)
    • Line 47: warning: exported function NewStatusCondition should have comment or be unexported (golint)
    • Line 64: warning: exported function GetStatusCondition should have comment or be unexported (golint)
    • Line 76: warning: exported function SetCondition should have comment or be unexported (golint)
    • Line 92: warning: exported function SetStatusCondition should have comment or be unexported (golint)
    • Line 101: warning: exported function GetObservedGeneration should have comment or be unexported (golint)
    • Line 129: warning: exported function NestedArray should have comment or be unexported (golint)
    • Line 141: warning: exported function NestedObject should have comment or be unexported (golint)
    • kutil/util.go
    • Line 12: warning: exported const RetryInterval should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type VerbType should have comment or be unexported (golint)
    • Line 21: warning: exported const VerbUnchanged should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported var ErrNotFound should have comment or be unexported (golint)
    • Line 35: warning: exported function IsRequestRetryable should have comment or be unexported (golint)
    • Line 45: warning: exported function AdmissionWebhookDeniedRequest should have comment or be unexported (golint)
    • kutil/certificates/v1beta1/csr.go
    • Line 16: warning: exported function CreateOrPatchCSR should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchCSR should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchCSRObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateCSR should have comment or be unexported (golint)
    • kutil/rbac/v1/clusterrole.go
    • Line 16: warning: exported function CreateOrPatchClusterRole should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchClusterRole should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchClusterRoleObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateClusterRole should have comment or be unexported (golint)
    • kutil/rbac/v1/rolebinding.go
    • Line 16: warning: exported function CreateOrPatchRoleBinding should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchRoleBinding should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchRoleBindingObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateRoleBinding should have comment or be unexported (golint)
    • Line 82: warning: exported function WaitUntillRoleBindingDeleted should have comment or be unexported (golint)
    • kutil/dynamic/kubernetes.go
    • Line 31: warning: exported function WaitUntilDeleted should have comment or be unexported (golint)
    • Line 50: warning: exported function UntilHasLabel should have comment or be unexported (golint)
    • Line 54: warning: exported function UntilHasAnnotation should have comment or be unexported (golint)
    • Line 130: warning: exported function DetectWorkload should have comment or be unexported (golint)
    • Line 166: warning: exported function RemoveOwnerReferenceForItems should have comment or be unexported (golint)
    • Line 199: warning: exported function RemoveOwnerReferenceForSelector should have comment or be unexported (golint)
    • Line 230: warning: exported function EnsureOwnerReferenceForItems should have comment or be unexported (golint)
    • Line 263: warning: exported function EnsureOwnerReferenceForSelector should have comment or be unexported (golint)
    • kutil/discovery/lib.go
    • Line 14: warning: exported function GetVersion should have comment or be unexported (golint)
    • Line 26: warning: exported function GetBaseVersion should have comment or be unexported (golint)
    • Line 38: warning: exported function CheckAPIVersion should have comment or be unexported (golint)
    • Line 54: warning: exported function IsPreferredAPIResource should have comment or be unexported (golint)
    • Line 70: warning: exported type KnownBug should have comment or be unexported (golint)
    • Line 79: warning: don't use underscores in Go names; var err62649_K1_9 should be err62649K1_9 (golint)
    • Line 80: warning: don't use underscores in Go names; var err62649_K1_10 should be err62649K1_10 (golint)
    • Line 83: warning: exported var DefaultConstraint should have comment or be unexported (golint)
    • Line 99: warning: exported function IsDefaultSupportedVersion should have comment or be unexported (golint)
    • Line 107: warning: exported function IsSupportedVersion should have comment or be unexported (golint)
    • kutil/core/v1/rc.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 17: warning: exported function CreateOrPatchRC should have comment or be unexported (golint)
    • Line 35: warning: exported function PatchRC should have comment or be unexported (golint)
    • Line 39: warning: exported function PatchRCObject should have comment or be unexported (golint)
    • Line 62: warning: exported function TryUpdateRC should have comment or be unexported (golint)
    • Line 83: warning: exported function WaitUntilRCReady should have comment or be unexported (golint)
    • kutil/batch/v1beta1/cronjob.go
    • Line 16: warning: exported function CreateOrPatchCronJob should have comment or be unexported (golint)
    • Line 34: warning: exported function PatchCronJob should have comment or be unexported (golint)
    • Line 38: warning: exported function PatchCronJobObject should have comment or be unexported (golint)
    • Line 61: warning: exported function TryUpdateCronJob should have comment or be unexported (golint)
    • kutil/tools/certstore/lib.go
    • Line 18: warning: exported function SANsForNames should have comment or be unexported (golint)
    • Line 24: warning: exported function SANsForIPs should have comment or be unexported (golint)
    • Line 37: warning: exported type CertStore should have comment or be unexported (golint)
    • Line 47: warning: exported function NewCertStore should have comment or be unexported (golint)
    • Line 55: warning: exported method CertStore.InitCA should have comment or be unexported (golint)
    • Line 63: warning: exported method CertStore.SetCA should have comment or be unexported (golint)
    • Line 79: warning: exported method CertStore.LoadCA should have comment or be unexported (golint)
    • Line 110: warning: exported method CertStore.NewCA should have comment or be unexported (golint)
    • Line 159: warning: exported method CertStore.Location should have comment or be unexported (golint)
    • Line 163: warning: exported method CertStore.CAName should have comment or be unexported (golint)
    • Line 167: warning: exported method CertStore.CACert should have comment or be unexported (golint)
    • Line 171: warning: exported method CertStore.CACertBytes should have comment or be unexported (golint)
    • Line 175: warning: exported method CertStore.CAKey should have comment or be unexported (golint)
    • Line 179: warning: exported method CertStore.CAKeyBytes should have comment or be unexported (golint)
    • Line 183: warning: exported method CertStore.NewHostCertPair should have comment or be unexported (golint)
    • Line 197: warning: exported method CertStore.NewHostCertPairBytes should have comment or be unexported (golint)
    • Line 211: warning: exported method CertStore.NewServerCertPair should have comment or be unexported (golint)
    • Line 229: warning: exported method CertStore.NewServerCertPairBytes should have comment or be unexported (golint)
    • Line 257: warning: exported method CertStore.NewPeerCertPairBytes should have comment or be unexported (golint)
    • Line 265: warning: exported method CertStore.NewClientCertPair should have comment or be unexported (golint)
    • Line 283: warning: exported method CertStore.NewClientCertPairBytes should have comment or be unexported (golint)
    • Line 291: warning: exported method CertStore.IsExists should have comment or be unexported (golint)
    • Line 305: warning: exported method CertStore.PairExists should have comment or be unexported (golint)
    • Line 318: warning: exported method CertStore.CertFile should have comment or be unexported (golint)
    • Line 326: warning: exported method CertStore.KeyFile should have comment or be unexported (golint)
    • Line 344: warning: exported method CertStore.WriteBytes should have comment or be unexported (golint)
    • Line 375: warning: exported method CertStore.ReadBytes should have comment or be unexported (golint)
    • kutil/apiregistration/v1beta1/apiservice.go
    • Line 16: warning: exported function CreateOrPatchAPIService should have comment or be unexported (golint)
    • Line 36: warning: exported function PatchAPIService should have comment or be unexported (golint)
    • Line 40: warning: exported function PatchAPIServiceObject should have comment or be unexported (golint)
    • Line 63: warning: exported function TryUpdateAPIService should have comment or be unexported (golint)
    • kutil/tools/backup/manager.go
    • Line 20: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 29: warning: exported type ItemList should have comment or be unexported (golint)
    • Line 33: warning: exported type BackupManager should have comment or be unexported (golint)
    • Line 39: warning: exported function NewBackupManager should have comment or be unexported (golint)
    • Line 56: warning: exported method BackupManager.BackupToDir should have comment or be unexported (golint)
    • Line 70: warning: exported method BackupManager.BackupToTar should have comment or be unexported (golint)
    • Line 111: warning: exported method BackupManager.Backup should have comment or be unexported (golint)
    • kutil/apps/v1beta1/statefulset.go
    • Line 4: warning: should not use dot imports (golint)
    • Line 19: warning: exported function CreateOrPatchStatefulSet should have comment or be unexported (golint)
    • Line 37: warning: exported function PatchStatefulSet should have comment or be unexported (golint)
    • Line 41: warning: exported function PatchStatefulSetObject should have comment or be unexported (golint)
    • Line 64: warning: exported function TryUpdateStatefulSet should have comment or be unexported (golint)
    • Line 85: warning: exported function WaitUntilStatefulSetReady should have comment or be unexported (golint)
    • Line 94: warning: exported function DeleteStatefulSet should have comment or be unexported (golint)
    • Line 99: warning: if block ends with a return statement, so drop this else and outdent its block (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!


misspell99%

Misspell Finds commonly misspelled English words