Preparing report...

Report for github.com/fluidpulse/midi

(v0.0.0-20250317181905-eed5b3100f46)

A+    Excellent!    Found 11 issues across 32 files

Tweet

gofmt81%

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)

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!


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.

    • decoder_event.go
    • Line 10: warning: cyclomatic complexity 34 of function (*Decoder).parseEvent() is high (> 15) (gocyclo)
    • Line 225: warning: cyclomatic complexity 25 of function (*Decoder).parseMetaMsg() is high (> 15) (gocyclo)
    • event.go
    • Line 272: warning: cyclomatic complexity 31 of function (*Event).Encode() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.

    • decoder_event.go
    • Line 32: warning: ineffectual assignment to readBytes (ineffassign)
    • Line 32: warning: ineffectual assignment to readBytes (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell87%

Misspell Finds commonly misspelled English words

    • decoder.go
    • Line 45: warning: "frome" is a misspelling of "from" (misspell)
    • Line 51: warning: "milisecond" is a misspelling of "millisecond" (misspell)
    • Line 68: warning: "interchangable" is a misspelling of "interchangeable" (misspell)
    • Line 155: warning: "frome" is a misspelling of "from" (misspell)
    • Line 161: warning: "milisecond" is a misspelling of "millisecond" (misspell)
    • encoder.go
    • Line 11: warning: "Syncronous" is a misspelling of "Synchronous" (misspell)
    • Line 12: warning: "Asyncronous" is a misspelling of "Asynchronous" (misspell)
    • Line 25: warning: "interchangable" is a misspelling of "interchangeable" (misspell)
    • note.go
    • Line 14: warning: "refering" is a misspelling of "referring" (misspell)