Preparing report...

Report for github.com/kubermatic/kubeone

A+    Excellent!    Found 61 issues across 198 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!


gocyclo91%

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.

    • kubeone/pkg/cmd/apply.go
    • Line 161: warning: cyclomatic complexity 26 of function runApply() is high (> 15) (gocyclo)
    • Line 329: warning: cyclomatic complexity 20 of function runApplyUpgradeIfNeeded() is high (> 15) (gocyclo)
    • kubeone/pkg/tasks/probes.go
    • Line 230: warning: cyclomatic complexity 28 of function investigateCluster() is high (> 15) (gocyclo)
    • Line 152: warning: cyclomatic complexity 16 of function investigateHost() is high (> 15) (gocyclo)

golint75%

Golint is a linter for Go source code.

    • kubeone/pkg/apis/kubeone/v1alpha1/defaults.go
    • Line 42: warning: exported function SetDefaults_KubeOneCluster should have comment or be unexported (golint)
    • Line 42: warning: don't use underscores in Go names; func SetDefaults_KubeOneCluster should be SetDefaultsKubeOneCluster (golint)
    • Line 53: warning: exported function SetDefaults_Hosts should have comment or be unexported (golint)
    • Line 53: warning: don't use underscores in Go names; func SetDefaults_Hosts should be SetDefaultsHosts (golint)
    • Line 84: warning: exported function SetDefaults_APIEndpoints should have comment or be unexported (golint)
    • Line 84: warning: don't use underscores in Go names; func SetDefaults_APIEndpoints should be SetDefaultsAPIEndpoints (golint)
    • Line 96: warning: exported function SetDefaults_Versions should have comment or be unexported (golint)
    • Line 96: warning: don't use underscores in Go names; func SetDefaults_Versions should be SetDefaultsVersions (golint)
    • Line 101: warning: exported function SetDefaults_ClusterNetwork should have comment or be unexported (golint)
    • Line 101: warning: don't use underscores in Go names; func SetDefaults_ClusterNetwork should be SetDefaultsClusterNetwork (golint)
    • Line 113: warning: exported function SetDefaults_Proxy should have comment or be unexported (golint)
    • Line 113: warning: don't use underscores in Go names; func SetDefaults_Proxy should be SetDefaultsProxy (golint)
    • Line 129: warning: exported function SetDefaults_MachineController should have comment or be unexported (golint)
    • Line 129: warning: don't use underscores in Go names; func SetDefaults_MachineController should be SetDefaultsMachineController (golint)
    • Line 141: warning: exported function SetDefaults_SystemPackages should have comment or be unexported (golint)
    • Line 141: warning: don't use underscores in Go names; func SetDefaults_SystemPackages should be SetDefaultsSystemPackages (golint)
    • Line 149: warning: exported function SetDefaults_Features should have comment or be unexported (golint)
    • Line 149: warning: don't use underscores in Go names; func SetDefaults_Features should be SetDefaultsFeatures (golint)
    • Line 172: warning: exported function SetDefaults_Addons should have comment or be unexported (golint)
    • Line 172: warning: don't use underscores in Go names; func SetDefaults_Addons should be SetDefaultsAddons (golint)
    • kubeone/pkg/testhelper/helper.go
    • Line 17: warning: package comment should be of the form "Package testhelper ..." (golint)
    • Line 29: warning: exported function FSGoldenName should have comment or be unexported (golint)
    • Line 33: warning: exported function DiffOutput should have comment or be unexported (golint)
    • kubeone/pkg/certificate/cabundle/ca-bundle.go
    • Line 29: warning: exported const OriginalCertsDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported function Inject should have comment or be unexported (golint)
    • Line 60: warning: exported function ConfigMap should have comment or be unexported (golint)
    • Line 74: warning: exported function VolumeMount should have comment or be unexported (golint)
    • Line 82: warning: exported function Volume should have comment or be unexported (golint)
    • Line 95: warning: exported function EnvVar should have comment or be unexported (golint)
    • kubeone/test/e2e/os.go
    • Line 26: warning: exported type OperatingSystem should have comment or be unexported (golint)
    • Line 29: warning: exported const OperatingSystemUbuntu should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported const AWSCentOS7AMI should have comment (or a comment on this block) or be unexported (golint)
    • Line 41: warning: exported function ValidateOperatingSystem should have comment or be unexported (golint)
    • kubeone/pkg/certificate/ca.go
    • Line 33: warning: exported const KubernetesCACertPath should have comment (or a comment on this block) or be unexported (golint)
    • Line 50: warning: exported function DownloadKubePKI should have comment or be unexported (golint)
    • Line 75: warning: exported function UploadKubePKI should have comment or be unexported (golint)
    • kubeone/pkg/scripts/node.go
    • Line 50: warning: exported function DrainNode should have comment or be unexported (golint)
    • Line 56: warning: exported function Hostname should have comment or be unexported (golint)
    • Line 60: warning: exported function RestartKubeAPIServerCrictl should have comment or be unexported (golint)
    • kubeone/pkg/apis/kubeone/v1beta1/defaults.go
    • Line 39: warning: comment on exported const DefaultCanalMTU should be of the form "DefaultCanalMTU ..." (golint)
    • Line 47: warning: exported function SetDefaults_KubeOneCluster should have comment or be unexported (golint)
    • Line 47: warning: don't use underscores in Go names; func SetDefaults_KubeOneCluster should be SetDefaultsKubeOneCluster (golint)
    • Line 61: warning: exported function SetDefaults_Hosts should have comment or be unexported (golint)
    • Line 61: warning: don't use underscores in Go names; func SetDefaults_Hosts should be SetDefaultsHosts (golint)
    • Line 103: warning: exported function SetDefaults_APIEndpoints should have comment or be unexported (golint)
    • Line 103: warning: don't use underscores in Go names; func SetDefaults_APIEndpoints should be SetDefaultsAPIEndpoints (golint)
    • Line 115: warning: exported function SetDefaults_Versions should have comment or be unexported (golint)
    • Line 115: warning: don't use underscores in Go names; func SetDefaults_Versions should be SetDefaultsVersions (golint)
    • Line 120: warning: exported function SetDefaults_ContainerRuntime should have comment or be unexported (golint)
    • Line 120: warning: don't use underscores in Go names; func SetDefaults_ContainerRuntime should be SetDefaultsContainerRuntime (golint)
    • Line 139: warning: exported function SetDefaults_ClusterNetwork should have comment or be unexported (golint)
    • Line 139: warning: don't use underscores in Go names; func SetDefaults_ClusterNetwork should be SetDefaultsClusterNetwork (golint)
    • Line 167: warning: exported function SetDefaults_Proxy should have comment or be unexported (golint)
    • Line 167: warning: don't use underscores in Go names; func SetDefaults_Proxy should be SetDefaultsProxy (golint)
    • Line 183: warning: exported function SetDefaults_MachineController should have comment or be unexported (golint)
    • Line 183: warning: don't use underscores in Go names; func SetDefaults_MachineController should be SetDefaultsMachineController (golint)
    • Line 191: warning: exported function SetDefaults_SystemPackages should have comment or be unexported (golint)
    • Line 191: warning: don't use underscores in Go names; func SetDefaults_SystemPackages should be SetDefaultsSystemPackages (golint)
    • Line 199: warning: exported function SetDefaults_AssetConfiguration should have comment or be unexported (golint)
    • Line 199: warning: don't use underscores in Go names; func SetDefaults_AssetConfiguration should be SetDefaultsAssetConfiguration (golint)
    • Line 224: warning: exported function SetDefaults_Features should have comment or be unexported (golint)
    • Line 224: warning: don't use underscores in Go names; func SetDefaults_Features should be SetDefaultsFeatures (golint)
    • Line 247: warning: exported function SetDefaults_Addons should have comment or be unexported (golint)
    • Line 247: warning: don't use underscores in Go names; func SetDefaults_Addons should be SetDefaultsAddons (golint)
    • kubeone/pkg/apis/kubeone/types.go
    • Line 68: warning: comment on exported type ContainerRuntimeConfig should be of the form "ContainerRuntimeConfig ..." (with optional leading article) (golint)
    • Line 84: warning: exported const OperatingSystemNameUbuntu should have comment (or a comment on this block) or be unexported (golint)
    • Line 576: warning: comment on exported type EncryptionProviders should be of the form "EncryptionProviders ..." (with optional leading article) (golint)
    • kubeone/pkg/apis/kubeone/validation/validation.go
    • Line 190: warning: exported function ValidateContainerRuntimeConfig should have comment or be unexported (golint)
    • Line 299: warning: exported function ValidateCABundle should have comment or be unexported (golint)
    • Line 431: warning: exported function ValidateRegistryConfiguration should have comment or be unexported (golint)
    • Line 445: warning: exported function ValidateAssetConfiguration should have comment or be unexported (golint)
    • kubeone/pkg/state/cluster.go
    • Line 33: warning: exported type Cluster should have comment or be unexported (golint)
    • Line 41: warning: exported type EncryptionConfiguration should have comment or be unexported (golint)
    • Line 47: warning: exported type Host should have comment or be unexported (golint)
    • Line 64: warning: exported type ComponentStatus should have comment or be unexported (golint)
    • Line 70: warning: exported type ContainerStatus should have comment or be unexported (golint)
    • Line 75: warning: exported const SystemDStatusUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 155: warning: exported method Cluster.SafeToDeleteHosts should have comment or be unexported (golint)
    • Line 227: warning: exported method Cluster.SafeToRepair should have comment or be unexported (golint)
    • Line 250: warning: exported method Cluster.EncryptionEnabled should have comment or be unexported (golint)
    • Line 254: warning: exported method Cluster.CustomEncryptionEnabled should have comment or be unexported (golint)
    • kubeone/pkg/state/context.go
    • Line 44: warning: exported function New should have comment or be unexported (golint)
    • Line 99: warning: exported method State.KubeadmVerboseFlag should have comment or be unexported (golint)
    • Line 112: warning: exported method State.ShouldDisableEncryption should have comment or be unexported (golint)
    • Line 118: warning: exported method State.ShouldEnableEncryption should have comment or be unexported (golint)
    • Line 124: warning: exported method State.EncryptionEnabled should have comment or be unexported (golint)
    • Line 130: warning: exported method State.GetEncryptionProviderConfigName should have comment or be unexported (golint)
    • Line 138: warning: exported method State.GetKMSSocketPath should have comment or be unexported (golint)
    • kubeone/pkg/scripts/os_debian.go
    • Line 114: warning: exported function KubeadmDebian should have comment or be unexported (golint)
    • Line 131: warning: exported function RemoveBinariesDebian should have comment or be unexported (golint)
    • Line 135: warning: exported function UpgradeKubeadmAndCNIDebian should have comment or be unexported (golint)
    • Line 150: warning: exported function UpgradeKubeletAndKubectlDebian should have comment or be unexported (golint)
    • kubeone/pkg/scripts/os_flatcar.go
    • Line 178: warning: exported function KubeadmFlatcar should have comment or be unexported (golint)
    • Line 189: warning: exported function RemoveBinariesFlatcar should have comment or be unexported (golint)
    • Line 193: warning: exported function UpgradeKubeadmAndCNIFlatcar should have comment or be unexported (golint)
    • Line 200: warning: exported function UpgradeKubeletAndKubectlFlatcar should have comment or be unexported (golint)
    • kubeone/pkg/scripts/os_amzn.go
    • Line 189: warning: exported function KubeadmAmazonLinux should have comment or be unexported (golint)
    • Line 216: warning: exported function RemoveBinariesAmazonLinux should have comment or be unexported (golint)
    • Line 220: warning: exported function UpgradeKubeadmAndCNIAmazonLinux should have comment or be unexported (golint)
    • Line 244: warning: exported function UpgradeKubeletAndKubectlAmazonLinux should have comment or be unexported (golint)
    • kubeone/pkg/scripts/configs.go
    • Line 71: warning: exported function SaveCloudConfig should have comment or be unexported (golint)
    • Line 77: warning: exported function SaveAuditPolicyConfig should have comment or be unexported (golint)
    • Line 83: warning: exported function SavePodNodeSelectorConfig should have comment or be unexported (golint)
    • Line 89: warning: exported function SaveEncryptionProvidersConfig should have comment or be unexported (golint)
    • Line 96: warning: exported function DeleteEncryptionProvidersConfig should have comment or be unexported (golint)
    • Line 100: warning: exported function SaveCABundle should have comment or be unexported (golint)
    • kubeone/pkg/scripts/kubeadm.go
    • Line 71: warning: exported function KubeadmJoin should have comment or be unexported (golint)
    • Line 79: warning: exported function KubeadmJoinWorker should have comment or be unexported (golint)
    • Line 87: warning: exported function KubeadmCert should have comment or be unexported (golint)
    • Line 95: warning: exported function KubeadmInit should have comment or be unexported (golint)
    • Line 105: warning: exported function KubeadmReset should have comment or be unexported (golint)
    • Line 112: warning: exported function KubeadmUpgradeLeader should have comment or be unexported (golint)
    • Line 119: warning: exported function KubeadmPauseImageVersion should have comment or be unexported (golint)
    • kubeone/pkg/scripts/proxy.go
    • Line 72: warning: exported function EnvironmentFile should have comment or be unexported (golint)
    • Line 80: warning: exported function DaemonsProxy should have comment or be unexported (golint)
    • kubeone/test/e2e/testutil/exec.go
    • Line 27: warning: exported type ExecOpt should have comment or be unexported (golint)
    • Line 29: warning: exported function NewExec should have comment or be unexported (golint)
    • Line 45: warning: exported type Exec should have comment or be unexported (golint)
    • Line 55: warning: exported method Exec.Run should have comment or be unexported (golint)
    • Line 85: warning: exported function WithArgs should have comment or be unexported (golint)
    • Line 92: warning: exported function StdoutTo should have comment or be unexported (golint)
    • Line 99: warning: exported function StderrTo should have comment or be unexported (golint)
    • Line 106: warning: exported function InDir should have comment or be unexported (golint)
    • Line 113: warning: exported function WithMapEnv should have comment or be unexported (golint)
    • Line 127: warning: exported function WithEnv should have comment or be unexported (golint)
    • Line 134: warning: exported function WithEnvs should have comment or be unexported (golint)
    • Line 141: warning: exported function LogFunc should have comment or be unexported (golint)
    • Line 148: warning: exported function DebugTo should have comment or be unexported (golint)
    • Line 155: warning: exported var StdoutDebug should have comment or be unexported (golint)
    • kubeone/pkg/clientutil/label.go
    • Line 25: warning: exported const KubeoneComponentLabel should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported function AddLabels should have comment or be unexported (golint)
    • Line 49: warning: exported function LabelComponent should have comment or be unexported (golint)
    • kubeone/pkg/state/task.go
    • Line 94: warning: exported type RunModeEnum should have comment or be unexported (golint)
    • Line 97: warning: exported const RunSequentially should have comment (or a comment on this block) or be unexported (golint)
    • Line 131: warning: exported method State.RunTaskOnControlPlane should have comment or be unexported (golint)
    • Line 135: warning: exported method State.RunTaskOnStaticWorkers should have comment or be unexported (golint)
    • kubeone/pkg/templates/encryptionproviders/encryption_providers.go
    • Line 40: warning: exported function NewEncyrptionProvidersConfig should have comment or be unexported (golint)
    • Line 73: warning: exported function UpdateEncryptionConfigDecryptOnly should have comment or be unexported (golint)
    • Line 89: warning: exported function UpdateEncryptionConfigWithNewKey should have comment or be unexported (golint)
    • Line 114: warning: exported function UpdateEncryptionConfigRemoveOldKey should have comment or be unexported (golint)
    • kubeone/pkg/yamled/path.go
    • Line 25: warning: exported type Step should have comment or be unexported (golint)
    • Line 27: warning: exported type Path should have comment or be unexported (golint)
    • Line 29: warning: exported method Path.Parent should have comment or be unexported (golint)
    • Line 37: warning: exported method Path.Tail should have comment or be unexported (golint)
    • kubeone/pkg/apis/kubeone/helpers.go
    • Line 38: warning: exported method KubeOneCluster.RandomHost should have comment or be unexported (golint)
    • Line 94: warning: exported method ContainerRuntimeConfig.UnmarshalText should have comment or be unexported (golint)
    • Line 107: warning: exported method ContainerRuntimeConfig.CRISocket should have comment or be unexported (golint)
    • kubeone/pkg/apis/kubeone/v1alpha1/conversion.go
    • Line 28: warning: comment on exported function Convert_v1alpha1_CNI_To_kubeone_CNI should be of the form "Convert_v1alpha1_CNI_To_kubeone_CNI ..." (golint)
    • Line 29: warning: don't use underscores in Go names; func Convert_v1alpha1_CNI_To_kubeone_CNI should be ConvertV1alpha1CNIToKubeoneCNI (golint)
    • Line 52: warning: exported function Convert_kubeone_CNI_To_v1alpha1_CNI should have comment or be unexported (golint)
    • Line 52: warning: don't use underscores in Go names; func Convert_kubeone_CNI_To_v1alpha1_CNI should be ConvertKubeoneCNIToV1alpha1CNI (golint)
    • Line 70: warning: exported function Convert_v1alpha1_CloudProviderSpec_To_kubeone_CloudProviderSpec should have comment or be unexported (golint)
    • Line 70: warning: don't use underscores in Go names; func Convert_v1alpha1_CloudProviderSpec_To_kubeone_CloudProviderSpec should be ConvertV1alpha1CloudProviderSpecToKubeoneCloudProviderSpec (golint)
    • Line 105: warning: exported function Convert_kubeone_CloudProviderSpec_To_v1alpha1_CloudProviderSpec should have comment or be unexported (golint)
    • Line 105: warning: don't use underscores in Go names; func Convert_kubeone_CloudProviderSpec_To_v1alpha1_CloudProviderSpec should be ConvertKubeoneCloudProviderSpecToV1alpha1CloudProviderSpec (golint)
    • Line 134: warning: exported function Convert_v1alpha1_ClusterNetworkConfig_To_kubeone_ClusterNetworkConfig should have comment or be unexported (golint)
    • Line 134: warning: don't use underscores in Go names; func Convert_v1alpha1_ClusterNetworkConfig_To_kubeone_ClusterNetworkConfig should be ConvertV1alpha1ClusterNetworkConfigToKubeoneClusterNetworkConfig (golint)
    • Line 142: warning: exported function Convert_v1alpha1_HostConfig_To_kubeone_HostConfig should have comment or be unexported (golint)
    • Line 142: warning: don't use underscores in Go names; func Convert_v1alpha1_HostConfig_To_kubeone_HostConfig should be ConvertV1alpha1HostConfigToKubeoneHostConfig (golint)
    • Line 154: warning: exported function Convert_kubeone_HostConfig_To_v1alpha1_HostConfig should have comment or be unexported (golint)
    • Line 154: warning: don't use underscores in Go names; func Convert_kubeone_HostConfig_To_v1alpha1_HostConfig should be ConvertKubeoneHostConfigToV1alpha1HostConfig (golint)
    • Line 181: warning: exported function Convert_kubeone_ProviderSpec_To_v1alpha1_ProviderSpec should have comment or be unexported (golint)
    • Line 181: warning: don't use underscores in Go names; func Convert_kubeone_ProviderSpec_To_v1alpha1_ProviderSpec should be ConvertKubeoneProviderSpecToV1alpha1ProviderSpec (golint)
    • Line 191: warning: exported function Convert_v1alpha1_KubeOneCluster_To_kubeone_KubeOneCluster should have comment or be unexported (golint)
    • Line 191: warning: don't use underscores in Go names; func Convert_v1alpha1_KubeOneCluster_To_kubeone_KubeOneCluster should be ConvertV1alpha1KubeOneClusterToKubeoneKubeOneCluster (golint)
    • Line 245: warning: exported function Convert_kubeone_KubeOneCluster_To_v1alpha1_KubeOneCluster should have comment or be unexported (golint)
    • Line 245: warning: don't use underscores in Go names; func Convert_kubeone_KubeOneCluster_To_v1alpha1_KubeOneCluster should be ConvertKubeoneKubeOneClusterToV1alpha1KubeOneCluster (golint)
    • Line 291: warning: exported function Convert_v1alpha1_MachineControllerConfig_To_kubeone_MachineControllerConfig should have comment or be unexported (golint)
    • Line 291: warning: don't use underscores in Go names; func Convert_v1alpha1_MachineControllerConfig_To_kubeone_MachineControllerConfig should be ConvertV1alpha1MachineControllerConfigToKubeoneMachineControllerConfig (golint)
    • Line 301: warning: exported function Convert_kubeone_Features_To_v1alpha1_Features should have comment or be unexported (golint)
    • Line 301: warning: don't use underscores in Go names; func Convert_kubeone_Features_To_v1alpha1_Features should be ConvertKubeoneFeaturesToV1alpha1Features (golint)
    • kubeone/pkg/runner/runner.go
    • Line 44: warning: exported method Runner.NewFS should have comment or be unexported (golint)
    • Line 48: warning: exported method Runner.RunRaw should have comment or be unexported (golint)
    • kubeone/pkg/templates/images/images.go
    • Line 25: warning: exported type Resource should have comment or be unexported (golint)
    • Line 33: warning: exported const CalicoCNI should have comment (or a comment on this block) or be unexported (golint)
    • Line 84: warning: exported type Opt should have comment or be unexported (golint)
    • Line 86: warning: exported function WithOverwriteRegistryGetter should have comment or be unexported (golint)
    • Line 92: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 100: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 104: warning: exported type ListFilter should have comment or be unexported (golint)
    • Line 107: warning: exported const ListFilterNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 112: warning: exported method Resolver.List should have comment or be unexported (golint)
    • Line 131: warning: exported method Resolver.Tag should have comment or be unexported (golint)
    • Line 140: warning: exported type GetOpt should have comment or be unexported (golint)
    • Line 142: warning: exported function WithDomain should have comment or be unexported (golint)
    • Line 152: warning: exported function WithTag should have comment or be unexported (golint)
    • Line 159: warning: exported method Resolver.Get should have comment or be unexported (golint)
    • kubeone/pkg/scripts/os_centos.go
    • Line 107: warning: exported function KubeadmCentOS should have comment or be unexported (golint)
    • Line 128: warning: exported function RemoveBinariesCentOS should have comment or be unexported (golint)
    • Line 132: warning: exported function UpgradeKubeadmAndCNICentOS should have comment or be unexported (golint)
    • Line 151: warning: exported function UpgradeKubeletAndKubectlCentOS should have comment or be unexported (golint)
    • kubeone/pkg/apis/kubeone/v1beta1/types.go
    • Line 68: warning: comment on exported type ContainerRuntimeConfig should be of the form "ContainerRuntimeConfig ..." (with optional leading article) (golint)
    • Line 84: warning: exported const OperatingSystemNameUbuntu should have comment (or a comment on this block) or be unexported (golint)
    • Line 576: warning: comment on exported type EncryptionProviders should be of the form "EncryptionProviders ..." (with optional leading article) (golint)
    • kubeone/pkg/tasks/tasks.go
    • Line 34: warning: exported type Tasks should have comment or be unexported (golint)
    • Line 36: warning: exported method Tasks.Run should have comment or be unexported (golint)
    • Line 49: warning: exported method Tasks.Descriptions should have comment or be unexported (golint)
    • Line 100: warning: exported function WithHostnameOSAndProbes should have comment or be unexported (golint)
    • Line 150: warning: exported function WithResources should have comment or be unexported (golint)
    • Line 258: warning: exported function WithUpgrade should have comment or be unexported (golint)
    • Line 287: warning: exported function WithReset should have comment or be unexported (golint)
    • Line 295: warning: exported function WithClusterStatus should have comment or be unexported (golint)
    • Line 311: warning: exported function WithDisableEncryptionProviders should have comment or be unexported (golint)
    • Line 360: warning: exported function WithRewriteSecrets should have comment or be unexported (golint)
    • Line 369: warning: exported function WithCustomEncryptionConfigUpdated should have comment or be unexported (golint)
    • Line 384: warning: exported function WithRotateKey should have comment or be unexported (golint)
    • kubeone/pkg/yamled/document.go
    • Line 26: warning: exported type Document should have comment or be unexported (golint)
    • Line 30: warning: exported function Load should have comment or be unexported (golint)
    • Line 39: warning: exported function NewFromMapSlice should have comment or be unexported (golint)
    • Line 45: warning: exported method Document.MarshalYAML should have comment or be unexported (golint)
    • Line 49: warning: exported method Document.Root should have comment or be unexported (golint)
    • Line 53: warning: exported method Document.Has should have comment or be unexported (golint)
    • Line 59: warning: exported method Document.Get should have comment or be unexported (golint)
    • Line 107: warning: exported method Document.GetString should have comment or be unexported (golint)
    • Line 118: warning: exported method Document.GetInt should have comment or be unexported (golint)
    • Line 129: warning: exported method Document.GetBool should have comment or be unexported (golint)
    • Line 140: warning: exported method Document.GetArray should have comment or be unexported (golint)
    • Line 151: warning: exported method Document.Set should have comment or be unexported (golint)
    • Line 248: warning: exported method Document.Append should have comment or be unexported (golint)
    • Line 267: warning: exported method Document.Remove 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!