Preparing report...

Report for github.com/wrfly/gus-proxy

A+    Excellent!    Found 9 issues across 25 files

Tweet

gofmt96%

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!


gocyclo96%

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.


golint68%

Golint is a linter for Go source code.

    • gus-proxy/proxy/hosts.go
    • Line 29: warning: exported type Hosts should have comment or be unexported (golint)
    • Line 34: warning: exported method Hosts.Add should have comment or be unexported (golint)
    • Line 40: warning: exported method Hosts.Hosts should have comment or be unexported (golint)
    • Line 44: warning: exported method Hosts.Len should have comment or be unexported (golint)
    • Line 48: warning: exported method Hosts.Host should have comment or be unexported (golint)
    • Line 75: warning: exported method Host.Init should have comment or be unexported (golint)
    • Line 93: warning: exported method Host.CheckAvaliable should have comment or be unexported (golint)
    • gus-proxy/pkg/go-socks4/socks4.go
    • Line 15: warning: don't use underscores in Go names; const socks_version should be socksVersion (golint)
    • Line 16: warning: don't use underscores in Go names; const socks_connect should be socksConnect (golint)
    • Line 17: warning: don't use underscores in Go names; const socks_bind should be socksBind (golint)
    • Line 19: warning: don't use underscores in Go names; const socks_ident should be socksIdent (golint)
    • Line 21: warning: don't use underscores in Go names; const access_granted should be accessGranted (golint)
    • Line 22: warning: don't use underscores in Go names; const access_rejected should be accessRejected (golint)
    • Line 23: warning: don't use underscores in Go names; const access_identd_required should be accessIdentdRequired (golint)
    • Line 24: warning: don't use underscores in Go names; const access_identd_failed should be accessIdentdFailed (golint)
    • Line 26: warning: exported const ErrWrongURL should have comment (or a comment on this block) or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell92%

Misspell Finds commonly misspelled English words