Preparing report...

Report for codeberg.org/go-pdf/fpdf

(v0.10.0)

A+    Excellent!    Found 10 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!


gofmt96%

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


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.

    • 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)
    • 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 2547: warning: cyclomatic complexity 48 of function (*Fpdf).CellFormat() is high (> 15) (gocyclo)
    • Line 2834: warning: cyclomatic complexity 44 of function (*Fpdf).MultiCell() is high (> 15) (gocyclo)
    • Line 4223: warning: cyclomatic complexity 27 of function (*Fpdf).putfonts() is high (> 15) (gocyclo)
    • Line 4447: warning: cyclomatic complexity 21 of function (*Fpdf).generateCIDFontMap() is high (> 15) (gocyclo)
    • Line 731: warning: cyclomatic complexity 21 of function (*Fpdf).AddPageFormat() is high (> 15) (gocyclo)
    • Line 3026: warning: cyclomatic complexity 19 of function (*Fpdf).write() is high (> 15) (gocyclo)
    • Line 3246: warning: cyclomatic complexity 19 of function (*Fpdf).imageOut() is high (> 15) (gocyclo)
    • Line 2265: 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)

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!


misspell98%

Misspell Finds commonly misspelled English words