Preparing report...

Report for github.com/mateimicu/kdiscover

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


gocyclo100%

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.

No problems detected. Good job!


golint69%

Golint is a linter for Go source code.

    • kdiscover/internal/cluster/cluster.go
    • Line 1: warning: package comment should be of the form "Package cluster ..." (golint)
    • Line 12: warning: exported type K8sProvider should have comment or be unexported (golint)
    • Line 15: warning: exported const None should have comment (or a comment on this block) or be unexported (golint)
    • Line 35: warning: exported function NewCluster should have comment or be unexported (golint)
    • Line 41: warning: exported method Cluster.GetUniqueID should have comment or be unexported (golint)
    • Line 52: warning: exported method Cluster.GetConfigAuthInfo should have comment or be unexported (golint)
    • Line 56: warning: exported method Cluster.GetConfigCluster should have comment or be unexported (golint)
    • Line 60: warning: exported method Cluster.GetName should have comment or be unexported (golint)
    • Line 64: warning: exported method Cluster.GetRegion should have comment or be unexported (golint)
    • Line 68: warning: exported method Cluster.GetStatus should have comment or be unexported (golint)
    • Line 72: warning: exported method Cluster.GetEndpoint should have comment or be unexported (golint)
    • Line 76: warning: exported method Cluster.PrettyName should have comment or be unexported (golint)
    • kdiscover/internal/cluster/testing.go
    • Line 1: warning: package comment should be of the form "Package cluster ..." (golint)
    • Line 46: warning: exported function GetMockClusters should have comment or be unexported (golint)
    • Line 56: warning: exported function GetPredictableMockClusters should have comment or be unexported (golint)
    • kdiscover/internal/aws/eks.go
    • Line 1: warning: package comment should be of the form "Package aws ..." (golint)
    • Line 18: warning: comment on exported type EKSClient should be of the form "EKSClient ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported method EKSClient.GetClusters should be of the form "GetClusters ..." (golint)
    • Line 118: warning: exported function NewEKS should have comment or be unexported (golint)
    • kdiscover/internal/kubeconfig/kubeconfig.go
    • Line 1: warning: package comment should be of the form "Package kubeconfig ..." (golint)
    • Line 12: warning: exported type ClusterExporter should have comment or be unexported (golint)
    • Line 24: warning: exported type Kubeconfig should have comment or be unexported (golint)
    • Line 28: warning: exported function LoadKubeconfig should have comment or be unexported (golint)
    • Line 39: warning: exported function New should have comment or be unexported (golint)
    • Line 50: warning: exported method Kubeconfig.AddCluster should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method Kubeconfig.GetClusters should be of the form "GetClusters ..." (golint)
    • Line 79: warning: exported type Endpointer 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!