Preparing report...

Report for github.com/mokiat/gomath

A+    Excellent!    Found 31 issues across 52 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!


gocyclo96%

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.


golint40%

Golint is a linter for Go source code.

    • gomath/sprec/util.go
    • Line 6: warning: exported const Pi should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported function Abs should have comment or be unexported (golint)
    • Line 14: warning: exported function Max should have comment or be unexported (golint)
    • Line 21: warning: exported function Min should have comment or be unexported (golint)
    • Line 28: warning: exported function Clamp should have comment or be unexported (golint)
    • Line 38: warning: exported function Eq should have comment or be unexported (golint)
    • Line 42: warning: exported function EqEps should have comment or be unexported (golint)
    • Line 46: warning: exported function Sqrt should have comment or be unexported (golint)
    • Line 50: warning: exported function Cos should have comment or be unexported (golint)
    • Line 54: warning: exported function Sin should have comment or be unexported (golint)
    • Line 58: warning: exported function Tan should have comment or be unexported (golint)
    • Line 62: warning: exported function Sign should have comment or be unexported (golint)
    • gomath/dprec/mat4.go
    • Line 5: warning: exported function NewMat4 should have comment or be unexported (golint)
    • Line 19: warning: exported function ZeroMat4 should have comment or be unexported (golint)
    • Line 23: warning: exported function IdentityMat4 should have comment or be unexported (golint)
    • Line 32: warning: exported function TranslationMat4 should have comment or be unexported (golint)
    • Line 40: warning: exported function ScaleMat4 should have comment or be unexported (golint)
    • Line 49: warning: exported function RotationMat4 should have comment or be unexported (golint)
    • Line 74: warning: exported function OrthoMat4 should have comment or be unexported (golint)
    • Line 89: warning: exported function PerspectiveMat4 should have comment or be unexported (golint)
    • Line 156: warning: exported function TransformationMat4 should have comment or be unexported (golint)
    • Line 177: warning: exported function OrientationMat4 should have comment or be unexported (golint)
    • Line 195: warning: exported function RowMajorArrayMat4 should have comment or be unexported (golint)
    • Line 204: warning: exported function ColumnMajorArrayMat4 should have comment or be unexported (golint)
    • Line 213: warning: exported function Mat4Prod should have comment or be unexported (golint)
    • Line 237: warning: exported function Mat4MultiProd should have comment or be unexported (golint)
    • Line 245: warning: exported function Mat4Vec4Prod should have comment or be unexported (golint)
    • Line 254: warning: exported function Mat4Vec3Transformation should have comment or be unexported (golint)
    • Line 262: warning: exported type Mat4 should have comment or be unexported (golint)
    • Line 269: warning: exported method Mat4.OrientationX should have comment or be unexported (golint)
    • Line 273: warning: exported method Mat4.OrientationY should have comment or be unexported (golint)
    • Line 277: warning: exported method Mat4.OrientationZ should have comment or be unexported (golint)
    • Line 281: warning: exported method Mat4.Translation should have comment or be unexported (golint)
    • Line 285: warning: exported method Mat4.RowMajorArray should have comment or be unexported (golint)
    • Line 294: warning: exported method Mat4.ColumnMajorArray should have comment or be unexported (golint)
    • Line 303: warning: exported method Mat4.GoString should have comment or be unexported (golint)
    • gomath/sprec/angle.go
    • Line 3: warning: exported function Radians should have comment or be unexported (golint)
    • Line 7: warning: exported function Degrees should have comment or be unexported (golint)
    • Line 11: warning: exported type Angle should have comment or be unexported (golint)
    • Line 13: warning: exported method Angle.Degrees should have comment or be unexported (golint)
    • Line 17: warning: exported method Angle.Radians should have comment or be unexported (golint)
    • gomath/sprec/quat.go
    • Line 5: warning: exported function NewQuat should have comment or be unexported (golint)
    • Line 14: warning: exported function IdentityQuat should have comment or be unexported (golint)
    • Line 23: warning: exported function RotationQuat should have comment or be unexported (golint)
    • Line 35: warning: exported function ConjugateQuat should have comment or be unexported (golint)
    • Line 44: warning: exported function QuatScalarProd should have comment or be unexported (golint)
    • Line 53: warning: exported function QuatScalarQuot should have comment or be unexported (golint)
    • Line 62: warning: exported function QuatProd should have comment or be unexported (golint)
    • Line 71: warning: exported function QuatVec3Rotation should have comment or be unexported (golint)
    • Line 86: warning: exported function UnitQuat should have comment or be unexported (golint)
    • Line 90: warning: exported function InverseQuat should have comment or be unexported (golint)
    • Line 94: warning: exported type Quat should have comment or be unexported (golint)
    • Line 101: warning: exported method Quat.SqrNorm should have comment or be unexported (golint)
    • Line 105: warning: exported method Quat.Norm should have comment or be unexported (golint)
    • Line 109: warning: exported method Quat.OrientationX should have comment or be unexported (golint)
    • Line 117: warning: exported method Quat.OrientationY should have comment or be unexported (golint)
    • Line 125: warning: exported method Quat.OrientationZ should have comment or be unexported (golint)
    • Line 133: warning: exported method Quat.GoString should have comment or be unexported (golint)
    • gomath/sprec/vec2.go
    • Line 5: warning: exported function NewVec2 should have comment or be unexported (golint)
    • Line 12: warning: exported function ZeroVec2 should have comment or be unexported (golint)
    • Line 16: warning: exported function BasisXVec2 should have comment or be unexported (golint)
    • Line 23: warning: exported function BasisYVec2 should have comment or be unexported (golint)
    • Line 30: warning: exported function Vec2Sum should have comment or be unexported (golint)
    • Line 37: warning: exported function Vec2Diff should have comment or be unexported (golint)
    • Line 44: warning: exported function Vec2Prod should have comment or be unexported (golint)
    • Line 51: warning: exported function Vec2Quot should have comment or be unexported (golint)
    • Line 58: warning: exported function Vec2Dot should have comment or be unexported (golint)
    • Line 62: warning: exported function UnitVec2 should have comment or be unexported (golint)
    • Line 66: warning: exported function ResizedVec2 should have comment or be unexported (golint)
    • Line 71: warning: exported function InverseVec2 should have comment or be unexported (golint)
    • Line 78: warning: exported type Vec2 should have comment or be unexported (golint)
    • Line 83: warning: exported method Vec2.IsZero should have comment or be unexported (golint)
    • Line 87: warning: exported method Vec2.SqrLength should have comment or be unexported (golint)
    • Line 91: warning: exported method Vec2.Length should have comment or be unexported (golint)
    • Line 95: warning: exported method Vec2.GoString should have comment or be unexported (golint)
    • gomath/sprec/vec3.go
    • Line 5: warning: exported function NewVec3 should have comment or be unexported (golint)
    • Line 13: warning: exported function ZeroVec3 should have comment or be unexported (golint)
    • Line 17: warning: exported function BasisXVec3 should have comment or be unexported (golint)
    • Line 25: warning: exported function BasisYVec3 should have comment or be unexported (golint)
    • Line 33: warning: exported function BasisZVec3 should have comment or be unexported (golint)
    • Line 41: warning: exported function Vec3Sum should have comment or be unexported (golint)
    • Line 49: warning: exported function Vec3Diff should have comment or be unexported (golint)
    • Line 57: warning: exported function Vec3Prod should have comment or be unexported (golint)
    • Line 65: warning: exported function Vec3Quot should have comment or be unexported (golint)
    • Line 73: warning: exported function Vec3Dot should have comment or be unexported (golint)
    • Line 77: warning: exported function Vec3Cross should have comment or be unexported (golint)
    • Line 85: warning: exported function UnitVec3 should have comment or be unexported (golint)
    • Line 89: warning: exported function ResizedVec3 should have comment or be unexported (golint)
    • Line 94: warning: exported function InverseVec3 should have comment or be unexported (golint)
    • Line 102: warning: exported type Vec3 should have comment or be unexported (golint)
    • Line 108: warning: exported method Vec3.IsZero should have comment or be unexported (golint)
    • Line 112: warning: exported method Vec3.SqrLength should have comment or be unexported (golint)
    • Line 116: warning: exported method Vec3.Length should have comment or be unexported (golint)
    • Line 120: warning: exported method Vec3.GoString should have comment or be unexported (golint)
    • gomath/sprec/vec4.go
    • Line 5: warning: exported function NewVec4 should have comment or be unexported (golint)
    • Line 14: warning: exported function ZeroVec4 should have comment or be unexported (golint)
    • Line 18: warning: exported function Vec4Sum should have comment or be unexported (golint)
    • Line 27: warning: exported function Vec4Diff should have comment or be unexported (golint)
    • Line 36: warning: exported function Vec4Prod should have comment or be unexported (golint)
    • Line 45: warning: exported function Vec4Quot should have comment or be unexported (golint)
    • Line 54: warning: exported function InverseVec4 should have comment or be unexported (golint)
    • Line 63: warning: exported type Vec4 should have comment or be unexported (golint)
    • Line 70: warning: exported method Vec4.IsZero should have comment or be unexported (golint)
    • Line 74: warning: exported method Vec4.VecXYZ should have comment or be unexported (golint)
    • Line 78: warning: exported method Vec4.GoString should have comment or be unexported (golint)
    • gomath/testing/matcher.go
    • Line 5: warning: exported type MatchStatus should have comment or be unexported (golint)
    • Line 11: warning: exported function SuccessMatchStatus should have comment or be unexported (golint)
    • Line 17: warning: exported function FailureMatchStatus should have comment or be unexported (golint)
    • Line 25: warning: exported type MatchCheckFunc should have comment or be unexported (golint)
    • Line 27: warning: exported function SimpleMatcher should have comment or be unexported (golint)
    • gomath/dprec/vec2.go
    • Line 5: warning: exported function NewVec2 should have comment or be unexported (golint)
    • Line 12: warning: exported function ZeroVec2 should have comment or be unexported (golint)
    • Line 16: warning: exported function BasisXVec2 should have comment or be unexported (golint)
    • Line 23: warning: exported function BasisYVec2 should have comment or be unexported (golint)
    • Line 30: warning: exported function Vec2Sum should have comment or be unexported (golint)
    • Line 37: warning: exported function Vec2Diff should have comment or be unexported (golint)
    • Line 44: warning: exported function Vec2Prod should have comment or be unexported (golint)
    • Line 51: warning: exported function Vec2Quot should have comment or be unexported (golint)
    • Line 58: warning: exported function Vec2Dot should have comment or be unexported (golint)
    • Line 62: warning: exported function UnitVec2 should have comment or be unexported (golint)
    • Line 66: warning: exported function ResizedVec2 should have comment or be unexported (golint)
    • Line 71: warning: exported function InverseVec2 should have comment or be unexported (golint)
    • Line 78: warning: exported type Vec2 should have comment or be unexported (golint)
    • Line 83: warning: exported method Vec2.IsZero should have comment or be unexported (golint)
    • Line 87: warning: exported method Vec2.SqrLength should have comment or be unexported (golint)
    • Line 91: warning: exported method Vec2.Length should have comment or be unexported (golint)
    • Line 95: warning: exported method Vec2.GoString should have comment or be unexported (golint)
    • gomath/dprec/util.go
    • Line 6: warning: exported const Pi should have comment (or a comment on this block) or be unexported (golint)
    • Line 10: warning: exported function Abs should have comment or be unexported (golint)
    • Line 14: warning: exported function Max should have comment or be unexported (golint)
    • Line 21: warning: exported function Min should have comment or be unexported (golint)
    • Line 28: warning: exported function Clamp should have comment or be unexported (golint)
    • Line 38: warning: exported function Eq should have comment or be unexported (golint)
    • Line 42: warning: exported function EqEps should have comment or be unexported (golint)
    • Line 46: warning: exported function Sqrt should have comment or be unexported (golint)
    • Line 50: warning: exported function Cos should have comment or be unexported (golint)
    • Line 54: warning: exported function Sin should have comment or be unexported (golint)
    • Line 58: warning: exported function Tan should have comment or be unexported (golint)
    • Line 62: warning: exported function Sign should have comment or be unexported (golint)
    • gomath/dprec/quat.go
    • Line 5: warning: exported function NewQuat should have comment or be unexported (golint)
    • Line 14: warning: exported function IdentityQuat should have comment or be unexported (golint)
    • Line 23: warning: exported function RotationQuat should have comment or be unexported (golint)
    • Line 35: warning: exported function ConjugateQuat should have comment or be unexported (golint)
    • Line 44: warning: exported function QuatScalarProd should have comment or be unexported (golint)
    • Line 53: warning: exported function QuatScalarQuot should have comment or be unexported (golint)
    • Line 62: warning: exported function QuatProd should have comment or be unexported (golint)
    • Line 71: warning: exported function QuatVec3Rotation should have comment or be unexported (golint)
    • Line 86: warning: exported function UnitQuat should have comment or be unexported (golint)
    • Line 90: warning: exported function InverseQuat should have comment or be unexported (golint)
    • Line 94: warning: exported type Quat should have comment or be unexported (golint)
    • Line 101: warning: exported method Quat.SqrNorm should have comment or be unexported (golint)
    • Line 105: warning: exported method Quat.Norm should have comment or be unexported (golint)
    • Line 109: warning: exported method Quat.OrientationX should have comment or be unexported (golint)
    • Line 117: warning: exported method Quat.OrientationY should have comment or be unexported (golint)
    • Line 125: warning: exported method Quat.OrientationZ should have comment or be unexported (golint)
    • Line 133: warning: exported method Quat.GoString should have comment or be unexported (golint)
    • gomath/dprec/vec3.go
    • Line 5: warning: exported function NewVec3 should have comment or be unexported (golint)
    • Line 13: warning: exported function ZeroVec3 should have comment or be unexported (golint)
    • Line 17: warning: exported function BasisXVec3 should have comment or be unexported (golint)
    • Line 25: warning: exported function BasisYVec3 should have comment or be unexported (golint)
    • Line 33: warning: exported function BasisZVec3 should have comment or be unexported (golint)
    • Line 41: warning: exported function Vec3Sum should have comment or be unexported (golint)
    • Line 49: warning: exported function Vec3Diff should have comment or be unexported (golint)
    • Line 57: warning: exported function Vec3Prod should have comment or be unexported (golint)
    • Line 65: warning: exported function Vec3Quot should have comment or be unexported (golint)
    • Line 73: warning: exported function Vec3Dot should have comment or be unexported (golint)
    • Line 77: warning: exported function Vec3Cross should have comment or be unexported (golint)
    • Line 85: warning: exported function UnitVec3 should have comment or be unexported (golint)
    • Line 89: warning: exported function ResizedVec3 should have comment or be unexported (golint)
    • Line 94: warning: exported function InverseVec3 should have comment or be unexported (golint)
    • Line 102: warning: exported type Vec3 should have comment or be unexported (golint)
    • Line 108: warning: exported method Vec3.IsZero should have comment or be unexported (golint)
    • Line 112: warning: exported method Vec3.SqrLength should have comment or be unexported (golint)
    • Line 116: warning: exported method Vec3.Length should have comment or be unexported (golint)
    • Line 120: warning: exported method Vec3.GoString should have comment or be unexported (golint)
    • gomath/dprec/vec4.go
    • Line 5: warning: exported function NewVec4 should have comment or be unexported (golint)
    • Line 14: warning: exported function ZeroVec4 should have comment or be unexported (golint)
    • Line 18: warning: exported function Vec4Sum should have comment or be unexported (golint)
    • Line 27: warning: exported function Vec4Diff should have comment or be unexported (golint)
    • Line 36: warning: exported function Vec4Prod should have comment or be unexported (golint)
    • Line 45: warning: exported function Vec4Quot should have comment or be unexported (golint)
    • Line 54: warning: exported function InverseVec4 should have comment or be unexported (golint)
    • Line 63: warning: exported type Vec4 should have comment or be unexported (golint)
    • Line 70: warning: exported method Vec4.IsZero should have comment or be unexported (golint)
    • Line 74: warning: exported method Vec4.VecXYZ should have comment or be unexported (golint)
    • Line 78: warning: exported method Vec4.GoString should have comment or be unexported (golint)
    • gomath/sprec/mat4.go
    • Line 5: warning: exported function NewMat4 should have comment or be unexported (golint)
    • Line 19: warning: exported function ZeroMat4 should have comment or be unexported (golint)
    • Line 23: warning: exported function IdentityMat4 should have comment or be unexported (golint)
    • Line 32: warning: exported function TranslationMat4 should have comment or be unexported (golint)
    • Line 40: warning: exported function ScaleMat4 should have comment or be unexported (golint)
    • Line 49: warning: exported function RotationMat4 should have comment or be unexported (golint)
    • Line 74: warning: exported function OrthoMat4 should have comment or be unexported (golint)
    • Line 89: warning: exported function PerspectiveMat4 should have comment or be unexported (golint)
    • Line 156: warning: exported function TransformationMat4 should have comment or be unexported (golint)
    • Line 177: warning: exported function OrientationMat4 should have comment or be unexported (golint)
    • Line 195: warning: exported function RowMajorArrayMat4 should have comment or be unexported (golint)
    • Line 204: warning: exported function ColumnMajorArrayMat4 should have comment or be unexported (golint)
    • Line 213: warning: exported function Mat4Prod should have comment or be unexported (golint)
    • Line 237: warning: exported function Mat4MultiProd should have comment or be unexported (golint)
    • Line 245: warning: exported function Mat4Vec4Prod should have comment or be unexported (golint)
    • Line 254: warning: exported function Mat4Vec3Transformation should have comment or be unexported (golint)
    • Line 262: warning: exported type Mat4 should have comment or be unexported (golint)
    • Line 269: warning: exported method Mat4.OrientationX should have comment or be unexported (golint)
    • Line 273: warning: exported method Mat4.OrientationY should have comment or be unexported (golint)
    • Line 277: warning: exported method Mat4.OrientationZ should have comment or be unexported (golint)
    • Line 281: warning: exported method Mat4.Translation should have comment or be unexported (golint)
    • Line 285: warning: exported method Mat4.RowMajorArray should have comment or be unexported (golint)
    • Line 294: warning: exported method Mat4.ColumnMajorArray should have comment or be unexported (golint)
    • Line 303: warning: exported method Mat4.GoString should have comment or be unexported (golint)
    • gomath/dprec/angle.go
    • Line 3: warning: exported function Radians should have comment or be unexported (golint)
    • Line 7: warning: exported function Degrees should have comment or be unexported (golint)
    • Line 11: warning: exported type Angle should have comment or be unexported (golint)
    • Line 13: warning: exported method Angle.Degrees should have comment or be unexported (golint)
    • Line 17: warning: exported method Angle.Radians should have comment or be unexported (golint)
    • gomath/dprec/mat3.go
    • Line 5: warning: exported function NewMat3 should have comment or be unexported (golint)
    • Line 17: warning: exported function ZeroMat3 should have comment or be unexported (golint)
    • Line 21: warning: exported function IdentityMat3 should have comment or be unexported (golint)
    • Line 29: warning: exported function TranslationMat3 should have comment or be unexported (golint)
    • Line 36: warning: exported function ScaleMat3 should have comment or be unexported (golint)
    • Line 44: warning: exported function RotationMat3 should have comment or be unexported (golint)
    • Line 57: warning: exported function OrthoMat3 should have comment or be unexported (golint)
    • Line 112: warning: exported function TransformationMat3 should have comment or be unexported (golint)
    • Line 126: warning: exported function Mat3Prod should have comment or be unexported (golint)
    • Line 142: warning: exported function Mat3MultiProd should have comment or be unexported (golint)
    • Line 150: warning: exported function Mat3Vec3Prod should have comment or be unexported (golint)
    • Line 158: warning: exported type Mat3 should have comment or be unexported (golint)
    • Line 164: warning: exported method Mat3.OrientationX should have comment or be unexported (golint)
    • Line 168: warning: exported method Mat3.OrientationY should have comment or be unexported (golint)
    • Line 172: warning: exported method Mat3.Translation should have comment or be unexported (golint)
    • Line 176: warning: exported method Mat3.GoString should have comment or be unexported (golint)
    • gomath/sprec/mat3.go
    • Line 5: warning: exported function NewMat3 should have comment or be unexported (golint)
    • Line 17: warning: exported function ZeroMat3 should have comment or be unexported (golint)
    • Line 21: warning: exported function IdentityMat3 should have comment or be unexported (golint)
    • Line 29: warning: exported function TranslationMat3 should have comment or be unexported (golint)
    • Line 36: warning: exported function ScaleMat3 should have comment or be unexported (golint)
    • Line 44: warning: exported function RotationMat3 should have comment or be unexported (golint)
    • Line 57: warning: exported function OrthoMat3 should have comment or be unexported (golint)
    • Line 112: warning: exported function TransformationMat3 should have comment or be unexported (golint)
    • Line 126: warning: exported function Mat3Prod should have comment or be unexported (golint)
    • Line 142: warning: exported function Mat3MultiProd should have comment or be unexported (golint)
    • Line 150: warning: exported function Mat3Vec3Prod should have comment or be unexported (golint)
    • Line 158: warning: exported type Mat3 should have comment or be unexported (golint)
    • Line 164: warning: exported method Mat3.OrientationX should have comment or be unexported (golint)
    • Line 168: warning: exported method Mat3.OrientationY should have comment or be unexported (golint)
    • Line 172: warning: exported method Mat3.Translation should have comment or be unexported (golint)
    • Line 176: warning: exported method Mat3.GoString 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!


misspell80%

Misspell Finds commonly misspelled English words