Preparing report...

Report for github.com/tidwall/pinhole

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


gocyclo85%

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.

    • pinhole/pinhole.go
    • Line 512: warning: cyclomatic complexity 18 of function (*Pinhole).LoadObj() is high (> 15) (gocyclo)
    • Line 325: warning: cyclomatic complexity 18 of function (*Pinhole).Image() is high (> 15) (gocyclo)

golint85%

Golint is a linter for Go source code.

    • pinhole/pinhole.go
    • Line 76: warning: exported type Pinhole should have comment or be unexported (golint)
    • Line 81: warning: exported function New should have comment or be unexported (golint)
    • Line 84: warning: exported method Pinhole.Begin should have comment or be unexported (golint)
    • Line 87: warning: exported method Pinhole.End should have comment or be unexported (golint)
    • Line 92: warning: exported method Pinhole.Rotate should have comment or be unexported (golint)
    • Line 115: warning: exported method Pinhole.Translate should have comment or be unexported (golint)
    • Line 130: warning: exported method Pinhole.Scale should have comment or be unexported (golint)
    • Line 148: warning: exported method Pinhole.Colorize should have comment or be unexported (golint)
    • Line 157: warning: exported method Pinhole.Center should have comment or be unexported (golint)
    • Line 208: warning: exported method Pinhole.DrawString should have comment or be unexported (golint)
    • Line 215: warning: exported method Pinhole.DrawRect should have comment or be unexported (golint)
    • Line 221: warning: exported method Pinhole.DrawCube should have comment or be unexported (golint)
    • Line 236: warning: exported method Pinhole.DrawDot should have comment or be unexported (golint)
    • Line 241: warning: exported method Pinhole.DrawLine should have comment or be unexported (golint)
    • Line 250: warning: exported method Pinhole.DrawCircle should have comment or be unexported (golint)
    • Line 285: warning: exported type ImageOptions should have comment or be unexported (golint)
    • Line 291: warning: exported var DefaultImageOptions should have comment or be unexported (golint)
    • Line 325: warning: exported method Pinhole.Image should have comment or be unexported (golint)
    • Line 512: warning: exported method Pinhole.LoadObj should have comment or be unexported (golint)
    • Line 577: warning: exported method Pinhole.SavePNG should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!