Preparing report...

Report for github.com/grafov/m3u8

A+    Excellent!    Found 5 issues across 10 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!


golint90%

Golint is a linter for Go source code.

    • m3u8/structure.go
    • Line 46: warning: comment on exported const MASTER should be of the form "MASTER ..." (golint)
    • Line 48: warning: exported const MEDIA should have comment (or a comment on this block) or be unexported (golint)
    • Line 55: warning: comment on exported const EVENT should be of the form "EVENT ..." (golint)
    • Line 57: warning: exported const VOD should have comment (or a comment on this block) or be unexported (golint)
    • Line 68: warning: exported const SCTE35_OATCLS should have comment (or a comment on this block) or be unexported (golint)
    • Line 76: warning: don't use underscores in Go names; const SCTE35Cue_Start should be SCTE35CueStart (golint)
    • Line 76: warning: exported const SCTE35Cue_Start should have comment (or a comment on this block) or be unexported (golint)
    • Line 77: warning: don't use underscores in Go names; const SCTE35Cue_Mid should be SCTE35CueMid (golint)
    • Line 78: warning: don't use underscores in Go names; const SCTE35Cue_End should be SCTE35CueEnd (golint)

gocyclo60%

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.

    • m3u8/reader.go
    • Line 449: warning: cyclomatic complexity 154 of function decodeLineOfMediaPlaylist() is high (> 15) (gocyclo)
    • Line 270: warning: cyclomatic complexity 73 of function decodeLineOfMasterPlaylist() is high (> 15) (gocyclo)
    • Line 184: warning: cyclomatic complexity 20 of function decode() is high (> 15) (gocyclo)
    • m3u8/writer.go
    • Line 401: warning: cyclomatic complexity 65 of function (*MediaPlaylist).Encode() is high (> 15) (gocyclo)
    • Line 73: warning: cyclomatic complexity 42 of function (*MasterPlaylist).Encode() is high (> 15) (gocyclo)
    • m3u8/reader_test.go
    • Line 680: warning: cyclomatic complexity 18 of function TestDecodeMediaPlaylistWithCustomTags() 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!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!