Preparing report...

Report for github.com/esrrhs/gohome

(v0.0.0-20230222132228-8bb1d3e2ecc4)

A    Great!    Found 48 issues across 131 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!


gofmt74%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo90%

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/ricmpconn.go
    • Line 569: warning: cyclomatic complexity 26 of function (*RicmpConn).update_ricmp() is high (> 15) (gocyclo)
    • Line 263: warning: cyclomatic complexity 17 of function (*RicmpConn).Dial() is high (> 15) (gocyclo)
    • frame/framemgr.go
    • Line 162: warning: cyclomatic complexity 23 of function (*FrameMgr).cutSendBufferToWindow() is high (> 15) (gocyclo)
    • Line 340: warning: cyclomatic complexity 23 of function (*FrameMgr).processRecvList() is high (> 15) (gocyclo)
    • Line 520: warning: cyclomatic complexity 17 of function (*FrameMgr).combineWindowToRecvBuffer() is high (> 15) (gocyclo)
    • conn/rudpconn.go
    • Line 565: warning: cyclomatic complexity 23 of function (*RudpConn).update_rudp() is high (> 15) (gocyclo)
    • conn/rhttpconn.go
    • Line 482: warning: cyclomatic complexity 19 of function (*RhttpConn).ServeHTTP() is high (> 15) (gocyclo)
    • Line 324: warning: cyclomatic complexity 18 of function (*RhttpConn).updateDialerSonny() is high (> 15) (gocyclo)
    • fastwalk/fastwalk_unix.go
    • Line 78: warning: cyclomatic complexity 16 of function parseDirEnt() is high (> 15) (gocyclo)
    • Line 23: warning: cyclomatic complexity 16 of function readDir() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words

    • congestion/bbcongestion.go
    • Line 63: warning: "currate" is a misspelling of "curate" (misspell)
    • Line 64: warning: "currate" is a misspelling of "curate" (misspell)
    • Line 65: warning: "currate" is a misspelling of "curate" (misspell)
    • Line 71: warning: "currate" is a misspelling of "curate" (misspell)