Preparing report...

Report for github.aichem.org/xtaci/kcp-go

(v4.3.4+incompatible)

A    Great!    Found 6 issues across 11 files

Tweet

gofmt81%

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!


gocyclo63%

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.

    • kcp.go
    • Line 631: warning: cyclomatic complexity 43 of function (*KCP).flush() is high (> 15) (gocyclo)
    • Line 493: warning: cyclomatic complexity 32 of function (*KCP).Input() is high (> 15) (gocyclo)
    • fec.go
    • Line 82: warning: cyclomatic complexity 24 of function (*fecDecoder).decode() is high (> 15) (gocyclo)
    • sess.go
    • Line 544: warning: cyclomatic complexity 22 of function (*UDPSession).kcpInput() is high (> 15) (gocyclo)
    • kcp_test.go
    • Line 130: warning: cyclomatic complexity 18 of function test() is high (> 15) (gocyclo)

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!


misspell81%

Misspell Finds commonly misspelled English words

    • sess.go
    • Line 198: warning: "sufficent" is a misspelling of "sufficient" (misspell)
    • Line 255: warning: "exhuasting" is a misspelling of "exhausting" (misspell)
    • Line 929: warning: "elasped" is a misspelling of "elapsed" (misspell)
    • snmp.go
    • Line 28: warning: "infered" is a misspelling of "inferred" (misspell)