Preparing report...

Report for github.com/tomatool/tomato

A+    Excellent!    Found 30 issues across 44 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!


gocyclo93%

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.


golint36%

Golint is a linter for Go source code.

    • tomato/handler/cache/client.go
    • Line 10: warning: exported type Resource should have comment or be unexported (golint)
    • Line 18: warning: exported type Handler should have comment or be unexported (golint)
    • Line 22: warning: exported function New should have comment or be unexported (golint)
    • tomato/handler/shell/shell.go
    • Line 10: warning: exported type Resource should have comment or be unexported (golint)
    • Line 19: warning: exported type Handler should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • tomato/resource/mysql/mysql.go
    • Line 14: warning: exported type MySQL should have comment or be unexported (golint)
    • Line 20: warning: exported function New should have comment or be unexported (golint)
    • Line 40: warning: exported method MySQL.Open should have comment or be unexported (golint)
    • Line 49: warning: exported method MySQL.Ready should have comment or be unexported (golint)
    • Line 53: warning: exported method MySQL.Reset should have comment or be unexported (golint)
    • Line 89: warning: exported method MySQL.Close should have comment or be unexported (golint)
    • Line 93: warning: exported method MySQL.Select should have comment or be unexported (golint)
    • Line 122: warning: exported method MySQL.Insert should have comment or be unexported (golint)
    • Line 143: warning: exported method MySQL.Delete should have comment or be unexported (golint)
    • tomato/compare/compare.go
    • Line 26: warning: exported function Value should have comment or be unexported (golint)
    • Line 109: warning: exported function Print should have comment or be unexported (golint)
    • tomato/errors/errors.go
    • Line 3: warning: exported type Step should have comment or be unexported (golint)
    • Line 12: warning: exported function NewStep should have comment or be unexported (golint)
    • tomato/handler/resource.go
    • Line 36: warning: exported function CreateResource should have comment or be unexported (golint)
    • Line 60: warning: exported method Handler.Register should have comment or be unexported (golint)
    • Line 79: warning: exported method Handler.Resources should have comment or be unexported (golint)
    • tomato/dictionary/dictionary.go
    • Line 12: warning: exported var Base should have comment or be unexported (golint)
    • Line 29: warning: exported type Type should have comment or be unexported (golint)
    • Line 33: warning: exported type Parameter should have comment or be unexported (golint)
    • Line 39: warning: exported type Option should have comment or be unexported (golint)
    • Line 45: warning: exported type Action should have comment or be unexported (golint)
    • Line 54: warning: exported method Action.Expr should have comment or be unexported (golint)
    • Line 84: warning: exported method Action.Param should have comment or be unexported (golint)
    • Line 93: warning: exported type Handler should have comment or be unexported (golint)
    • Line 101: warning: exported method Handler.Action should have comment or be unexported (golint)
    • Line 113: warning: exported type Dictionary should have comment or be unexported (golint)
    • Line 117: warning: exported function Retrieve should have comment or be unexported (golint)
    • tomato/cmd/tomatool/main.go
    • Line 52: warning: exported function GenerateDocs should have comment or be unexported (golint)
    • Line 67: warning: exported function GenerateHandler should have comment or be unexported (golint)
    • tomato/resource/shell/shell.go
    • Line 14: warning: exported type Shell should have comment or be unexported (golint)
    • Line 22: warning: exported function New should have comment or be unexported (golint)
    • Line 30: warning: exported method Shell.Open should have comment or be unexported (golint)
    • Line 34: warning: exported method Shell.Ready should have comment or be unexported (golint)
    • Line 37: warning: exported method Shell.Reset should have comment or be unexported (golint)
    • Line 43: warning: exported method Shell.Close should have comment or be unexported (golint)
    • Line 47: warning: exported method Shell.Exec should have comment or be unexported (golint)
    • Line 73: warning: exported method Shell.Stdout should have comment or be unexported (golint)
    • Line 82: warning: exported method Shell.Stderr should have comment or be unexported (golint)
    • Line 91: warning: exported method Shell.ExitCode should have comment or be unexported (golint)
    • tomato/resource/nsq/nsq.go
    • Line 15: warning: exported const DefaultWaitDuration should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: comment on exported const Ephemeral should be of the form "Ephemeral ..." (golint)
    • Line 43: warning: exported type NSQ should have comment or be unexported (golint)
    • Line 53: warning: exported function New should have comment or be unexported (golint)
    • Line 88: warning: comment on exported method NSQ.Ready should be of the form "Ready ..." (golint)
    • Line 108: warning: exported method NSQ.Reset should have comment or be unexported (golint)
    • Line 113: warning: comment on exported method NSQ.Close should be of the form "Close ..." (golint)
    • Line 161: warning: comment on exported method NSQ.Listen should be of the form "Listen ..." (golint)
    • Line 212: warning: comment on exported method NSQ.Publish should be of the form "Publish ..." (golint)
    • Line 225: warning: comment on exported method NSQ.Fetch should be of the form "Fetch ..." (golint)
    • tomato/handler/queue/queue.go
    • Line 14: warning: exported type Resource should have comment or be unexported (golint)
    • Line 22: warning: exported type Handler should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • tomato/config/config.go
    • Line 14: warning: exported type Config should have comment or be unexported (golint)
    • Line 22: warning: exported type Resource should have comment or be unexported (golint)
    • Line 28: warning: exported function Retrieve should have comment or be unexported (golint)
    • tomato/tomato/tomato.go
    • Line 23: warning: exported type Tomato should have comment or be unexported (golint)
    • Line 30: warning: exported function New should have comment or be unexported (golint)
    • Line 41: warning: exported method Tomato.Verify should have comment or be unexported (golint)
    • Line 49: warning: exported method Tomato.Run should have comment or be unexported (golint)
    • tomato/resource/httpclient/httpclient.go
    • Line 22: warning: exported type Client should have comment or be unexported (golint)
    • Line 33: warning: exported function New should have comment or be unexported (golint)
    • Line 86: warning: exported method Client.Ready should have comment or be unexported (golint)
    • Line 97: warning: exported method Client.Reset should have comment or be unexported (golint)
    • Line 111: warning: exported method Client.Response should have comment or be unexported (golint)
    • Line 118: warning: exported method Client.SetRequestHeader should have comment or be unexported (golint)
    • Line 123: warning: exported method Client.RequestFromFile should have comment or be unexported (golint)
    • Line 131: warning: exported method Client.Request should have comment or be unexported (golint)
    • tomato/resource/redis/redis.go
    • Line 18: warning: exported function New should have comment or be unexported (golint)
    • Line 26: warning: exported method Redis.Open should have comment or be unexported (golint)
    • Line 42: warning: exported method Redis.Ready should have comment or be unexported (golint)
    • Line 49: warning: exported method Redis.Reset should have comment or be unexported (golint)
    • Line 56: warning: exported method Redis.Close should have comment or be unexported (golint)
    • Line 60: warning: exported method Redis.Set should have comment or be unexported (golint)
    • Line 67: warning: exported method Redis.Get should have comment or be unexported (golint)
    • Line 80: warning: exported method Redis.Exists should have comment or be unexported (golint)
    • tomato/sql/sql.go
    • Line 10: warning: exported type QueryBuilder should have comment or be unexported (golint)
    • Line 24: warning: exported function NewQueryBuilder should have comment or be unexported (golint)
    • Line 39: warning: exported method QueryBuilder.SetBaseQuery should have comment or be unexported (golint)
    • Line 44: warning: exported method QueryBuilder.Where should have comment or be unexported (golint)
    • Line 53: warning: exported method QueryBuilder.Value should have comment or be unexported (golint)
    • Line 69: warning: exported const ColumnTypeArrayVarchar should have comment (or a comment on this block) or be unexported (golint)
    • Line 73: warning: exported method QueryBuilder.WhereOr should have comment or be unexported (golint)
    • Line 91: warning: exported method QueryBuilder.Limit should have comment or be unexported (golint)
    • Line 96: warning: exported method QueryBuilder.Offset should have comment or be unexported (golint)
    • Line 101: warning: exported method QueryBuilder.OrderBy should have comment or be unexported (golint)
    • Line 105: warning: exported method QueryBuilder.Query should have comment or be unexported (golint)
    • Line 131: warning: exported method QueryBuilder.Arguments should have comment or be unexported (golint)
    • tomato/generate/docs/docs.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported const OutputMarkdown should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported var DefaultOptions should have comment or be unexported (golint)
    • Line 24: warning: exported function Generate should have comment or be unexported (golint)
    • tomato/handler/database/sql/sql.go
    • Line 13: warning: exported type Resource should have comment or be unexported (golint)
    • Line 21: warning: exported type Handler should have comment or be unexported (golint)
    • Line 25: warning: exported function New should have comment or be unexported (golint)
    • tomato/resource/rabbitmq/rabbitmq.go
    • Line 16: warning: exported const DefaultWaitDuration should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported type RabbitMQ should have comment or be unexported (golint)
    • tomato/version/version.go
    • Line 11: warning: exported var Version should have comment or be unexported (golint)
    • Line 26: warning: exported function Print should have comment or be unexported (golint)
    • tomato/handler/http/server/server.go
    • Line 11: warning: exported type Resource should have comment or be unexported (golint)
    • Line 19: warning: exported type Handler should have comment or be unexported (golint)
    • Line 23: warning: exported function New should have comment or be unexported (golint)
    • tomato/resource/postgres/postgres.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: exported type PostgreSQL should have comment or be unexported (golint)
    • Line 19: warning: exported function New should have comment or be unexported (golint)
    • Line 28: warning: exported method PostgreSQL.Open should have comment or be unexported (golint)
    • Line 37: warning: exported method PostgreSQL.Ready should have comment or be unexported (golint)
    • Line 41: warning: exported method PostgreSQL.Reset should have comment or be unexported (golint)
    • Line 67: warning: exported method PostgreSQL.Close should have comment or be unexported (golint)
    • Line 78: warning: exported method PostgreSQL.Select should have comment or be unexported (golint)
    • Line 107: warning: exported method PostgreSQL.Insert should have comment or be unexported (golint)
    • Line 128: warning: exported method PostgreSQL.Delete should have comment or be unexported (golint)
    • tomato/handler/http/client/client.go
    • Line 17: warning: exported type Resource should have comment or be unexported (golint)
    • Line 26: warning: exported type Handler should have comment or be unexported (golint)
    • Line 30: warning: exported function New 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!


misspell97%

Misspell Finds commonly misspelled English words