Preparing report...

Report for github.com/asticode/go-astisub

(v0.34.0)

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


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.

    • ssa_test.go
    • Line 18: warning: cyclomatic complexity 18 of function assertSSAStyleAttributes() is high (> 15) (gocyclo)
    • ssa.go
    • Line 736: warning: cyclomatic complexity 36 of function (ssaStyle).string() is high (> 15) (gocyclo)
    • Line 526: warning: cyclomatic complexity 36 of function newSSAStyleFromString() is high (> 15) (gocyclo)
    • Line 133: warning: cyclomatic complexity 30 of function ReadFromSSAWithOptions() is high (> 15) (gocyclo)
    • Line 662: warning: cyclomatic complexity 24 of function (ssaStyle).updateFormat() is high (> 15) (gocyclo)
    • Line 938: warning: cyclomatic complexity 22 of function newSSAEventFromString() is high (> 15) (gocyclo)
    • Line 1102: warning: cyclomatic complexity 20 of function (*ssaEvent).string() is high (> 15) (gocyclo)
    • Line 341: warning: cyclomatic complexity 19 of function (*ssaScriptInfo).parse() is high (> 15) (gocyclo)
    • Line 413: warning: cyclomatic complexity 17 of function (*ssaScriptInfo).bytes() is high (> 15) (gocyclo)
    • stl.go
    • Line 417: warning: cyclomatic complexity 26 of function parseGSIBlock() is high (> 15) (gocyclo)
    • srt.go
    • Line 133: warning: cyclomatic complexity 21 of function parseTextSrt() is high (> 15) (gocyclo)
    • Line 35: warning: cyclomatic complexity 18 of function ReadFromSRT() is high (> 15) (gocyclo)
    • Line 265: warning: cyclomatic complexity 16 of function (LineItem).srtBytes() is high (> 15) (gocyclo)
    • webvtt.go
    • Line 460: warning: cyclomatic complexity 57 of function (Subtitles).WriteToWebVTT() is high (> 15) (gocyclo)
    • Line 117: warning: cyclomatic complexity 47 of function ReadFromWebVTT() is high (> 15) (gocyclo)
    • Line 645: warning: cyclomatic complexity 18 of function (LineItem).webVTTBytes() is high (> 15) (gocyclo)
    • teletext.go
    • Line 858: warning: cyclomatic complexity 42 of function parseTeletextRow() is high (> 15) (gocyclo)
    • Line 604: warning: cyclomatic complexity 19 of function (*teletextPageBuffer).parsePacketHeader() is high (> 15) (gocyclo)
    • Line 578: warning: cyclomatic complexity 17 of function (*teletextPageBuffer).parsePacket() is high (> 15) (gocyclo)
    • ttml.go
    • Line 336: warning: cyclomatic complexity 22 of function ReadFromTTML() is high (> 15) (gocyclo)
    • Line 623: warning: cyclomatic complexity 21 of function (Subtitles).WriteToTTML() is high (> 15) (gocyclo)

ineffassign95%

IneffAssign detects ineffectual assignments in Go code.

    • stl.go
    • Line 588: warning: ineffectual assignment to hours (ineffassign)
    • Line 595: warning: ineffectual assignment to minutes (ineffassign)
    • Line 602: warning: ineffectual assignment to seconds (ineffassign)
    • Line 609: warning: ineffectual assignment to frames (ineffassign)
    • Line 588: warning: ineffectual assignment to hours (ineffassign)
    • Line 595: warning: ineffectual assignment to minutes (ineffassign)
    • Line 602: warning: ineffectual assignment to seconds (ineffassign)
    • Line 609: warning: ineffectual assignment to frames (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell95%

Misspell Finds commonly misspelled English words