Preparing report...

Report for github.com/spearwolf/kiwotigo

A    Great!    Found 14 issues across 17 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!


gocyclo94%

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.


golint23%

Golint is a linter for Go source code.

    • kiwotigo/continent.go
    • Line 27: warning: exported type Continent should have comment or be unexported (golint)
    • Line 38: warning: exported function NewContinent should have comment or be unexported (golint)
    • Line 46: warning: exported method Continent.Json should have comment or be unexported (golint)
    • Line 51: warning: exported method Continent.CreateShapes should have comment or be unexported (golint)
    • Line 64: warning: exported method Continent.MinRegionSize should have comment or be unexported (golint)
    • Line 77: warning: exported method Continent.NeighborLessRegions should have comment or be unexported (golint)
    • Line 87: warning: exported method Continent.UpdateCenterPoints should have comment or be unexported (golint)
    • Line 125: warning: exported method Continent.UpdateRegionSizes should have comment or be unexported (golint)
    • Line 144: warning: exported method Continent.MakeNeighbors should have comment or be unexported (golint)
    • Line 157: warning: exported method Continent.CreateSomeRegions should have comment or be unexported (golint)
    • kiwotigo/position.go
    • Line 20: warning: exported type Position should have comment or be unexported (golint)
    • Line 24: warning: exported method Position.Row should have comment or be unexported (golint)
    • Line 28: warning: exported method Position.SetRow should have comment or be unexported (golint)
    • Line 33: warning: exported method Position.Col should have comment or be unexported (golint)
    • Line 37: warning: exported method Position.SetCol should have comment or be unexported (golint)
    • kiwotigo/region.go
    • Line 20: warning: exported type Region should have comment or be unexported (golint)
    • Line 25: warning: exported function NewRegion should have comment or be unexported (golint)
    • Line 32: warning: exported method Region.RegionSize should have comment or be unexported (golint)
    • Line 36: warning: exported method Region.AssignHexagon should have comment or be unexported (golint)
    • Line 63: warning: exported method Region.AssignHexagons should have comment or be unexported (golint)
    • Line 70: warning: exported method Region.IsNeighbor should have comment or be unexported (golint)
    • Line 103: warning: exported method Region.RegionLessNeighborHexagons should have comment or be unexported (golint)
    • Line 132: warning: exported method Region.ShapeHexagons should have comment or be unexported (golint)
    • Line 142: warning: exported method Region.SingleRandomShapeHexagon should have comment or be unexported (golint)
    • kiwotigo/region_grid.go
    • Line 20: warning: exported type RegionGrid should have comment or be unexported (golint)
    • Line 25: warning: exported function NewRegionGrid should have comment or be unexported (golint)
    • Line 33: warning: exported method RegionGrid.Width should have comment or be unexported (golint)
    • Line 37: warning: exported method RegionGrid.Height should have comment or be unexported (golint)
    • Line 45: warning: exported method RegionGrid.IsInsideGrid should have comment or be unexported (golint)
    • Line 49: warning: exported method RegionGrid.Region should have comment or be unexported (golint)
    • Line 57: warning: exported method RegionGrid.SetRegion should have comment or be unexported (golint)
    • kiwotigo/region_grid_mask.go
    • Line 24: warning: exported type RegionGridMask should have comment or be unexported (golint)
    • Line 29: warning: exported function NewRegionGridMask should have comment or be unexported (golint)
    • Line 78: warning: exported method RegionGridMask.ShouldCreateRegionAt should have comment or be unexported (golint)
    • kiwotigo/region_group.go
    • Line 20: warning: exported type RegionGroup should have comment or be unexported (golint)
    • Line 24: warning: exported function NewRegionGroup should have comment or be unexported (golint)
    • Line 30: warning: exported method RegionGroup.IsInside should have comment or be unexported (golint)
    • Line 39: warning: exported method RegionGroup.IsOverlapping should have comment or be unexported (golint)
    • Line 43: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 54: warning: exported method RegionGroup.Merge should have comment or be unexported (golint)
    • Line 60: warning: exported method RegionGroup.Append should have comment or be unexported (golint)
    • kiwotigo/continent_creation_strategy.go
    • Line 26: warning: exported type ContinentCreationStrategy should have comment or be unexported (golint)
    • Line 179: warning: exported method ContinentCreationStrategy.ForEachGridRegion should have comment or be unexported (golint)
    • kiwotigo/continent_description.go
    • Line 24: warning: exported type ContinentDescription should have comment or be unexported (golint)
    • Line 29: warning: exported function NewContinentDescription should have comment or be unexported (golint)
    • Line 36: warning: exported method ContinentDescription.Json should have comment or be unexported (golint)
    • Line 41: warning: exported method ContinentDescription.PrettyJson should have comment or be unexported (golint)
    • kiwotigo/hexagon_grid.go
    • Line 24: warning: exported type HexagonGrid should have comment or be unexported (golint)
    • Line 30: warning: exported method HexagonGrid.CanvasWidth should have comment or be unexported (golint)
    • Line 34: warning: exported method HexagonGrid.CanvasHeight should have comment or be unexported (golint)
    • Line 38: warning: exported method HexagonGrid.Hexagon should have comment or be unexported (golint)
    • Line 52: warning: exported function NewHexagonGrid should have comment or be unexported (golint)
    • kiwotigo/region_shape.go
    • Line 30: warning: exported function NewRegionShape should have comment or be unexported (golint)
    • Line 46: warning: exported function CreateShapePath should have comment or be unexported (golint)
    • Line 60: warning: receiver name should not be an underscore, omit the name if it is unused (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign82%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!