Preparing report...

Report for github.com/pires/go-proxyproto

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


golint76%

Golint is a linter for Go source code.

    • go-proxyproto/tlvparse/aws.go
    • Line 13: warning: comment on exported const PP2_TYPE_AWS should be of the form "PP2_TYPE_AWS ..." (golint)
    • Line 15: warning: exported const PP2_SUBTYPE_AWS_VPCE_ID should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: exported function IsAWSVPCEndpointID should have comment or be unexported (golint)
    • Line 24: warning: exported function AWSVPCEndpointID should have comment or be unexported (golint)
    • go-proxyproto/tlvparse/azure.go
    • Line 13: warning: comment on exported const PP2_TYPE_AZURE should be of the form "PP2_TYPE_AZURE ..." (golint)
    • Line 15: warning: exported const PP2_SUBTYPE_AZURE_PRIVATEENDPOINT_LINKID should have comment (or a comment on this block) or be unexported (golint)
    • go-proxyproto/tlvparse/ssl.go
    • Line 12: warning: comment on exported const PP2_BITFIELD_CLIENT_SSL should be of the form "PP2_BITFIELD_CLIENT_SSL ..." (golint)
    • Line 14: warning: exported const PP2_BITFIELD_CLIENT_CERT_CONN should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: comment on exported type PP2SSL should be of the form "PP2SSL ..." (with optional leading article) (golint)
    • Line 97: warning: comment on exported function IsSSL should be of the form "IsSSL ..." (golint)
    • Line 149: warning: comment on exported function FindSSL should be of the form "FindSSL ..." (golint)
    • go-proxyproto/header.go
    • Line 15: warning: comment on exported var SIGV1 should be of the form "SIGV1 ..." (golint)
    • Line 17: warning: exported var SIGV2 should have comment or be unexported (golint)
    • Line 100: warning: exported method Header.TCPAddrs should have comment or be unexported (golint)
    • Line 109: warning: exported method Header.UDPAddrs should have comment or be unexported (golint)
    • Line 118: warning: exported method Header.UnixAddrs should have comment or be unexported (golint)
    • Line 127: warning: exported method Header.IPs should have comment or be unexported (golint)
    • Line 137: warning: exported method Header.Ports should have comment or be unexported (golint)
    • go-proxyproto/tlv.go
    • Line 14: warning: comment on exported const PP2_TYPE_ALPN should be of the form "PP2_TYPE_ALPN ..." (golint)
    • Line 16: warning: exported const PP2_TYPE_AUTHORITY should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: comment on exported const PP2_TYPE_MIN_CUSTOM should be of the form "PP2_TYPE_MIN_CUSTOM ..." (golint)
    • Line 38: warning: exported var ErrTruncatedTLV should have comment or be unexported (golint)

gocyclo80%

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.


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


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!