Preparing report...

Report for github.com/frobnitzem/go-p9p

(v0.0.0-20230404021141-4b584564e9bf)

A    Great!    Found 15 issues across 26 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!


gofmt76%

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

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

gocyclo73%

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.

    • encoding.go
    • Line 88: warning: cyclomatic complexity 54 of function (*encoder).encode() is high (> 15) (gocyclo)
    • Line 239: warning: cyclomatic complexity 42 of function (*decoder).decode() is high (> 15) (gocyclo)
    • Line 410: warning: cyclomatic complexity 28 of function size9p() is high (> 15) (gocyclo)
    • fcall.go
    • Line 41: warning: cyclomatic complexity 29 of function (FcallType).String() is high (> 15) (gocyclo)
    • messages.go
    • Line 12: warning: cyclomatic complexity 28 of function newMessage() is high (> 15) (gocyclo)
    • dispatcher.go
    • Line 28: warning: cyclomatic complexity 23 of function Dispatch() is high (> 15) (gocyclo)
    • server.go
    • Line 71: warning: cyclomatic complexity 22 of function (*conn).serve() is high (> 15) (gocyclo)
    • transport.go
    • Line 129: warning: cyclomatic complexity 17 of function (*transport).handle() 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!


misspell88%

Misspell Finds commonly misspelled English words

    • types.go
    • Line 49: warning: "protocal" is a misspelling of "protocol" (misspell)
    • encoding.go
    • Line 216: warning: "preceeding" is a misspelling of "preceding" (misspell)
    • Line 386: warning: "preceeding" is a misspelling of "preceding" (misspell)
    • session.go
    • Line 14: warning: "preceeding" is a misspelling of "preceding" (misspell)