Preparing report...

Report for github.com/finleap-connect/monoctl

(v0.1.2)

A    Great!    Found 82 issues across 96 files

Tweet

gofmt80%

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


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!


gocyclo98%

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.


golint21%

Golint is a linter for Go source code.

    • internal/version/version.go
    • Line 23: warning: exported var Version should have comment or be unexported (golint)
    • Line 27: warning: exported function PrintVersion should have comment or be unexported (golint)
    • internal/usecases/auth.go
    • Line 24: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 43: warning: exported function NewAuthUsecase should have comment or be unexported (golint)
    • Line 161: warning: exported type IndexPageRenderData should have comment or be unexported (golint)
    • internal/usecases/create_cluster.go
    • Line 26: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 61: warning: exported function NewCreateClusterUseCase should have comment or be unexported (golint)
    • Line 139: warning: comment on exported type ClusterRenderData should be of the form "ClusterRenderData ..." (with optional leading article) (golint)
    • Line 164: warning: exported function RenderClusterConfig should have comment or be unexported (golint)
    • internal/config/config.go
    • Line 27: warning: exported var ErrEmptyServer should have comment or be unexported (golint)
    • Line 61: warning: exported method Config.StoreToken should have comment or be unexported (golint)
    • Line 77: warning: exported method Config.LoadToken should have comment or be unexported (golint)
    • Line 100: warning: exported method Config.GetClusterAuthInformation should have comment or be unexported (golint)
    • Line 104: warning: exported method Config.SetClusterAuthInformation should have comment or be unexported (golint)
    • Line 120: warning: exported type AuthInformation should have comment or be unexported (golint)
    • Line 131: warning: comment on exported method AuthInformation.IsValidExact should be of the form "IsValidExact ..." (golint)
    • internal/k8s/kubeconfig.go
    • Line 28: warning: exported type KubeConfig should have comment or be unexported (golint)
    • Line 33: warning: exported function NewKubeConfig should have comment or be unexported (golint)
    • Line 39: warning: exported method KubeConfig.LoadConfig should have comment or be unexported (golint)
    • Line 55: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 67: warning: exported method KubeConfig.StoreConfig should have comment or be unexported (golint)
    • Line 71: warning: exported method KubeConfig.SetPath should have comment or be unexported (golint)
    • internal/output/sorting.go
    • Line 17: warning: exported type SortOrder should have comment or be unexported (golint)
    • Line 20: warning: exported const Ascending should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported type SortOptions should have comment or be unexported (golint)
    • internal/grpc/connection.go
    • Line 27: warning: exported function CreateGrpcConnection should have comment or be unexported (golint)
    • Line 32: warning: exported function CreateGrpcConnectionAuthenticated should have comment or be unexported (golint)
    • Line 41: warning: exported function CreateGrpcConnectionAuthenticatedFromConfig should have comment or be unexported (golint)
    • Line 49: warning: comment on exported function CreateDummyGrpcConnection should be of the form "CreateDummyGrpcConnection ..." (golint)
    • internal/config/loader.go
    • Line 31: warning: exported const RecommendedConfigPathEnvVar should have comment (or a comment on this block) or be unexported (golint)
    • Line 38: warning: exported var RecommendedConfigDir should have comment or be unexported (golint)
    • Line 42: warning: exported type ClientConfigManager should have comment or be unexported (golint)
    • Line 117: warning: exported method ClientConfigManager.InitConfig should have comment or be unexported (golint)
    • Line 130: warning: exported method ClientConfigManager.SaveConfig should have comment or be unexported (golint)
    • internal/util/auth/auth.go
    • Line 28: warning: exported function RetryOnAuthFail should have comment or be unexported (golint)
    • Line 49: warning: exported function LoadConfigAndAuth 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!