Preparing report...

Report for github.com/weplanx/schedule

(v1.0.2)

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


golint27%

Golint is a linter for Go source code.

    • common/schedule.go
    • Line 7: warning: exported type Schedule should have comment or be unexported (golint)
    • Line 11: warning: exported function NewSchedule should have comment or be unexported (golint)
    • Line 17: warning: exported method Schedule.Set should have comment or be unexported (golint)
    • Line 27: warning: exported method Schedule.Start should have comment or be unexported (golint)
    • Line 31: warning: exported method Schedule.State should have comment or be unexported (golint)
    • Line 35: warning: exported method Schedule.Remove should have comment or be unexported (golint)
    • client/client.go
    • Line 11: warning: exported type Schedule should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method Schedule.Close should have comment or be unexported (golint)
    • Line 29: warning: exported function HttpJob should have comment or be unexported (golint)
    • Line 40: warning: exported method Schedule.Put should have comment or be unexported (golint)
    • Line 50: warning: exported method Schedule.Get should have comment or be unexported (golint)
    • Line 59: warning: exported method Schedule.Delete should have comment or be unexported (golint)
    • bootstrap/bootstrap.go
    • Line 20: warning: exported var Provides should have comment or be unexported (golint)
    • Line 46: warning: exported function UseZap should have comment or be unexported (golint)
    • Line 53: warning: exported function UseMongoDB should have comment or be unexported (golint)
    • Line 60: warning: exported function UseDatabase should have comment or be unexported (golint)
    • Line 64: warning: exported function UseSchedule should have comment or be unexported (golint)
    • Line 68: warning: exported function UseTransfer should have comment or be unexported (golint)
    • api/api.go
    • Line 17: warning: exported type API should have comment or be unexported (golint)
    • Line 29: warning: exported method API.SetSchedule should have comment or be unexported (golint)
    • Line 51: warning: exported method API.Put should have comment or be unexported (golint)
    • Line 103: warning: exported method API.Get should have comment or be unexported (golint)
    • Line 141: warning: exported method API.Delete should have comment or be unexported (golint)
    • api/common.go
    • Line 18: warning: exported var Provides should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • model/model.go
    • Line 7: warning: exported function PointInt64 should have comment or be unexported (golint)
    • Line 11: warning: exported type Schedule should have comment or be unexported (golint)
    • Line 18: warning: exported type Job should have comment or be unexported (golint)
    • Line 24: warning: exported type HttpJob should have comment or be unexported (golint)
    • common/common.go
    • Line 9: warning: exported type Inject should have comment or be unexported (golint)
    • Line 18: warning: exported type Values should have comment or be unexported (golint)
    • Line 26: warning: exported type TLS should have comment or be unexported (golint)
    • Line 31: warning: exported type Database should have comment or be unexported (golint)
    • Line 37: warning: exported type Transfer 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!