Preparing report...

Report for github.com/bogem/id3v2

A+    Excellent!    Found 14 issues across 32 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo96%

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.

    • id3v2/parse.go
    • Line 61: warning: cyclomatic complexity 16 of function (*Tag).parseFrames() is high (> 15) (gocyclo)

golint56%

Golint is a linter for Go source code.

    • id3v2/framer.go
    • Line 12: warning: exported var ErrInvalidLanguageLength should have comment or be unexported (golint)
    • id3v2/picture_frame.go
    • Line 24: warning: exported method PictureFrame.UniqueIdentifier should have comment or be unexported (golint)
    • Line 28: warning: exported method PictureFrame.Size should have comment or be unexported (golint)
    • Line 33: warning: exported method PictureFrame.WriteTo should have comment or be unexported (golint)
    • id3v2/ufid_frame.go
    • Line 11: warning: exported method UFIDFrame.UniqueIdentifier should have comment or be unexported (golint)
    • Line 15: warning: exported method UFIDFrame.Size should have comment or be unexported (golint)
    • Line 19: warning: exported method UFIDFrame.WriteTo should have comment or be unexported (golint)
    • id3v2/user_defined_text_frame.go
    • Line 13: warning: exported method UserDefinedTextFrame.Size should have comment or be unexported (golint)
    • Line 17: warning: exported method UserDefinedTextFrame.UniqueIdentifier should have comment or be unexported (golint)
    • Line 21: warning: exported method UserDefinedTextFrame.WriteTo should have comment or be unexported (golint)
    • id3v2/comment_frame.go
    • Line 22: warning: exported method CommentFrame.Size should have comment or be unexported (golint)
    • Line 27: warning: exported method CommentFrame.UniqueIdentifier should have comment or be unexported (golint)
    • Line 31: warning: exported method CommentFrame.WriteTo should have comment or be unexported (golint)
    • id3v2/header.go
    • Line 20: warning: exported var ErrSmallHeaderSize should have comment or be unexported (golint)
    • id3v2/parse.go
    • Line 15: warning: exported var ErrUnsupportedVersion should have comment or be unexported (golint)
    • id3v2/popularimeter_frame.go
    • Line 21: warning: exported method PopularimeterFrame.UniqueIdentifier should have comment or be unexported (golint)
    • Line 25: warning: exported method PopularimeterFrame.Size should have comment or be unexported (golint)
    • Line 44: warning: exported method PopularimeterFrame.WriteTo should have comment or be unexported (golint)
    • id3v2/size.go
    • Line 22: warning: exported var ErrInvalidSizeFormat should have comment or be unexported (golint)
    • Line 23: warning: exported var ErrSizeOverflow should have comment or be unexported (golint)
    • id3v2/tag.go
    • Line 13: warning: exported var ErrNoFile should have comment or be unexported (golint)
    • Line 220: warning: exported method Tag.Title should have comment or be unexported (golint)
    • Line 224: warning: exported method Tag.SetTitle should have comment or be unexported (golint)
    • Line 228: warning: exported method Tag.Artist should have comment or be unexported (golint)
    • Line 232: warning: exported method Tag.SetArtist should have comment or be unexported (golint)
    • Line 236: warning: exported method Tag.Album should have comment or be unexported (golint)
    • Line 240: warning: exported method Tag.SetAlbum should have comment or be unexported (golint)
    • Line 244: warning: exported method Tag.Year should have comment or be unexported (golint)
    • Line 248: warning: exported method Tag.SetYear should have comment or be unexported (golint)
    • Line 252: warning: exported method Tag.Genre should have comment or be unexported (golint)
    • Line 256: warning: exported method Tag.SetGenre should have comment or be unexported (golint)
    • id3v2/text_frame.go
    • Line 16: warning: exported method TextFrame.Size should have comment or be unexported (golint)
    • Line 20: warning: exported method TextFrame.UniqueIdentifier should have comment or be unexported (golint)
    • Line 24: warning: exported method TextFrame.WriteTo should have comment or be unexported (golint)
    • id3v2/unknown_frame.go
    • Line 24: warning: exported method UnknownFrame.UniqueIdentifier should have comment or be unexported (golint)
    • Line 29: warning: exported method UnknownFrame.Size should have comment or be unexported (golint)
    • Line 33: warning: exported method UnknownFrame.WriteTo should have comment or be unexported (golint)
    • id3v2/unsynchronised_lyrics_frame.go
    • Line 22: warning: exported method UnsynchronisedLyricsFrame.Size should have comment or be unexported (golint)
    • Line 27: warning: exported method UnsynchronisedLyricsFrame.UniqueIdentifier should have comment or be unexported (golint)
    • Line 31: warning: exported method UnsynchronisedLyricsFrame.WriteTo should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!