Preparing report...

Report for github.com/RH12503/Triangula

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


gocyclo95%

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.


golint81%

Golint is a linter for Go source code.

    • Triangula/render/polygons.go
    • Line 11: warning: exported type PolygonData should have comment or be unexported (golint)
    • Line 16: warning: exported function PolygonsOnImage should have comment or be unexported (golint)
    • Triangula/geom/point.go
    • Line 19: warning: exported method Point.DistSq should have comment or be unexported (golint)
    • Line 25: warning: exported method Point.Sub should have comment or be unexported (golint)
    • Triangula/geom/polygon.go
    • Line 10: warning: exported method Polygon.ToNorm should have comment or be unexported (golint)
    • Line 22: warning: exported method Polygon.Triangulate should have comment or be unexported (golint)
    • Triangula/rasterize/polygon.go
    • Line 5: warning: exported function DDAPolygonBlocks should have comment or be unexported (golint)
    • Line 11: warning: exported function DDAPolygon should have comment or be unexported (golint)
    • Triangula/triangulation/incrdelaunay/voronoi.go
    • Line 8: warning: exported function NewVoronoi should have comment or be unexported (golint)
    • Line 18: warning: exported type IVoronoi should have comment or be unexported (golint)
    • Line 29: warning: exported method IVoronoi.Insert should have comment or be unexported (golint)
    • Line 59: warning: exported method IVoronoi.Remove should have comment or be unexported (golint)
    • Line 91: warning: exported method IVoronoi.IterPolygons should have comment or be unexported (golint)
    • Line 298: warning: exported method IVoronoi.Set should have comment or be unexported (golint)
    • Line 311: warning: exported function Voronoi should have comment or be unexported (golint)
    • Line 498: warning: don't use underscores in Go names; func parameter p0_x should be p0X (golint)
    • Line 498: warning: don't use underscores in Go names; func parameter p0_y should be p0Y (golint)
    • Line 498: warning: don't use underscores in Go names; func parameter p1_x should be p1X (golint)
    • Line 498: warning: don't use underscores in Go names; func parameter p1_y should be p1Y (golint)
    • Line 499: warning: don't use underscores in Go names; func parameter p2_x should be p2X (golint)
    • Line 499: warning: don't use underscores in Go names; func parameter p2_y should be p2Y (golint)
    • Line 499: warning: don't use underscores in Go names; func parameter p3_x should be p3X (golint)
    • Line 499: warning: don't use underscores in Go names; func parameter p3_y should be p3Y (golint)
    • Line 500: warning: don't use underscores in Go names; var s1_x should be s1X (golint)
    • Line 500: warning: don't use underscores in Go names; var s1_y should be s1Y (golint)
    • Line 500: warning: don't use underscores in Go names; var s2_x should be s2X (golint)
    • Line 500: warning: don't use underscores in Go names; var s2_y should be s2Y (golint)
    • Triangula/fitness/cache.go
    • Line 12: warning: exported type CacheData should have comment or be unexported (golint)
    • Line 29: warning: exported method TriangleCacheData.Data should have comment or be unexported (golint)
    • Line 49: warning: exported method TriangleCacheData.CachedHash should have comment or be unexported (golint)
    • Line 53: warning: exported method TriangleCacheData.SetCachedHash should have comment or be unexported (golint)
    • Line 57: warning: exported type PolygonCacheData should have comment or be unexported (golint)
    • Line 63: warning: exported method PolygonCacheData.CachedHash should have comment or be unexported (golint)
    • Line 67: warning: exported method PolygonCacheData.SetCachedHash should have comment or be unexported (golint)
    • Line 71: warning: exported method PolygonCacheData.Data 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!