Preparing report...

Report for github.com/ajstarks/svgo

(v0.0.0-20211024235047-1546f124cd8b)

B    Not bad!    Found 45 issues across 56 files

Tweet

gofmt30%

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

    • doc.go
    • Line 1: warning: file is not gofmted with -s (gofmt)

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!


gocyclo89%

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.

    • compx/compx.go
    • Line 371: warning: cyclomatic complexity 25 of function component() is high (> 15) (gocyclo)
    • Line 669: warning: cyclomatic complexity 18 of function compass() is high (> 15) (gocyclo)
    • pmap/pmap.go
    • Line 104: warning: cyclomatic complexity 22 of function pmap() is high (> 15) (gocyclo)

ineffassign92%

IneffAssign detects ineffectual assignments in Go code.

    • compx/compx.go
    • Line 318: warning: ineffectual assignment to xp (ineffassign)
    • Line 781: warning: ineffectual assignment to cx (ineffassign)
    • Line 781: warning: ineffectual assignment to cy (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell80%

Misspell Finds commonly misspelled English words

    • svg.go
    • Line 230: warning: "defintion" is a misspelling of "definition" (misspell)
    • Line 234: warning: "defintion" is a misspelling of "definition" (misspell)
    • float/svg.go
    • Line 241: warning: "defintion" is a misspelling of "definition" (misspell)
    • Line 245: warning: "defintion" is a misspelling of "definition" (misspell)