Preparing report...

Report for github.com/letsencrypt/challtestsrv

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


golint57%

Golint is a linter for Go source code.

    • challtestsrv/mockdns.go
    • Line 60: warning: comment on exported method ChallSrv.DeleteDNSCNAMERecord should be of the form "DeleteDNSCNAMERecord ..." (golint)
    • challtestsrv/tlsalpnone.go
    • Line 19: warning: comment on exported const ACMETLS1Protocol should be of the form "ACMETLS1Protocol ..." (golint)
    • Line 52: warning: exported method ChallSrv.ServeChallengeCertFunc should have comment or be unexported (golint)
    • challtestsrv/event.go
    • Line 14: warning: comment on exported const HTTPRequestEventType should be of the form "HTTPRequestEventType ..." (golint)
    • Line 16: warning: comment on exported const DNSRequestEventType should be of the form "DNSRequestEventType ..." (golint)
    • Line 18: warning: comment on exported const TLSALPNRequestEventType should be of the form "TLSALPNRequestEventType ..." (golint)
    • Line 43: warning: comment on exported method HTTPRequestEvent.Type should be of the form "Type ..." (golint)
    • Line 48: warning: comment on exported method HTTPRequestEvent.Key should be of the form "Key ..." (golint)
    • Line 64: warning: comment on exported method DNSRequestEvent.Type should be of the form "Type ..." (golint)
    • Line 69: warning: comment on exported method DNSRequestEvent.Key should be of the form "Key ..." (golint)
    • Line 88: warning: comment on exported method TLSALPNRequestEvent.Type should be of the form "Type ..." (golint)
    • Line 93: warning: comment on exported method TLSALPNRequestEvent.Key should be of the form "Key ..." (golint)

gocyclo100%

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.

No problems detected. Good job!


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!