Preparing report...

Report for github.com/purpleworks/delibird

A+    Excellent!    Found 8 issues across 15 files

Tweet

gofmt93%

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!


golint46%

Golint is a linter for Go source code.

    • delibird/couriers/kpost.go
    • Line 18: warning: exported type Kpost should have comment or be unexported (golint)
    • Line 24: warning: exported method Kpost.Code should have comment or be unexported (golint)
    • Line 28: warning: exported method Kpost.Name should have comment or be unexported (golint)
    • Line 32: warning: exported method Kpost.TrackingUrl should have comment or be unexported (golint)
    • Line 36: warning: exported method Kpost.Parse should have comment or be unexported (golint)
    • Line 136: warning: don't use underscores in Go names; method parameter status_text should be statusText (golint)
    • delibird/couriers/logen.go
    • Line 20: warning: exported type Logen should have comment or be unexported (golint)
    • Line 26: warning: exported method Logen.Code should have comment or be unexported (golint)
    • Line 30: warning: exported method Logen.Name should have comment or be unexported (golint)
    • Line 34: warning: exported method Logen.TrackingUrl should have comment or be unexported (golint)
    • Line 38: warning: exported method Logen.Parse should have comment or be unexported (golint)
    • Line 126: warning: don't use underscores in Go names; method parameter status_text should be statusText (golint)
    • delibird/constants.go
    • Line 3: warning: exported type TrackingStatus should have comment or be unexported (golint)
    • Line 6: warning: comment on exported const UnknownStatus should be of the form "UnknownStatus ..." (golint)
    • Line 8: warning: comment on exported const Pending should be of the form "Pending ..." (golint)
    • Line 10: warning: comment on exported const Ready should be of the form "Ready ..." (golint)
    • Line 12: warning: comment on exported const PickupComplete should be of the form "PickupComplete ..." (golint)
    • Line 14: warning: comment on exported const Loading should be of the form "Loading ..." (golint)
    • Line 16: warning: comment on exported const Unloading should be of the form "Unloading ..." (golint)
    • Line 18: warning: comment on exported const DeleveryStart should be of the form "DeleveryStart ..." (golint)
    • Line 20: warning: comment on exported const DeleveryComplete should be of the form "DeleveryComplete ..." (golint)
    • Line 22: warning: comment on exported const DoNotDelevery should be of the form "DoNotDelevery ..." (golint)
    • Line 27: warning: exported const NoCode should have comment (or a comment on this block) or be unexported (golint)
    • delibird/model.go
    • Line 5: warning: comment on exported type ApiError should be of the form "ApiError ..." (with optional leading article) (golint)
    • Line 21: warning: exported type Track should have comment or be unexported (golint)
    • Line 33: warning: exported type History should have comment or be unexported (golint)
    • delibird/server/main.go
    • Line 17: warning: exported type Config should have comment or be unexported (golint)
    • Line 48: warning: exported function App should have comment or be unexported (golint)
    • delibird/couriers/cj.go
    • Line 20: warning: exported type Cj should have comment or be unexported (golint)
    • Line 26: warning: exported method Cj.Code should have comment or be unexported (golint)
    • Line 30: warning: exported method Cj.Name should have comment or be unexported (golint)
    • Line 34: warning: exported method Cj.TrackingUrl should have comment or be unexported (golint)
    • Line 38: warning: exported method Cj.Parse should have comment or be unexported (golint)
    • Line 124: warning: don't use underscores in Go names; method parameter status_text should be statusText (golint)
    • delibird/couriers/kg.go
    • Line 18: warning: exported type Kg should have comment or be unexported (golint)
    • Line 24: warning: exported method Kg.Code should have comment or be unexported (golint)
    • Line 28: warning: exported method Kg.Name should have comment or be unexported (golint)
    • Line 32: warning: exported method Kg.TrackingUrl should have comment or be unexported (golint)
    • Line 36: warning: exported method Kg.Parse should have comment or be unexported (golint)
    • Line 83: warning: don't use underscores in Go names; var area_tel should be areaTel (golint)
    • Line 121: warning: don't use underscores in Go names; method parameter status_text should be statusText (golint)

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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!