Preparing report...

Report for github.com/txthinking/socks5

A+    Excellent!    Found 5 issues across 12 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!


gocyclo83%

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.

    • socks5/client.go
    • Line 42: warning: cyclomatic complexity 28 of function (*Client).DialWithLocalAddr() is high (> 15) (gocyclo)
    • socks5/server.go
    • Line 350: warning: cyclomatic complexity 27 of function (*DefaultHandle).UDPHandle() is high (> 15) (gocyclo)
    • Line 290: warning: cyclomatic complexity 16 of function (*DefaultHandle).TCPHandle() is high (> 15) (gocyclo)

golint58%

Golint is a linter for Go source code.

    • socks5/server.go
    • Line 170: warning: comment on exported method Server.ListenAndServe should be of the form "ListenAndServe ..." (golint)
    • Line 273: warning: comment on exported method Server.Shutdown should be of the form "Shutdown ..." (golint)
    • socks5/util.go
    • Line 37: warning: comment on exported function ParseBytesAddress should be of the form "ParseBytesAddress ..." (golint)
    • socks5/client.go
    • Line 26: warning: comment on exported function NewClient should be of the form "NewClient ..." (golint)
    • Line 38: warning: exported method Client.Dial should have comment or be unexported (golint)
    • Line 42: warning: exported method Client.DialWithLocalAddr should have comment or be unexported (golint)
    • Line 188: warning: exported method Client.Close should have comment or be unexported (golint)
    • Line 198: warning: exported method Client.LocalAddr should have comment or be unexported (golint)
    • Line 205: warning: exported method Client.RemoteAddr should have comment or be unexported (golint)
    • Line 209: warning: exported method Client.SetDeadline should have comment or be unexported (golint)
    • Line 216: warning: exported method Client.SetReadDeadline should have comment or be unexported (golint)
    • Line 223: warning: exported method Client.SetWriteDeadline should have comment or be unexported (golint)
    • Line 230: warning: exported method Client.Negotiate should have comment or be unexported (golint)
    • Line 275: warning: exported method Client.Request 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!