Preparing report...

Report for github.com/shadowy-pycoder/go-http-proxy-to-socks

(v1.10.0)

A+    Excellent!    Found 5 issues across 12 files

Tweet

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!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


gocyclo58%

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.

    • gohpts.go
    • Line 163: warning: cyclomatic complexity 79 of function New() is high (> 15) (gocyclo)
    • Line 510: warning: cyclomatic complexity 44 of function (*proxyapp).Run() is high (> 15) (gocyclo)
    • Line 1229: warning: cyclomatic complexity 39 of function (*proxyapp).sniffreporter() is high (> 15) (gocyclo)
    • Line 674: warning: cyclomatic complexity 35 of function (*proxyapp).handleForward() is high (> 15) (gocyclo)
    • Line 1139: warning: cyclomatic complexity 26 of function (*proxyapp).gatherSniffData() is high (> 15) (gocyclo)
    • Line 1340: warning: cyclomatic complexity 23 of function (*proxyapp).copyWithTimeout() is high (> 15) (gocyclo)
    • Line 1006: warning: cyclomatic complexity 18 of function (*proxyapp).getSocks() is high (> 15) (gocyclo)
    • colorize.go
    • Line 188: warning: cyclomatic complexity 28 of function colorizeTLS() is high (> 15) (gocyclo)
    • Line 102: warning: cyclomatic complexity 21 of function colorizeHTTP() is high (> 15) (gocyclo)
    • Line 286: warning: cyclomatic complexity 18 of function colorizeDNS() is high (> 15) (gocyclo)
    • tproxy_udp_linux.go
    • Line 215: warning: cyclomatic complexity 25 of function (*tproxyServerUDP).ListenAndServe() is high (> 15) (gocyclo)
    • Line 340: warning: cyclomatic complexity 22 of function (*tproxyServerUDP).handleConnection() is high (> 15) (gocyclo)
    • Line 450: warning: cyclomatic complexity 21 of function (*tproxyServerUDP).listenAndServeDNS() is high (> 15) (gocyclo)
    • Line 550: warning: cyclomatic complexity 17 of function (*tproxyServerUDP).handleDNSConnection() is high (> 15) (gocyclo)
    • tproxy_linux.go
    • Line 246: warning: cyclomatic complexity 21 of function (*tproxyServer).ApplyRedirectRules() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!