Preparing report...

Report for github.com/projectdiscovery/proxify

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


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.


golint50%

Golint is a linter for Go source code.

    • proxify/logger.go
    • Line 19: warning: exported type OptionsLogger should have comment or be unexported (golint)
    • Line 26: warning: exported type OutputData should have comment or be unexported (golint)
    • Line 31: warning: exported type Logger should have comment or be unexported (golint)
    • proxify/proxy.go
    • Line 25: warning: exported type UserData should have comment or be unexported (golint)
    • Line 32: warning: exported type OnRequestFunc should have comment or be unexported (golint)
    • Line 33: warning: exported type OnResponseFunc should have comment or be unexported (golint)
    • Line 34: warning: exported type OnConnectFunc should have comment or be unexported (golint)
    • Line 36: warning: exported type Options should have comment or be unexported (golint)
    • Line 61: warning: exported type Proxy should have comment or be unexported (golint)
    • Line 70: warning: exported method Proxy.OnRequest should have comment or be unexported (golint)
    • Line 99: warning: exported method Proxy.OnResponse should have comment or be unexported (golint)
    • Line 118: warning: exported method Proxy.OnConnect should have comment or be unexported (golint)
    • Line 136: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 160: warning: comment on exported method Proxy.MatchReplaceResponse should be of the form "MatchReplaceResponse ..." (golint)
    • Line 173: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 190: warning: exported method Proxy.Run should have comment or be unexported (golint)
    • Line 253: warning: exported method Proxy.Stop should have comment or be unexported (golint)
    • Line 257: warning: exported function NewProxy should have comment or be unexported (golint)
    • proxify/socket.go
    • Line 42: warning: exported type SocketProxyOptions should have comment or be unexported (golint)
    • Line 63: warning: exported method SocketProxyOptions.Clone should have comment or be unexported (golint)
    • Line 83: warning: exported function NewSocketProxy should have comment or be unexported (golint)
    • Line 87: warning: exported method SocketProxy.Run should have comment or be unexported (golint)
    • Line 115: warning: exported method SocketProxy.Proxy should have comment or be unexported (golint)
    • proxify/cmd/mitmrelay/mitmrelay.go
    • Line 17: warning: exported type Options should have comment or be unexported (golint)
    • Line 145: warning: exported type Relays should have comment or be unexported (golint)
    • Line 151: warning: exported method Relays.Set 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!