Preparing report...

Report for github.com/divisionone/go-api

A    Great!    Found 20 issues across 31 files

Tweet

gofmt90%

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!


gocyclo87%

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.


golint48%

Golint is a linter for Go source code.

    • go-api/handler/api/api.go
    • Line 21: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 103: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 110: warning: exported function WithService should have comment or be unexported (golint)
    • go-api/resolver/grpc/grpc.go
    • Line 12: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 14: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • go-api/handler/broker/broker.go
    • Line 19: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 236: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 249: warning: exported function WithCors should have comment or be unexported (golint)
    • go-api/server/options.go
    • Line 7: warning: exported type Option should have comment or be unexported (golint)
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported function ACMEHosts should have comment or be unexported (golint)
    • Line 22: warning: exported function EnableACME should have comment or be unexported (golint)
    • Line 28: warning: exported function EnableTLS should have comment or be unexported (golint)
    • Line 34: warning: exported function TLSConfig should have comment or be unexported (golint)
    • go-api/handler/options.go
    • Line 8: warning: exported type Options should have comment or be unexported (golint)
    • Line 14: warning: exported type Option should have comment or be unexported (golint)
    • go-api/resolver/host/host.go
    • Line 10: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 12: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • go-api/resolver/path/path.go
    • Line 12: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 14: warning: exported method Resolver.Resolve should have comment or be unexported (golint)
    • go-api/handler/web/web.go
    • Line 20: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 164: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 170: warning: exported function WithService should have comment or be unexported (golint)
    • go-api/handler/rpc/rpc.go
    • Line 22: warning: exported const Handler should have comment (or a comment on this block) or be unexported (golint)
    • Line 182: warning: receiver name rh should be consistent with previous receiver name h for rpcHandler (golint)
    • Line 186: warning: exported function NewHandler should have comment or be unexported (golint)
    • Line 193: warning: exported function WithService should have comment or be unexported (golint)
    • go-api/server/server.go
    • Line 18: warning: exported type Server should have comment or be unexported (golint)
    • Line 35: warning: exported function NewServer should have comment or be unexported (golint)
    • go-api/router/options.go
    • Line 9: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported type Option should have comment or be unexported (golint)
    • Line 36: warning: exported function WithHandler should have comment or be unexported (golint)
    • Line 48: warning: exported function WithNamespace should have comment or be unexported (golint)
    • Line 60: warning: exported function WithRegistry should have comment or be unexported (golint)
    • Line 66: warning: exported function WithResolver 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!