Preparing report...

Report for github.com/fogleman/maps

(v0.0.0-20180220025316-54b92e1477cf)

A    Great!    Found 13 issues across 18 files

Tweet

gofmt94%

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


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!


golint38%

Golint is a linter for Go source code.

    • filter.go
    • Line 3: warning: exported type ShapeFilterFunc should have comment or be unexported (golint)
    • Line 5: warning: exported function NewShapeTagFilter should have comment or be unexported (golint)
    • map.go
    • Line 10: warning: exported type Map should have comment or be unexported (golint)
    • Line 18: warning: exported function NewMap should have comment or be unexported (golint)
    • Line 29: warning: exported method Map.SetTransform should have comment or be unexported (golint)
    • Line 37: warning: exported method Map.FitBounds should have comment or be unexported (golint)
    • Line 47: warning: exported method Map.Project should have comment or be unexported (golint)
    • Line 54: warning: exported method Map.DrawShapefile should have comment or be unexported (golint)
    • Line 63: warning: exported method Map.DrawShapefileFiltered should have comment or be unexported (golint)
    • Line 76: warning: exported method Map.DrawShapes should have comment or be unexported (golint)
    • Line 82: warning: exported method Map.DrawShape should have comment or be unexported (golint)
    • Line 92: warning: exported method Map.DrawPBF should have comment or be unexported (golint)
    • Line 103: warning: exported method Map.DrawWay should have comment or be unexported (golint)
    • Line 112: warning: exported method Map.DrawMultiPolygon should have comment or be unexported (golint)
    • point.go
    • Line 5: warning: exported type Point should have comment or be unexported (golint)
    • Line 9: warning: exported function LatLng should have comment or be unexported (golint)
    • Line 13: warning: exported method Point.Length should have comment or be unexported (golint)
    • Line 17: warning: exported method Point.Distance should have comment or be unexported (golint)
    • Line 21: warning: exported method Point.Add should have comment or be unexported (golint)
    • Line 25: warning: exported method Point.Sub should have comment or be unexported (golint)
    • Line 29: warning: exported method Point.Mul should have comment or be unexported (golint)
    • Line 33: warning: exported method Point.Div should have comment or be unexported (golint)
    • Line 37: warning: exported method Point.Min should have comment or be unexported (golint)
    • Line 41: warning: exported method Point.Max should have comment or be unexported (golint)
    • shp.go
    • Line 9: warning: exported type Shape should have comment or be unexported (golint)
    • Line 15: warning: exported function LoadShapefile should have comment or be unexported (golint)
    • util.go
    • Line 5: warning: exported function Radians should have comment or be unexported (golint)
    • Line 9: warning: exported function Degrees should have comment or be unexported (golint)
    • bounds.go
    • Line 5: warning: exported type Bounds should have comment or be unexported (golint)
    • Line 9: warning: exported function BoundsForPoints should have comment or be unexported (golint)
    • Line 22: warning: exported function BoundsForPolylines should have comment or be unexported (golint)
    • Line 33: warning: exported function BoundsForShapes should have comment or be unexported (golint)
    • Line 44: warning: exported function BoundsForWay should have comment or be unexported (golint)
    • Line 53: warning: exported function BoundsForRelation should have comment or be unexported (golint)
    • Line 72: warning: exported method Bounds.Extend should have comment or be unexported (golint)
    • Line 76: warning: exported method Bounds.Offset should have comment or be unexported (golint)
    • Line 82: warning: exported method Bounds.Contains should have comment or be unexported (golint)
    • Line 87: warning: exported method Bounds.Intersects should have comment or be unexported (golint)
    • Line 92: warning: exported method Bounds.Anchor should have comment or be unexported (golint)
    • Line 96: warning: exported method Bounds.Center should have comment or be unexported (golint)
    • Line 100: warning: exported method Bounds.Size should have comment or be unexported (golint)
    • Line 104: warning: exported method Bounds.Area should have comment or be unexported (golint)
    • colormap.go
    • Line 9: warning: exported type Colormap should have comment or be unexported (golint)
    • Line 13: warning: exported function NewColormap should have comment or be unexported (golint)
    • Line 17: warning: exported method Colormap.Color should have comment or be unexported (golint)
    • Line 40: warning: exported var Viridis should have comment or be unexported (golint)
    • Line 41: warning: exported var Magma should have comment or be unexported (golint)
    • Line 42: warning: exported var Inferno should have comment or be unexported (golint)
    • Line 43: warning: exported var Plasma should have comment or be unexported (golint)
    • polyline.go
    • Line 3: warning: exported type Polyline should have comment or be unexported (golint)
    • Line 7: warning: exported function NewPolyline should have comment or be unexported (golint)
    • Line 11: warning: exported method Polyline.Bounds should have comment or be unexported (golint)
    • Line 15: warning: exported method Polyline.Length should have comment or be unexported (golint)
    • projection.go
    • Line 5: warning: exported type Projection should have comment or be unexported (golint)
    • Line 11: warning: exported type MercatorProjection should have comment or be unexported (golint)
    • Line 15: warning: exported function NewMercatorProjection should have comment or be unexported (golint)
    • Line 19: warning: exported method MercatorProjection.Project should have comment or be unexported (golint)
    • Line 30: warning: exported type LambertAzimuthalEqualAreaProjection should have comment or be unexported (golint)
    • Line 34: warning: exported function NewLambertAzimuthalEqualAreaProjection should have comment or be unexported (golint)
    • Line 38: warning: exported method LambertAzimuthalEqualAreaProjection.Project should have comment or be unexported (golint)
    • csv.go
    • Line 8: warning: exported function LoadCSV should have comment or be unexported (golint)
    • pbf.go
    • Line 11: warning: exported type PBF should have comment or be unexported (golint)
    • Line 17: warning: exported function LoadPBF should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!