Preparing report...

Report for github.com/toddproject/todd

A+    Excellent!    Found 14 issues across 52 files

Tweet

gofmt96%

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!


gocyclo94%

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.


golint84%

Golint is a linter for Go source code.

    • todd/api/server/server.go
    • Line 21: warning: exported type ToDDApi should have comment or be unexported (golint)
    • Line 26: warning: exported method ToDDApi.Start should have comment or be unexported (golint)
    • todd/config/config.go
    • Line 16: warning: exported type API should have comment or be unexported (golint)
    • Line 21: warning: exported type Assets should have comment or be unexported (golint)
    • Line 26: warning: exported type Comms should have comment or be unexported (golint)
    • Line 34: warning: exported type DB should have comment or be unexported (golint)
    • Line 41: warning: exported type TSDB should have comment or be unexported (golint)
    • Line 48: warning: exported type Testing should have comment or be unexported (golint)
    • Line 52: warning: exported type Grouping should have comment or be unexported (golint)
    • Line 56: warning: exported type LocalResources should have comment or be unexported (golint)
    • Line 62: warning: exported type Config should have comment or be unexported (golint)
    • Line 73: warning: exported function GetConfig should have comment or be unexported (golint)
    • todd/db/db.go
    • Line 22: warning: exported var ErrInvalidDBPlugin 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!


misspell94%

Misspell Finds commonly misspelled English words

    • todd/comms/rabbitmq.go
    • Line 221: warning: "recieved" is a misspelling of "received" (misspell)
    • Line 383: warning: "recieves" is a misspelling of "receives" (misspell)
    • Line 510: warning: "recieves" is a misspelling of "receives" (misspell)
    • Line 583: warning: "ususally" is a misspelling of "usually" (misspell)