Preparing report...

Report for github.com/webnice/web

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


gocyclo97%

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.

    • web/utilities.go
    • Line 12: warning: cyclomatic complexity 17 of function defaultConfiguration() is high (> 15) (gocyclo)

golint89%

Golint is a linter for Go source code.

    • web/proxyp/tlv.go
    • Line 12: warning: comment on exported const PP2_TYPE_ALPN should be of the form "PP2_TYPE_ALPN ..." (golint)
    • Line 14: warning: exported const PP2_TYPE_AUTHORITY should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: comment on exported const PP2_TYPE_MIN_CUSTOM should be of the form "PP2_TYPE_MIN_CUSTOM ..." (golint)
    • Line 35: warning: exported var ErrTruncatedTLV should have comment or be unexported (golint)
    • web/proxyp/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)
    • web/proxyp/v1.go
    • Line 12: warning: exported const CRLF should have comment (or a comment on this block) or be unexported (golint)
    • web/proxyp/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)
    • web/proxyp/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 79: warning: comment on exported function IsSSL should be of the form "IsSSL ..." (golint)
    • Line 133: warning: comment on exported function FindSSL should be of the form "FindSSL ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!