Preparing report...

Report for github.com/kubernetes-misc/kudecs

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


golint28%

Golint is a linter for Go source code.

    • kudecs/model/job.go
    • Line 3: warning: exported type Job should have comment or be unexported (golint)
    • Line 7: warning: exported method Job.Run should have comment or be unexported (golint)
    • kudecs/model/log.go
    • Line 3: warning: exported var LogOK should have comment or be unexported (golint)
    • Line 4: warning: exported var LogFAIL should have comment or be unexported (golint)
    • kudecs/model/secret.go
    • Line 12: warning: exported function NewInjectSecret should have comment or be unexported (golint)
    • Line 28: warning: exported function GetExpiresFromSecret should have comment or be unexported (golint)
    • kudecs/client/k8s.go
    • Line 24: warning: exported function BuildClient should have comment or be unexported (golint)
    • Line 62: warning: exported type WrappedCRD should have comment or be unexported (golint)
    • Line 67: warning: exported function WatchCRDS should have comment or be unexported (golint)
    • Line 89: warning: exported function GetAllCRD should have comment or be unexported (golint)
    • Line 115: warning: exported function GetSecret should have comment or be unexported (golint)
    • Line 120: warning: exported function CreateSecret should have comment or be unexported (golint)
    • Line 125: warning: exported function UpdateSecret should have comment or be unexported (golint)
    • Line 130: warning: exported function DeleteSecret should have comment or be unexported (golint)
    • kudecs/controller/recon.go
    • Line 10: warning: exported var ReconHub should have comment or be unexported (golint)
    • Line 12: warning: exported function NewReconHub should have comment or be unexported (golint)
    • kudecs/model/config.go
    • Line 3: warning: exported var StoreNamespace should have comment or be unexported (golint)
    • Line 4: warning: exported var ExpiresLabel should have comment or be unexported (golint)
    • Line 5: warning: exported var DefaultPrivate should have comment or be unexported (golint)
    • Line 6: warning: exported var DefaultPublic should have comment or be unexported (golint)
    • kudecs/model/crd.go
    • Line 7: warning: exported var KudecsV1CRDSchema should have comment or be unexported (golint)
    • Line 13: warning: exported type KudecsV1 should have comment or be unexported (golint)
    • Line 18: warning: exported method KudecsV1.GetID should have comment or be unexported (golint)
    • Line 22: warning: exported method KudecsV1.GetMasterSecretName should have comment or be unexported (golint)
    • Line 26: warning: exported type MetadataV1 should have comment or be unexported (golint)
    • Line 31: warning: exported type SpecV1 should have comment or be unexported (golint)
    • Line 43: warning: exported type InjectedSecretsV1 should have comment or be unexported (golint)
    • kudecs/openssl/generate.go
    • Line 16: warning: exported function Generate should have comment or be unexported (golint)
    • Line 87: warning: exported function NewGenerateRequest should have comment or be unexported (golint)
    • Line 101: warning: exported type GenerateRequest should have comment or be unexported (golint)
    • kudecs/gen/cert.go
    • Line 39: warning: exported function NewGenerateRequest should have comment or be unexported (golint)
    • Line 53: warning: exported type GenerateRequest should have comment or be unexported (golint)
    • Line 88: warning: exported function GenerateCert should have comment or be unexported (golint)
    • kudecs/bin/app.go
    • Line 12: warning: exported const DefaultCronSpec should have comment or be unexported (golint)
    • Line 13: warning: exported const Version should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign92%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!