Preparing report...

Report for github.com/taybin/goids

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


golint72%

Golint is a linter for Go source code.

    • goids/area.go
    • Line 7: warning: exported type Area should have comment or be unexported (golint)
    • Line 16: warning: exported function NewArea should have comment or be unexported (golint)
    • Line 28: warning: exported method Area.AddBoid should have comment or be unexported (golint)
    • Line 33: warning: exported method Area.UpdateBoids should have comment or be unexported (golint)
    • goids/boid.go
    • Line 10: warning: exported type Boid should have comment or be unexported (golint)
    • Line 16: warning: exported function NewBoid should have comment or be unexported (golint)
    • Line 24: warning: exported method Boid.RandomizePosition should have comment or be unexported (golint)
    • Line 30: warning: exported method Boid.Bounds should have comment or be unexported (golint)
    • Line 34: warning: exported method Boid.UpdateVelocity should have comment or be unexported (golint)
    • Line 44: warning: exported method Boid.UpdatePosition should have comment or be unexported (golint)
    • Line 48: warning: comment on exported method Boid.Rule1 should be of the form "Rule1 ..." (golint)
    • Line 88: warning: comment on exported method Boid.Rule2 should be of the form "Rule2 ..." (golint)
    • Line 124: warning: comment on exported method Boid.Rule3 should be of the form "Rule3 ..." (golint)
    • Line 164: warning: comment on exported method Boid.BoundPosition should be of the form "BoundPosition ..." (golint)
    • Line 208: warning: comment on exported function LimitVelocity should be of the form "LimitVelocity ..." (golint)
    • Line 231: warning: exported function SpatialsToBoids should have comment or be unexported (golint)
    • Line 242: warning: exported method Boid.ToBoidPosition should have comment or be unexported (golint)
    • goids/dimension_value.go
    • Line 24: warning: exported function NewDimensionValue should have comment or be unexported (golint)
    • Line 66: warning: exported method DimensionValue.Length 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!