Preparing report...

Report for github.com/go-pdf/fpdf

(v0.9.0)

A+    Excellent!    Found 8 issues across 50 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!


gocyclo84%

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.

    • utf8fontfile.go
    • Line 834: warning: cyclomatic complexity 18 of function (*utf8FontFile).parseHMTXTable() is high (> 15) (gocyclo)
    • Line 639: warning: cyclomatic complexity 17 of function (*utf8FontFile).GenerateCutFont() is high (> 15) (gocyclo)
    • fpdf.go
    • Line 2544: warning: cyclomatic complexity 48 of function (*Fpdf).CellFormat() is high (> 15) (gocyclo)
    • Line 2831: warning: cyclomatic complexity 44 of function (*Fpdf).MultiCell() is high (> 15) (gocyclo)
    • Line 4220: warning: cyclomatic complexity 27 of function (*Fpdf).putfonts() is high (> 15) (gocyclo)
    • Line 4444: warning: cyclomatic complexity 21 of function (*Fpdf).generateCIDFontMap() is high (> 15) (gocyclo)
    • Line 730: warning: cyclomatic complexity 21 of function (*Fpdf).AddPageFormat() is high (> 15) (gocyclo)
    • Line 3243: warning: cyclomatic complexity 19 of function (*Fpdf).imageOut() is high (> 15) (gocyclo)
    • Line 3023: warning: cyclomatic complexity 19 of function (*Fpdf).write() is high (> 15) (gocyclo)
    • Line 2263: warning: cyclomatic complexity 17 of function (*Fpdf).SetFont() is high (> 15) (gocyclo)
    • font.go
    • Line 174: warning: cyclomatic complexity 35 of function getInfoFromType1() is high (> 15) (gocyclo)
    • png.go
    • Line 44: warning: cyclomatic complexity 32 of function (*Fpdf).parsepngstream() is high (> 15) (gocyclo)
    • htmlbasic.go
    • Line 127: warning: cyclomatic complexity 28 of function (*HTMLBasicType).Write() is high (> 15) (gocyclo)
    • svgbasic.go
    • Line 117: warning: cyclomatic complexity 24 of function pathParse() is high (> 15) (gocyclo)
    • Line 51: warning: cyclomatic complexity 17 of function absolutizePath() is high (> 15) (gocyclo)
    • ttfparser.go
    • Line 186: warning: cyclomatic complexity 21 of function (*ttfParser).ParseCmap() is high (> 15) (gocyclo)
    • grid.go
    • Line 297: warning: cyclomatic complexity 20 of function (GridType).Grid() is high (> 15) (gocyclo)

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!