Preparing report...

Report for github.com/jmank88/todo

A    Great!    Found 6 issues across 9 files

Tweet

gofmt88%

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!


golint66%

Golint is a linter for Go source code.

    • todo/datastore/datastore.go
    • Line 9: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 14: warning: comment on exported function NewDatastore should be of the form "NewDatastore ..." (golint)
    • todo/client/client.go
    • Line 17: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 33: warning: comment on exported function Host should be of the form "Host ..." (golint)
    • Line 40: warning: comment on exported function HTTPClient should be of the form "HTTPClient ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign44%

IneffAssign detects ineffectual assignments in Go code.

    • todo/client/cli/cli.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/jmank88/todo/client (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/jmank88/todo/task (invalid package name: "") (ineffassign)
    • todo/datastore/datastore.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: could not import github.com/rs/xid (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/lib/pq (invalid package name: "") (ineffassign)
    • Line 11: warning: could not import github.com/jmank88/todo/task (invalid package name: "") (ineffassign)
    • todo/client/client.go
    • Line 12: warning: cannot find package "." in: (ineffassign)
    • Line 12: warning: could not import github.com/jmank88/todo/task (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/jmank88/todo/task (invalid package name: "") (ineffassign)
    • todo/server/server.go
    • Line 11: warning: cannot find package "." in: (ineffassign)
    • Line 11: warning: could not import github.com/jmank88/todo/task (invalid package name: "") (ineffassign)
    • Line 53: warning: s.GetAll undefined (type *server has no field or method GetAll, but does have getAll) (ineffassign)
    • Line 62: warning: s.Get undefined (type *server has no field or method Get, but does have get) (ineffassign)
    • Line 76: warning: s.Put undefined (type *server has no field or method Put, but does have put) (ineffassign)
    • Line 87: warning: s.Delete undefined (type *server has no field or method Delete, but does have delete) (ineffassign)
    • Line 11: warning: could not import github.com/jmank88/todo/task (invalid package name: "") (ineffassign)
    • Line 53: warning: s.GetAll undefined (type *server has no field or method GetAll, but does have getAll) (ineffassign)
    • Line 62: warning: s.Get undefined (type *server has no field or method Get, but does have get) (ineffassign)
    • Line 76: warning: s.Put undefined (type *server has no field or method Put, but does have put) (ineffassign)
    • Line 87: warning: s.Delete undefined (type *server has no field or method Delete, but does have delete) (ineffassign)
    • todo/main.go
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 9: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: could not import github.com/jmank88/todo/datastore (invalid package name: "") (ineffassign)
    • Line 9: warning: could not import github.com/jmank88/todo/server (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!