Preparing report...

Report for github.com/xyproto/tinysvg

(v1.0.1)

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


gocyclo100%

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.

No problems detected. Good job!


golint66%

Golint is a linter for Go source code.

    • tinysvg.go
    • Line 17: warning: exported const TRANSPARENT should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported type Vec2 should have comment or be unexported (golint)
    • Line 30: warning: exported type Pos should have comment or be unexported (golint)
    • Line 31: warning: exported type Radius should have comment or be unexported (golint)
    • Line 33: warning: exported type Size should have comment or be unexported (golint)
    • Line 37: warning: exported type Color should have comment or be unexported (golint)
    • Line 43: warning: exported type Font should have comment or be unexported (golint)
    • Line 48: warning: exported type YesNoAuto should have comment or be unexported (golint)
    • Line 51: warning: exported var ErrPair should have comment or be unexported (golint)
    • Line 53: warning: comment on exported function NewTinySVG should be of the form "NewTinySVG ..." (golint)
    • Line 93: warning: comment on exported method Tag.Rect2 should be of the form "Rect2 ..." (golint)
    • Line 119: warning: comment on exported method Tag.Text2 should be of the form "Text2 ..." (golint)
    • Line 131: warning: comment on exported method Tag.Circle2 should be of the form "Circle2 ..." (golint)
    • Line 141: warning: comment on exported method Tag.Circlef should be of the form "Circlef ..." (golint)
    • Line 151: warning: comment on exported method Tag.Ellipse2 should be of the form "Ellipse2 ..." (golint)
    • Line 162: warning: comment on exported method Tag.Line2 should be of the form "Line2 ..." (golint)
    • Line 174: warning: comment on exported method Tag.Triangle2 should be of the form "Triangle2 ..." (golint)
    • Line 190: warning: comment on exported method Tag.Fill2 should be of the form "Fill2 ..." (golint)
    • Line 199: warning: comment on exported method Tag.Stroke2 should be of the form "Stroke2 ..." (golint)
    • Line 230: warning: comment on exported function RGB should be of the form "RGB ..." (golint)
    • Line 253: warning: comment on exported method Color.Bytes should be of the form "Bytes ..." (golint)
    • Line 275: warning: exported function NewTinySVGi should have comment or be unexported (golint)
    • Line 279: warning: exported function NewTinySVGf should have comment or be unexported (golint)
    • Line 407: warning: comment on exported function NewYesNoAuto should be of the form "NewYesNoAuto ..." (golint)
    • Line 418: warning: exported method YesNoAuto.Bytes should have comment or be unexported (golint)
    • Line 475: warning: exported function NewPos should have comment or be unexported (golint)
    • Line 487: warning: exported function NewPosf should have comment or be unexported (golint)
    • Line 491: warning: exported function PointsFromString 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!