Preparing report...

Report for github.com/Eyevinn/mp4ff

(v0.48.0)

A+    Excellent!    Found 28 issues across 328 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!


gofmt100%

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

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo91%

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.

    • mp4/file.go
    • Line 582: warning: cyclomatic complexity 29 of function (*File).CopySampleData() is high (> 15) (gocyclo)
    • Line 149: warning: cyclomatic complexity 26 of function DecodeFile() is high (> 15) (gocyclo)
    • Line 424: warning: cyclomatic complexity 18 of function (*File).Encode() is high (> 15) (gocyclo)
    • Line 251: warning: cyclomatic complexity 17 of function (*File).AddChild() is high (> 15) (gocyclo)
    • Line 481: warning: cyclomatic complexity 16 of function (*File).EncodeSW() is high (> 15) (gocyclo)
    • avc/annexb.go
    • Line 101: warning: cyclomatic complexity 22 of function getStartCodePositions() is high (> 15) (gocyclo)
    • cmd/mp4ff-encrypt/main.go
    • Line 139: warning: cyclomatic complexity 21 of function encryptFile() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 16 of function run() is high (> 15) (gocyclo)
    • mp4/crypto.go
    • Line 450: warning: cyclomatic complexity 19 of function EncryptFragment() is high (> 15) (gocyclo)
    • sei/sei.go
    • Line 233: warning: cyclomatic complexity 106 of function (SEIType).String() is high (> 15) (gocyclo)
    • avc/slice.go
    • Line 129: warning: cyclomatic complexity 75 of function ParseSliceHeader() is high (> 15) (gocyclo)
    • hevc/slice.go
    • Line 111: warning: cyclomatic complexity 78 of function ParseSliceHeader() is high (> 15) (gocyclo)
    • Line 414: warning: cyclomatic complexity 18 of function parsePredWeightTable() is high (> 15) (gocyclo)
    • avc/pps.go
    • Line 49: warning: cyclomatic complexity 25 of function ParsePPSNALUnit() is high (> 15) (gocyclo)
    • cmd/mp4ff-nallister/main.go
    • Line 72: warning: cyclomatic complexity 21 of function run() is high (> 15) (gocyclo)
    • Line 159: warning: cyclomatic complexity 20 of function parseProgressiveMp4() is high (> 15) (gocyclo)
    • Line 405: warning: cyclomatic complexity 17 of function printSEINALus() is high (> 15) (gocyclo)
    • Line 257: warning: cyclomatic complexity 16 of function parseFragmentedMp4() is high (> 15) (gocyclo)
    • mp4/boxsr.go
    • Line 206: warning: cyclomatic complexity 21 of function DecodeFileSR() is high (> 15) (gocyclo)
    • mp4/stbl.go
    • Line 42: warning: cyclomatic complexity 17 of function (*StblBox).AddChild() is high (> 15) (gocyclo)
    • mp4/trun.go
    • Line 30: warning: cyclomatic complexity 17 of function DecodeTrun() is high (> 15) (gocyclo)
    • Line 87: warning: cyclomatic complexity 16 of function DecodeTrunSR() is high (> 15) (gocyclo)
    • hevc/pps.go
    • Line 179: warning: cyclomatic complexity 29 of function ParsePPSNALUnit() is high (> 15) (gocyclo)
    • avc/sps.go
    • Line 115: warning: cyclomatic complexity 21 of function ParseSPSNALUnit() is high (> 15) (gocyclo)
    • mp4/traf.go
    • Line 184: warning: cyclomatic complexity 21 of function (*TrafBox).OptimizeTfhdTrun() is high (> 15) (gocyclo)
    • mp4/tfra.go
    • Line 147: warning: cyclomatic complexity 16 of function (*TfraBox).EncodeSW() is high (> 15) (gocyclo)
    • Line 42: warning: cyclomatic complexity 16 of function DecodeTfraSR() is high (> 15) (gocyclo)
    • hevc/sps.go
    • Line 308: warning: cyclomatic complexity 30 of function ParseSPSNALUnit() is high (> 15) (gocyclo)

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!