Preparing report...

Report for github.com/Comcast/gots

(v0.0.0-20220929193704-08d58ff3e32f)

A+    Excellent!    Found 14 issues across 57 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!


gofmt96%

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


gocyclo77%

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.

    • scte35/scte35.go
    • Line 233: warning: cyclomatic complexity 21 of function (*scte35).String() is high (> 15) (gocyclo)
    • Line 76: warning: cyclomatic complexity 17 of function (*scte35).parseTable() is high (> 15) (gocyclo)
    • psi/pmt.go
    • Line 284: warning: cyclomatic complexity 17 of function FilterPMTPacketsToPids() is high (> 15) (gocyclo)
    • scte35/state_test.go
    • Line 1208: warning: cyclomatic complexity 25 of function Test22ClosingLogic_30_34_36_44_22() is high (> 15) (gocyclo)
    • Line 451: warning: cyclomatic complexity 21 of function TestOutInInOutIn() is high (> 15) (gocyclo)
    • Line 360: warning: cyclomatic complexity 21 of function TestSubsegments() is high (> 15) (gocyclo)
    • Line 862: warning: cyclomatic complexity 21 of function Test11Closing34_36_40_44() is high (> 15) (gocyclo)
    • Line 1074: warning: cyclomatic complexity 21 of function Test23ClosingLogic_30_34_36_44() is high (> 15) (gocyclo)
    • Line 1516: warning: cyclomatic complexity 21 of function Test20ClosingLogic_20_30_34_36() is high (> 15) (gocyclo)
    • Line 669: warning: cyclomatic complexity 18 of function TestOutInInOutIn36_37_10_37_37() is high (> 15) (gocyclo)
    • Line 1400: warning: cyclomatic complexity 17 of function Test21ClosingLogic_30_34_36() is high (> 15) (gocyclo)
    • Line 747: warning: cyclomatic complexity 17 of function Test11ClosingLogic() is high (> 15) (gocyclo)
    • Line 590: warning: cyclomatic complexity 16 of function TestVSSSameSignalIdBackToBack() is high (> 15) (gocyclo)
    • Line 195: warning: cyclomatic complexity 16 of function TestOutInIn() is high (> 15) (gocyclo)
    • psi/pmt_test.go
    • Line 792: warning: cyclomatic complexity 21 of function TestIsDolbyATMOS() is high (> 15) (gocyclo)
    • scte35/segmentationdescriptor.go
    • Line 452: warning: cyclomatic complexity 17 of function (*segmentationDescriptor).Equal() is high (> 15) (gocyclo)
    • Line 402: warning: cyclomatic complexity 16 of function (*segmentationDescriptor).CanClose() is high (> 15) (gocyclo)
    • psi/pmtdescriptor.go
    • Line 272: warning: cyclomatic complexity 16 of function (*pmtDescriptor).IsDolbyATMOS() is high (> 15) (gocyclo)
    • Line 125: warning: cyclomatic complexity 16 of function (*pmtDescriptor).decode() is high (> 15) (gocyclo)
    • scte35/state.go
    • Line 62: warning: cyclomatic complexity 30 of function (*state).ProcessDescriptor() is high (> 15) (gocyclo)

ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words

    • pts.go
    • Line 71: warning: "reciever" is a misspelling of "receiver" (misspell)