Preparing report...

Report for github.com/doodocs/gofpdf

(v0.0.0-20230809064823-11acc45668ad)

A+    Excellent!    Found 11 issues across 43 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!


gofmt88%

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


gocyclo81%

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.

    • grid.go
    • Line 296: warning: cyclomatic complexity 20 of function (GridType).Grid() is high (> 15) (gocyclo)
    • ttfparser.go
    • Line 181: warning: cyclomatic complexity 19 of function (*ttfParser).ParseCmap() is high (> 15) (gocyclo)
    • 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 2312: warning: cyclomatic complexity 47 of function (*Fpdf).CellFormat() is high (> 15) (gocyclo)
    • Line 2598: warning: cyclomatic complexity 44 of function (*Fpdf).MultiCell() is high (> 15) (gocyclo)
    • Line 3970: warning: cyclomatic complexity 27 of function (*Fpdf).putfonts() is high (> 15) (gocyclo)
    • Line 719: warning: cyclomatic complexity 21 of function (*Fpdf).AddPageFormat() is high (> 15) (gocyclo)
    • Line 4191: warning: cyclomatic complexity 21 of function (*Fpdf).generateCIDFontMap() is high (> 15) (gocyclo)
    • Line 2788: warning: cyclomatic complexity 19 of function (*Fpdf).write() is high (> 15) (gocyclo)
    • Line 3008: warning: cyclomatic complexity 19 of function (*Fpdf).imageOut() is high (> 15) (gocyclo)
    • Line 2031: warning: cyclomatic complexity 17 of function (*Fpdf).SetFont() is high (> 15) (gocyclo)
    • font.go
    • Line 171: warning: cyclomatic complexity 35 of function getInfoFromType1() is high (> 15) (gocyclo)
    • png.go
    • Line 41: warning: cyclomatic complexity 31 of function (*Fpdf).parsepngstream() is high (> 15) (gocyclo)
    • htmlbasic.go
    • Line 125: warning: cyclomatic complexity 28 of function (*HTMLBasicType).Write() is high (> 15) (gocyclo)
    • svgbasic.go
    • Line 113: warning: cyclomatic complexity 24 of function pathParse() is high (> 15) (gocyclo)
    • Line 47: warning: cyclomatic complexity 17 of function absolutizePath() 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!