Preparing report...

Report for github.com/phpdave11/gofpdf

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


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.

    • gofpdf/svgbasic.go
    • Line 113: warning: cyclomatic complexity 25 of function pathParse() is high (> 15) (gocyclo)
    • Line 47: warning: cyclomatic complexity 17 of function absolutizePath() is high (> 15) (gocyclo)
    • gofpdf/grid.go
    • Line 296: warning: cyclomatic complexity 20 of function (GridType).Grid() is high (> 15) (gocyclo)
    • gofpdf/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)
    • gofpdf/fpdf.go
    • Line 2312: warning: cyclomatic complexity 49 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 28 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 3008: warning: cyclomatic complexity 19 of function (*Fpdf).imageOut() is high (> 15) (gocyclo)
    • Line 2788: warning: cyclomatic complexity 19 of function (*Fpdf).write() is high (> 15) (gocyclo)
    • Line 60: warning: cyclomatic complexity 17 of function fpdfNew() is high (> 15) (gocyclo)
    • Line 2031: warning: cyclomatic complexity 17 of function (*Fpdf).SetFont() is high (> 15) (gocyclo)
    • gofpdf/font.go
    • Line 171: warning: cyclomatic complexity 35 of function getInfoFromType1() is high (> 15) (gocyclo)
    • Line 406: warning: cyclomatic complexity 16 of function MakeFont() is high (> 15) (gocyclo)
    • gofpdf/png.go
    • Line 41: warning: cyclomatic complexity 34 of function (*Fpdf).parsepngstream() is high (> 15) (gocyclo)

golint100%

Golint is a linter for Go source code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.

    • gofpdf/contrib/gofpdi/gofpdi.go
    • Line 12: warning: missing go.sum entry for module providing package github.com/phpdave11/gofpdi (imported by github.com/phpdave11/gofpdf/contrib/gofpdi); to add: (ineffassign)
    • Line 12: warning: could not import github.com/phpdave11/gofpdi (invalid package name: "") (ineffassign)
    • Line 12: warning: could not import github.com/phpdave11/gofpdi (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!