Preparing report...

Report for github.com/pixelbender/go-matroska

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


gocyclo83%

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.


golint50%

Golint is a linter for Go source code.

    • go-matroska/ebml/decoder.go
    • Line 17: warning: exported type DecodeOptions should have comment or be unexported (golint)
    • Line 22: warning: exported function NewReader should have comment or be unexported (golint)
    • Line 35: warning: exported function NewReaderBytes should have comment or be unexported (golint)
    • Line 45: warning: exported type Reader should have comment or be unexported (golint)
    • Line 118: warning: comment on exported method Reader.ReadInt should be of the form "ReadInt ..." (golint)
    • Line 134: warning: comment on exported method Reader.ReadBool should be of the form "ReadBool ..." (golint)
    • Line 166: warning: exported method Reader.Next should have comment or be unexported (golint)
    • Line 232: warning: exported method Reader.ReadVInt should have comment or be unexported (golint)
    • go-matroska/matroska/matroska.go
    • Line 10: warning: exported function Decode should have comment or be unexported (golint)
    • Line 32: warning: exported function NewFile should have comment or be unexported (golint)
    • Line 59: warning: exported type Position should have comment or be unexported (golint)
    • Line 60: warning: exported type Time should have comment or be unexported (golint)
    • Line 61: warning: exported type Duration should have comment or be unexported (golint)
    • Line 111: warning: exported type TranslateID should have comment or be unexported (golint)
    • Line 112: warning: exported type ChapterCodec should have comment or be unexported (golint)
    • Line 115: warning: exported const ChapterCodecMatroska should have comment (or a comment on this block) or be unexported (golint)
    • Line 129: warning: exported type ClusterID should have comment or be unexported (golint)
    • Line 141: warning: exported const LacingNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 147: warning: exported method Block.UnmarshalEBML should have comment or be unexported (golint)
    • Line 188: warning: exported type TimeSlice should have comment or be unexported (golint)
    • Line 192: warning: comment on exported type BlockAddition should be of the form "BlockAddition ..." (with optional leading article) (golint)
    • Line 198: warning: exported type BlockAdditionID should have comment or be unexported (golint)
    • Line 236: warning: exported type TrackID should have comment or be unexported (golint)
    • Line 237: warning: exported type TrackNumber should have comment or be unexported (golint)
    • Line 238: warning: exported type AttachmentID should have comment or be unexported (golint)
    • Line 239: warning: exported type TrackType should have comment or be unexported (golint)
    • Line 242: warning: exported const TrackTypeVideo should have comment (or a comment on this block) or be unexported (golint)
    • Line 258: warning: exported type TranslateTrackID should have comment or be unexported (golint)
    • Line 280: warning: exported type InterlaceType should have comment or be unexported (golint)
    • Line 288: warning: exported type FieldOrder should have comment or be unexported (golint)
    • Line 300: warning: exported type StereoMode should have comment or be unexported (golint)
    • Line 320: warning: exported type AlphaMode should have comment or be unexported (golint)
    • Line 323: warning: exported type DisplayUnit should have comment or be unexported (golint)
    • Line 333: warning: exported type AspectRatioType should have comment or be unexported (golint)
    • Line 360: warning: comment on exported type MatrixCoefficients should be of the form "MatrixCoefficients ..." (with optional leading article) (golint)
    • Line 363: warning: comment on exported type TransferCharacteristics should be of the form "TransferCharacteristics ..." (with optional leading article) (golint)
    • Line 366: warning: comment on exported type Primaries should be of the form "Primaries ..." (with optional leading article) (golint)
    • Line 369: warning: exported type ChromaSiting should have comment or be unexported (golint)
    • Line 378: warning: exported type ColourRange should have comment or be unexported (golint)
    • Line 423: warning: exported type PlaneType should have comment or be unexported (golint)
    • Line 442: warning: exported type EncodingScope should have comment or be unexported (golint)
    • Line 451: warning: exported type EncodingType should have comment or be unexported (golint)
    • Line 454: warning: exported const EncodingTypeCompression should have comment (or a comment on this block) or be unexported (golint)
    • Line 464: warning: exported type CompressionAlgo should have comment or be unexported (golint)
    • Line 467: warning: exported const CompressionAlgoZlib should have comment (or a comment on this block) or be unexported (golint)
    • Line 532: warning: exported type ChapterID should have comment or be unexported (golint)
    • Line 579: warning: exported function NewSimpleTag 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!


misspell83%

Misspell Finds commonly misspelled English words