Preparing report...

Report for github.com/zxc111/h2proxy

A    Great!    Found 12 issues across 14 files

Tweet

gofmt78%

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!


gocyclo92%

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.


golint35%

Golint is a linter for Go source code.

    • h2proxy/auth.go
    • Line 12: warning: comment on exported function CheckAuth should be of the form "CheckAuth ..." (golint)
    • Line 15: warning: should omit 2nd value from range; this loop is equivalent to `for auth := range ...` (golint)
    • Line 41: warning: comment on exported function SetAuthInHeader should be of the form "SetAuthInHeader ..." (golint)
    • h2proxy/client_common.go
    • Line 15: warning: comment on exported function CreateTunnel should be of the form "CreateTunnel ..." (golint)
    • Line 96: warning: comment on exported function NewTransport should be of the form "NewTransport ..." (golint)
    • h2proxy/http_client.go
    • Line 13: warning: exported type HttpProxy should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function GetMethod should be of the form "GetMethod ..." (golint)
    • Line 87: warning: exported method HttpProxy.Start should have comment or be unexported (golint)
    • h2proxy/user.go
    • Line 9: warning: exported type UserInfo should have comment or be unexported (golint)
    • Line 18: warning: exported method UserInfo.ToBase64 should have comment or be unexported (golint)
    • h2proxy/utils.go
    • Line 11: warning: exported var Log should have comment or be unexported (golint)
    • Line 41: warning: exported function InitLogger should have comment or be unexported (golint)
    • h2proxy/config.go
    • Line 15: warning: exported const HTTP should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: comment on exported var Debug should be of the form "Debug ..." (golint)
    • Line 29: warning: exported type ServerConfig should have comment or be unexported (golint)
    • Line 38: warning: exported type ClientConfig should have comment or be unexported (golint)
    • Line 47: warning: exported type FileConfig should have comment or be unexported (golint)
    • Line 53: warning: exported function ParseConfig should have comment or be unexported (golint)
    • h2proxy/h2server.go
    • Line 11: warning: exported type Http2Server should have comment or be unexported (golint)
    • Line 17: warning: exported method Http2Server.Start should have comment or be unexported (golint)
    • h2proxy/sock5_client.go
    • Line 17: warning: exported type Sock5Proxy should have comment or be unexported (golint)
    • Line 173: warning: exported method Sock5Proxy.Start 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!