Preparing report...

Report for github.com/flowdev/spaghetti-analyzer

(v0.0.0-20211205200008-778f37c46338)

A+    Excellent!    Found 6 issues across 26 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!


gocyclo88%

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.

    • data/data.go
    • Line 126: warning: cyclomatic complexity 29 of function RegexpForPattern() is high (> 15) (gocyclo)
    • size/expr.go
    • Line 9: warning: cyclomatic complexity 24 of function sizeOfExpr() is high (> 15) (gocyclo)
    • size/stmt.go
    • Line 8: warning: cyclomatic complexity 23 of function sizeOfStmt() is high (> 15) (gocyclo)

golint88%

Golint is a linter for Go source code.

    • x/pkgs/pkgs.go
    • Line 20: warning: exported const PkgTypeStandard should have comment (or a comment on this block) or be unexported (golint)
    • Line 28: warning: exported type PackageInfo should have comment or be unexported (golint)
    • data/data.go
    • Line 41: warning: exported type EnumDollar should have comment or be unexported (golint)
    • Line 114: warning: exported function PkgForPattern should have comment or be unexported (golint)
    • Line 126: warning: exported function RegexpForPattern should have comment or be unexported (golint)
    • tree/tree.go
    • Line 18: warning: exported const File should have comment (or a comment on this block) or be unexported (golint)
    • Line 32: warning: exported function Generate should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign96%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!