Preparing report...

Report for github.com/alexellis/arkade

A    Great!    Found 66 issues across 76 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!


gocyclo86%

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.


golint14%

Golint is a linter for Go source code.

    • arkade/cmd/apps/gitlab_app.go
    • Line 14: warning: exported function MakeInstallGitLab should have comment or be unexported (golint)
    • Line 94: warning: exported const GitlabInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/grafana_app.go
    • Line 15: warning: exported function MakeInstallGrafana should have comment or be unexported (golint)
    • Line 116: warning: exported const GrafanaInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/jenkins_app.go
    • Line 18: warning: exported function MakeInstallJenkins should have comment or be unexported (golint)
    • Line 104: warning: exported const JenkinsInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/portainer_app.go
    • Line 22: warning: exported function MakeInstallPortainer should have comment or be unexported (golint)
    • Line 86: warning: exported const PortainerInfoMsg should have comment or be unexported (golint)
    • Line 98: warning: exported const PortainerInstallMsg should have comment or be unexported (golint)
    • arkade/cmd/venafi/root.go
    • Line 4: warning: package comment should be of the form "Package venafi ..." (golint)
    • Line 11: warning: exported function MakeVenafi should have comment or be unexported (golint)
    • arkade/cmd/apps/nginx_inc_app.go
    • Line 15: warning: exported function MakeInstallNginxIncIngress should have comment or be unexported (golint)
    • Line 121: warning: exported const NginxIncIngressInfoMsg should have comment or be unexported (golint)
    • Line 127: warning: exported const NginxIncIngressInstallMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/osm_app.go
    • Line 23: warning: exported function MakeInstallOSM should have comment or be unexported (golint)
    • Line 140: warning: exported var OSMInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/registry_app.go
    • Line 25: warning: exported function MakeInstallRegistry should have comment or be unexported (golint)
    • Line 163: warning: exported const RegistryInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/traefik2_app.go
    • Line 16: warning: exported function MakeInstallTraefik2 should have comment or be unexported (golint)
    • Line 115: warning: exported const Traefik2InfoMsg should have comment or be unexported (golint)
    • arkade/pkg/k8s/kubernetes_exec.go
    • Line 16: warning: exported function GetNodeArchitecture should have comment or be unexported (golint)
    • Line 23: warning: exported function KubectlTaskStdin should have comment or be unexported (golint)
    • Line 35: warning: exported function KubectlTask should have comment or be unexported (golint)
    • Line 47: warning: exported function Kubectl should have comment or be unexported (golint)
    • Line 68: warning: exported function CreateNamespace should have comment or be unexported (golint)
    • Line 80: warning: exported function CreateSecret should have comment or be unexported (golint)
    • arkade/pkg/config/config.go
    • Line 13: warning: exported function GetUserDir should have comment or be unexported (golint)
    • Line 19: warning: exported function InitUserDir should have comment or be unexported (golint)
    • Line 42: warning: exported function GetDefaultKubeconfig should have comment or be unexported (golint)
    • Line 52: warning: exported function MergeFlags should have comment or be unexported (golint)
    • Line 63: warning: exported function SetKubeconfig should have comment or be unexported (golint)
    • arkade/cmd/apps/gitea_app.go
    • Line 20: warning: exported function MakeInstallGitea should have comment or be unexported (golint)
    • Line 108: warning: exported const GiteaInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/istio_app.go
    • Line 25: warning: exported function MakeInstallIstio should have comment or be unexported (golint)
    • Line 169: warning: exported const IstioInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/of_loki.go
    • Line 18: warning: exported function MakeInstallOpenFaaSLoki should have comment or be unexported (golint)
    • Line 75: warning: exported const LokiOFInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/tekton_app.go
    • Line 17: warning: exported function MakeInstallTekton should have comment or be unexported (golint)
    • Line 61: warning: exported const TektonInfoMsg should have comment or be unexported (golint)
    • Line 68: warning: exported const TektonInstallMsg should have comment or be unexported (golint)
    • arkade/cmd/install.go
    • Line 13: warning: exported type ArkadeApp should have comment or be unexported (golint)
    • Line 19: warning: exported function MakeInstall should have comment or be unexported (golint)
    • Line 66: warning: exported function GetApps should have comment or be unexported (golint)
    • Line 117: warning: exported function NewArkadeApp should have comment or be unexported (golint)
    • arkade/cmd/apps/mongodb_app.go
    • Line 22: warning: exported function MakeInstallMongoDB should have comment or be unexported (golint)
    • Line 113: warning: exported var MongoDBInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/argocd_app.go
    • Line 18: warning: exported function MakeInstallArgoCD should have comment or be unexported (golint)
    • Line 62: warning: exported const ArgoCDInfoMsg should have comment or be unexported (golint)
    • Line 86: warning: exported const ArgoCDInfoMsgInstallMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/kubernetes_dashboard_app.go
    • Line 17: warning: exported function MakeInstallKubernetesDashboard should have comment or be unexported (golint)
    • Line 49: warning: exported const KubernetesDashboardInfoMsg should have comment or be unexported (golint)
    • Line 84: warning: exported const KubernetesDashboardInstallMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/nfs_app.go
    • Line 17: warning: exported function MakeInstallNfsProvisioner should have comment or be unexported (golint)
    • Line 85: warning: exported const NfsClientProvisioneriInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/sealed_secret_app.go
    • Line 16: warning: exported function MakeInstallSealedSecrets should have comment or be unexported (golint)
    • Line 69: warning: exported const SealedSecretsPostInstallMsg should have comment or be unexported (golint)
    • Line 74: warning: exported var SealedSecretsInfoMsg should have comment or be unexported (golint)
    • arkade/pkg/get/get.go
    • Line 55: warning: exported method Tool.IsArchive should have comment or be unexported (golint)
    • Line 63: warning: exported function GetBinaryName should have comment or be unexported (golint)
    • Line 107: warning: exported method Tool.GetURL should have comment or be unexported (golint)
    • arkade/cmd/apps/loki_app.go
    • Line 16: warning: exported function MakeInstallLoki should have comment or be unexported (golint)
    • Line 73: warning: exported const LokiInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/registry_ingress_app.go
    • Line 22: warning: exported type RegInputData should have comment or be unexported (golint)
    • Line 32: warning: exported function MakeInstallRegistryIngress should have comment or be unexported (golint)
    • Line 141: warning: exported const RegistryIngressInfoMsg should have comment or be unexported (golint)
    • Line 164: warning: exported const RegistryIngressInstallMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/consul_app.go
    • Line 22: warning: exported function MakeInstallConsul should have comment or be unexported (golint)
    • Line 137: warning: exported const ConsulInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/falco.go
    • Line 17: warning: exported function MakeInstallFalco should have comment or be unexported (golint)
    • Line 104: warning: exported var FalcoInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/postgres_app.go
    • Line 19: warning: exported function MakeInstallPostgresql should have comment or be unexported (golint)
    • Line 88: warning: exported const PostgresqlInfoMsg should have comment or be unexported (golint)
    • arkade/pkg/helm/helm.go
    • Line 21: warning: exported function TryDownloadHelm should have comment or be unexported (golint)
    • Line 35: warning: exported function GetHelmURL should have comment or be unexported (golint)
    • Line 51: warning: exported function DownloadHelm should have comment or be unexported (golint)
    • Line 79: warning: exported function HelmInit should have comment or be unexported (golint)
    • Line 102: warning: exported function UpdateHelmRepos should have comment or be unexported (golint)
    • Line 123: warning: exported function AddHelmRepo should have comment or be unexported (golint)
    • Line 169: warning: exported function FetchChart should have comment or be unexported (golint)
    • Line 205: warning: exported function Helm3Upgrade should have comment or be unexported (golint)
    • arkade/cmd/apps/minio_app.go
    • Line 21: warning: exported function MakeInstallMinio should have comment or be unexported (golint)
    • Line 153: warning: exported var MinioInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/redis_app.go
    • Line 17: warning: exported function MakeInstallRedis should have comment or be unexported (golint)
    • Line 86: warning: exported const RedisInfoMsg should have comment or be unexported (golint)
    • arkade/pkg/get/download.go
    • Line 19: warning: exported const DownloadTempDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported function Download should have comment or be unexported (golint)
    • arkade/pkg/get/tools.go
    • Line 20: warning: exported type Tools should have comment or be unexported (golint)
    • Line 22: warning: exported function MakeTools should have comment or be unexported (golint)
    • arkade/cmd/apps/inletsoperator_app.go
    • Line 27: warning: exported function MakeInstallInletsOperator should have comment or be unexported (golint)
    • Line 337: warning: exported const InletsOperatorInfoMsg should have comment or be unexported (golint)
    • Line 374: warning: exported type Secret should have comment or be unexported (golint)
    • Line 381: warning: exported type SecretLiteral should have comment or be unexported (golint)
    • Line 387: warning: exported type K8sVer should have comment or be unexported (golint)
    • arkade/cmd/apps/openfaas_app.go
    • Line 22: warning: exported function MakeInstallOpenFaaS should have comment or be unexported (golint)
    • Line 241: warning: exported const OpenFaaSInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/influxdb_app.go
    • Line 16: warning: exported function MakeInstallinfluxdb should have comment or be unexported (golint)
    • Line 64: warning: exported const InfluxdbInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/nats_connector.go
    • Line 14: warning: exported function MakeInstallNATSConnector should have comment or be unexported (golint)
    • Line 59: warning: exported const NATSConnectorInfoMsg should have comment or be unexported (golint)
    • Line 67: warning: exported const NATSConnectorInstallMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/opa_gatekeeper.go
    • Line 17: warning: exported function MakeInstallOPAGateKeeper should have comment or be unexported (golint)
    • Line 93: warning: exported var OPAGatekeeperInfoMsg should have comment or be unexported (golint)
    • arkade/pkg/types/types.go
    • Line 5: warning: exported type InstallerOptions should have comment or be unexported (golint)
    • Line 15: warning: exported type K8sSecret should have comment or be unexported (golint)
    • Line 22: warning: exported type SecretsData should have comment or be unexported (golint)
    • Line 28: warning: exported type HelmConfig should have comment or be unexported (golint)
    • Line 38: warning: exported type HelmRepo should have comment or be unexported (golint)
    • Line 44: warning: exported type InstallerOutput should have comment or be unexported (golint)
    • Line 47: warning: exported method InstallerOptions.WithKubeconfigPath should have comment or be unexported (golint)
    • Line 52: warning: exported method InstallerOptions.WithNamespace should have comment or be unexported (golint)
    • Line 57: warning: exported method InstallerOptions.WithWait should have comment or be unexported (golint)
    • Line 62: warning: exported method InstallerOptions.WithHelmRepo should have comment or be unexported (golint)
    • Line 67: warning: exported method InstallerOptions.WithHelmRepoVersion should have comment or be unexported (golint)
    • Line 72: warning: exported method InstallerOptions.WithHelmURL should have comment or be unexported (golint)
    • Line 77: warning: exported method InstallerOptions.WithHelmUpdateRepo should have comment or be unexported (golint)
    • Line 82: warning: exported method InstallerOptions.WithOverrides should have comment or be unexported (golint)
    • Line 87: warning: exported method InstallerOptions.WithValuesFile should have comment or be unexported (golint)
    • Line 92: warning: exported method InstallerOptions.WithSecret should have comment or be unexported (golint)
    • Line 97: warning: exported method InstallerOptions.WithInstallNamespace should have comment or be unexported (golint)
    • Line 102: warning: exported function DefaultInstallOptions should have comment or be unexported (golint)
    • Line 120: warning: exported function NewGenericSecret should have comment or be unexported (golint)
    • Line 129: warning: exported const KubernetesGenericSecret should have comment or be unexported (golint)
    • Line 130: warning: exported const StringLiteralSecret should have comment or be unexported (golint)
    • Line 131: warning: exported const FromFileSecret should have comment or be unexported (golint)
    • arkade/cmd/version.go
    • Line 14: warning: exported var Version should have comment or be unexported (golint)
    • Line 18: warning: exported function PrintArkadeASCIIArt should have comment or be unexported (golint)
    • Line 23: warning: exported function MakeVersion should have comment or be unexported (golint)
    • arkade/cmd/apps/nginx_app.go
    • Line 16: warning: exported function MakeInstallNginx should have comment or be unexported (golint)
    • Line 86: warning: exported const NginxIngressInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/registry_creds_app.go
    • Line 20: warning: exported function MakeInstallRegistryCredsOperator should have comment or be unexported (golint)
    • Line 162: warning: exported const RegistryCredsOperatorInfoMsg should have comment or be unexported (golint)
    • arkade/cmd/apps/linkerd_app.go
    • Line 28: warning: exported function MakeInstallLinkerd should have comment or be unexported (golint)
    • Line 190: warning: exported var LinkerdInfoMsg should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!