Preparing report...

Report for github.com/typical-go/typical-rest-server

A+    Excellent!    Found 15 issues across 87 files

Tweet

gofmt95%

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!


golint88%

Golint is a linter for Go source code.

    • typical-rest-server/pkg/typredis/redis_config.go
    • Line 5: warning: exported var DefaultEnvKeys should have comment or be unexported (golint)
    • Line 12: warning: exported type Config should have comment or be unexported (golint)
    • Line 17: warning: exported type EnvKeys should have comment or be unexported (golint)
    • Line 20: warning: exported function EnvKeysWithPrefix should have comment or be unexported (golint)
    • Line 28: warning: exported method EnvKeys.Config should have comment or be unexported (golint)
    • typical-rest-server/pkg/typdb/dbconfig.go
    • Line 7: warning: exported var DefaultEnvKeys should have comment or be unexported (golint)
    • Line 16: warning: exported type Config should have comment or be unexported (golint)
    • Line 23: warning: exported type EnvKeys should have comment or be unexported (golint)
    • Line 30: warning: exported function EnvKeysWithPrefix should have comment or be unexported (golint)
    • Line 40: warning: exported method EnvKeys.Config should have comment or be unexported (golint)
    • typical-rest-server/pkg/typredis/redis.go
    • Line 10: warning: exported type RedisTool should have comment or be unexported (golint)
    • Line 19: warning: exported method RedisTool.Task should have comment or be unexported (golint)
    • Line 29: warning: exported method RedisTool.Console should have comment or be unexported (golint)
    • typical-rest-server/pkg/typdb/mysql.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 17: warning: exported type MySQLTool should have comment or be unexported (golint)
    • Line 24: warning: exported type MySQLHandler should have comment or be unexported (golint)
    • Line 38: warning: exported method MySQLTool.DBTool should have comment or be unexported (golint)
    • Line 60: warning: exported method MySQLHandler.Connect should have comment or be unexported (golint)
    • Line 67: warning: exported method MySQLHandler.ConnectAdmin should have comment or be unexported (golint)
    • Line 74: warning: exported method MySQLHandler.Migrate should have comment or be unexported (golint)
    • typical-rest-server/pkg/typdb/postgres.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 17: warning: exported type PostgresTool should have comment or be unexported (golint)
    • Line 24: warning: exported type PostgresHandler should have comment or be unexported (golint)
    • Line 38: warning: exported method PostgresTool.DBTool should have comment or be unexported (golint)
    • Line 60: warning: exported method PostgresHandler.Connect should have comment or be unexported (golint)
    • Line 67: warning: exported method PostgresHandler.ConnectAdmin should have comment or be unexported (golint)
    • Line 73: warning: exported method PostgresHandler.Migrate 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