Preparing report...

Report for github.com/kubernetes-misc/chpa

A    Great!    Found 6 issues across 6 files

Tweet

gofmt83%

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!


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!


golint0%

Golint is a linter for Go source code.

    • chpa/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)
    • chpa/model/cron-hpa.go
    • Line 8: warning: exported var CronHPAV1CRDSchema should have comment or be unexported (golint)
    • Line 14: warning: exported type CronHPAV1 should have comment or be unexported (golint)
    • Line 19: warning: exported method CronHPAV1.PrettyString should have comment or be unexported (golint)
    • Line 25: warning: exported method CronHPAV1.GetID should have comment or be unexported (golint)
    • Line 29: warning: exported type MetadataV1 should have comment or be unexported (golint)
    • Line 34: warning: exported type SpecV1 should have comment or be unexported (golint)
    • Line 41: warning: exported method SpecV1.GetCronSpec should have comment or be unexported (golint)
    • Line 48: warning: exported method SpecV1.CronSpecEquals should have comment or be unexported (golint)
    • Line 54: warning: exported type ScaleTargetRefV1 should have comment or be unexported (golint)
    • Line 60: warning: exported type HorizontalPodAutoScaler should have comment or be unexported (golint)
    • chpa/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)
    • chpa/cron/jobs.go
    • Line 12: warning: exported var Jobs should have comment or be unexported (golint)
    • Line 14: warning: exported type Job should have comment or be unexported (golint)
    • Line 20: warning: exported method Job.Run should have comment or be unexported (golint)
    • Line 24: warning: exported method Job.UpdateCronScale should have comment or be unexported (golint)
    • Line 30: warning: exported function MatchJobs should have comment or be unexported (golint)
    • Line 34: warning: should omit 2nd value from range; this loop is equivalent to `for csID := range ...` (golint)
    • Line 84: warning: exported function IDExists should have comment or be unexported (golint)
    • chpa/client/k8s.go
    • Line 23: warning: exported function BuildClient should have comment or be unexported (golint)
    • Line 51: warning: exported function GetAllNS should have comment or be unexported (golint)
    • Line 65: warning: exported function GetAllCRD should have comment or be unexported (golint)
    • Line 91: warning: exported function GetDeployment should have comment or be unexported (golint)
    • Line 101: warning: exported function UpdateDeployment should have comment or be unexported (golint)
    • Line 107: warning: exported function GetHPA should have comment or be unexported (golint)
    • Line 117: warning: exported function UpdateHPA should have comment or be unexported (golint)
    • chpa/bin/app.go
    • Line 17: warning: exported const DefaultCronSpec 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!