Preparing report...

Report for github.com/fogleman/simplify

A    Great!    Found 11 issues across 12 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!


gocyclo91%

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.


golint16%

Golint is a linter for Go source code.

    • simplify/matrix.go
    • Line 3: warning: exported type Matrix should have comment or be unexported (golint)
    • Line 10: warning: exported method Matrix.QuadricError should have comment or be unexported (golint)
    • Line 17: warning: exported method Matrix.QuadricVector should have comment or be unexported (golint)
    • Line 27: warning: exported method Matrix.Add should have comment or be unexported (golint)
    • Line 36: warning: exported method Matrix.MulPosition should have comment or be unexported (golint)
    • Line 43: warning: exported method Matrix.Determinant should have comment or be unexported (golint)
    • Line 58: warning: exported method Matrix.Inverse should have comment or be unexported (golint)
    • simplify/mesh.go
    • Line 3: warning: exported type Mesh should have comment or be unexported (golint)
    • Line 7: warning: exported function NewMesh should have comment or be unexported (golint)
    • Line 11: warning: exported method Mesh.SaveBinarySTL should have comment or be unexported (golint)
    • Line 15: warning: exported method Mesh.Simplify should have comment or be unexported (golint)
    • simplify/triangle.go
    • Line 3: warning: exported type Triangle should have comment or be unexported (golint)
    • Line 7: warning: exported function NewTriangle should have comment or be unexported (golint)
    • Line 11: warning: exported method Triangle.Quadric should have comment or be unexported (golint)
    • Line 24: warning: exported method Triangle.Normal should have comment or be unexported (golint)
    • simplify/vector.go
    • Line 5: warning: exported type Vector should have comment or be unexported (golint)
    • Line 9: warning: exported method Vector.Less should have comment or be unexported (golint)
    • Line 19: warning: exported method Vector.Length should have comment or be unexported (golint)
    • Line 23: warning: exported method Vector.Dot should have comment or be unexported (golint)
    • Line 27: warning: exported method Vector.Cross should have comment or be unexported (golint)
    • Line 34: warning: exported method Vector.Normalize should have comment or be unexported (golint)
    • Line 39: warning: exported method Vector.Add should have comment or be unexported (golint)
    • Line 43: warning: exported method Vector.Sub should have comment or be unexported (golint)
    • Line 47: warning: exported method Vector.MulScalar should have comment or be unexported (golint)
    • simplify/vertex.go
    • Line 3: warning: exported type Vertex should have comment or be unexported (golint)
    • Line 8: warning: exported function NewVertex should have comment or be unexported (golint)
    • simplify/face.go
    • Line 3: warning: exported type Face should have comment or be unexported (golint)
    • Line 8: warning: exported function NewFace should have comment or be unexported (golint)
    • Line 12: warning: exported method Face.Degenerate should have comment or be unexported (golint)
    • Line 19: warning: exported method Face.Normal should have comment or be unexported (golint)
    • simplify/pair.go
    • Line 5: warning: exported type PairKey should have comment or be unexported (golint)
    • Line 9: warning: exported function MakePairKey should have comment or be unexported (golint)
    • Line 16: warning: exported type Pair should have comment or be unexported (golint)
    • Line 23: warning: exported function NewPair should have comment or be unexported (golint)
    • Line 30: warning: exported method Pair.Quadric should have comment or be unexported (golint)
    • Line 34: warning: exported method Pair.Vector should have comment or be unexported (golint)
    • simplify/queue.go
    • Line 3: warning: exported type PriorityQueue should have comment or be unexported (golint)
    • Line 19: warning: exported method PriorityQueue.Push should have comment or be unexported (golint)
    • Line 25: warning: exported method PriorityQueue.Pop should have comment or be unexported (golint)
    • simplify/stl.go
    • Line 10: warning: exported type STLHeader should have comment or be unexported (golint)
    • Line 15: warning: exported type STLTriangle should have comment or be unexported (golint)
    • Line 20: warning: exported function LoadBinarySTL should have comment or be unexported (golint)
    • Line 45: warning: exported function SaveBinarySTL should have comment or be unexported (golint)
    • Line 78: warning: exported function LoadSTL should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!