Preparing report...

Report for github.com/future-architect/gcp-instance-scheduler

A    Great!    Found 10 issues across 13 files

Tweet

gofmt84%

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!


golint23%

Golint is a linter for Go source code.

    • gcp-instance-scheduler/model/model.go
    • Line 1: warning: package comment should be of the form "Package model ..." (golint)
    • Line 23: warning: exported const ComputeEngine should have comment (or a comment on this block) or be unexported (golint)
    • Line 29: warning: exported type Report should have comment or be unexported (golint)
    • Line 40: warning: exported method Report.Show should have comment or be unexported (golint)
    • gcp-instance-scheduler/operator/gke.go
    • Line 1: warning: package comment should be of the form "Package operator ..." (golint)
    • Line 33: warning: exported type GKENodePoolCall should have comment or be unexported (golint)
    • Line 42: warning: exported function GKENodePool should have comment or be unexported (golint)
    • Line 56: warning: exported method GKENodePoolCall.Filter should have comment or be unexported (golint)
    • Line 65: warning: exported method GKENodePoolCall.Resize should have comment or be unexported (golint)
    • Line 126: warning: exported method GKENodePoolCall.Recovery should have comment or be unexported (golint)
    • Line 217: warning: exported function SetLableIfNoLabel should have comment or be unexported (golint)
    • gcp-instance-scheduler/operator/sql.go
    • Line 1: warning: package comment should be of the form "Package operator ..." (golint)
    • Line 28: warning: exported type SQLCall should have comment or be unexported (golint)
    • Line 35: warning: exported function SQL should have comment or be unexported (golint)
    • Line 48: warning: exported method SQLCall.Filter should have comment or be unexported (golint)
    • Line 62: warning: exported method SQLCall.Stop should have comment or be unexported (golint)
    • Line 107: warning: exported method SQLCall.Start should have comment or be unexported (golint)
    • gcp-instance-scheduler/scheduler/scheduler.go
    • Line 1: warning: package comment should be of the form "Package scheduler ..." (golint)
    • Line 30: warning: comment on exported const Label should be of the form "Label ..." (golint)
    • Line 33: warning: exported type Options should have comment or be unexported (golint)
    • Line 40: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 49: warning: exported function Shutdown should have comment or be unexported (golint)
    • Line 115: warning: exported function Restart should have comment or be unexported (golint)
    • gcp-instance-scheduler/scheduler.go
    • Line 1: warning: package comment should be of the form "Package function ..." (golint)
    • Line 37: warning: exported function SwitchInstanceState should have comment or be unexported (golint)
    • Line 74: warning: exported type Payload should have comment or be unexported (golint)
    • gcp-instance-scheduler/operator/gce.go
    • Line 1: warning: package comment should be of the form "Package operator ..." (golint)
    • Line 29: warning: exported type ComputeEngineCall should have comment or be unexported (golint)
    • Line 36: warning: exported function ComputeEngine should have comment or be unexported (golint)
    • Line 50: warning: exported method ComputeEngineCall.Filter should have comment or be unexported (golint)
    • Line 58: warning: exported method ComputeEngineCall.Stop should have comment or be unexported (golint)
    • Line 100: warning: exported method ComputeEngineCall.Start should have comment or be unexported (golint)
    • gcp-instance-scheduler/operator/instance_group.go
    • Line 1: warning: package comment should be of the form "Package operator ..." (golint)
    • Line 28: warning: exported type InstanceGroupCall should have comment or be unexported (golint)
    • Line 39: warning: exported function InstanceGroup should have comment or be unexported (golint)
    • Line 61: warning: exported method InstanceGroupCall.Filter should have comment or be unexported (golint)
    • Line 71: warning: exported method InstanceGroupCall.Resize should have comment or be unexported (golint)
    • Line 129: warning: exported method InstanceGroupCall.Recovery 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!


misspell84%

Misspell Finds commonly misspelled English words