Preparing report...

Report for github.com/asticode/go-astits

A+    Excellent!    Found 9 issues across 40 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!


golint82%

Golint is a linter for Go source code.

    • go-astits/data_pmt.go
    • Line 9: warning: exported type StreamType should have comment or be unexported (golint)
    • Line 166: warning: exported method StreamType.IsVideo should have comment or be unexported (golint)
    • Line 181: warning: exported method StreamType.IsAudio should have comment or be unexported (golint)
    • Line 240: warning: exported method StreamType.ToPESStreamID should have comment or be unexported (golint)
    • go-astits/data_psi.go
    • Line 27: warning: exported type PSITableID should have comment or be unexported (golint)
    • Line 30: warning: exported const PSITableIDPAT should have comment (or a comment on this block) or be unexported (golint)
    • Line 256: warning: comment on exported method PSITableID.Type should be of the form "Type ..." (golint)
    • go-astits/descriptor.go
    • Line 1173: warning: exported type DescriptorUnknown should have comment or be unexported (golint)
    • Line 1203: warning: comment on exported type DescriptorVBIDataDescriptor should be of the form "DescriptorVBIDataDescriptor ..." (with optional leading article) (golint)
    • go-astits/dvb_test.go
    • Line 15: warning: var dvbDurationSeconds is of type time.Duration; don't use unit-specific suffix "Seconds" (golint)
    • go-astits/muxer.go
    • Line 19: warning: exported var ErrPIDNotFound should have comment or be unexported (golint)
    • Line 24: warning: exported type Muxer should have comment or be unexported (golint)
    • Line 60: warning: exported function MuxerOptTablesRetransmitPeriod should have comment or be unexported (golint)
    • Line 68: warning: exported function NewMuxer should have comment or be unexported (golint)
    • Line 105: warning: comment on exported method Muxer.AddElementaryStream should be of the form "AddElementaryStream ..." (golint)
    • Line 126: warning: exported method Muxer.RemoveElementaryStream should have comment or be unexported (golint)
    • Line 264: warning: comment on exported method Muxer.WritePacket should be of the form "WritePacket ..." (golint)
    • Line 285: warning: exported method Muxer.WriteTables should have comment or be unexported (golint)
    • go-astits/packet.go
    • Line 17: warning: exported const MpegTsPacketSize should have comment (or a comment on this block) or be unexported (golint)

gocyclo95%

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.


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!