Preparing report...

Report for github.com/pion/dtls/v3

(v3.0.1)

A+    Excellent!    Found 22 issues across 184 files

Tweet

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!


gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo88%

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.

    • conn.go
    • Line 790: warning: cyclomatic complexity 43 of function (*Conn).handleIncomingPacket() is high (> 15) (gocyclo)
    • Line 1024: warning: cyclomatic complexity 28 of function (*Conn).handshake() is high (> 15) (gocyclo)
    • Line 699: warning: cyclomatic complexity 16 of function (*Conn).readAndBuffer() is high (> 15) (gocyclo)
    • e2e/e2e_test.go
    • Line 129: warning: cyclomatic complexity 18 of function (*comm).assert() is high (> 15) (gocyclo)
    • handshaker.go
    • Line 274: warning: cyclomatic complexity 18 of function (*handshakeFSM).wait() is high (> 15) (gocyclo)
    • conn_test.go
    • Line 1008: warning: cyclomatic complexity 33 of function TestClientCertificate() is high (> 15) (gocyclo)
    • Line 2556: warning: cyclomatic complexity 29 of function TestALPNExtension() is high (> 15) (gocyclo)
    • Line 2040: warning: cyclomatic complexity 21 of function TestProtocolVersionValidation() is high (> 15) (gocyclo)
    • Line 2363: warning: cyclomatic complexity 17 of function TestRenegotationInfo() is high (> 15) (gocyclo)
    • conn_go_test.go
    • Line 24: warning: cyclomatic complexity 18 of function TestContextConfig() is high (> 15) (gocyclo)
    • cipher_suite.go
    • Line 197: warning: cyclomatic complexity 18 of function parseCipherSuites() is high (> 15) (gocyclo)
    • Line 117: warning: cyclomatic complexity 18 of function cipherSuiteForID() is high (> 15) (gocyclo)
    • flight4handler.go
    • Line 23: warning: cyclomatic complexity 49 of function flight4Parse() is high (> 15) (gocyclo)
    • Line 229: warning: cyclomatic complexity 23 of function flight4Generate() is high (> 15) (gocyclo)
    • resume_test.go
    • Line 39: warning: cyclomatic complexity 19 of function DoTestResume() is high (> 15) (gocyclo)
    • handshake_cache.go
    • Line 75: warning: cyclomatic complexity 16 of function (*handshakeCache).fullPullMap() is high (> 15) (gocyclo)
    • flight5handler.go
    • Line 68: warning: cyclomatic complexity 27 of function flight5Generate() is high (> 15) (gocyclo)
    • Line 289: warning: cyclomatic complexity 20 of function initializeCipherSuite() is high (> 15) (gocyclo)

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!