Preparing report...

Report for github.com/g3n/engine

(v0.2.0)

A+    Excellent!    Found 89 issues across 218 files

Tweet

gofmt92%

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!


gocyclo87%

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.

    • gui/table.go
    • Line 1177: warning: cyclomatic complexity 20 of function (*Table).recalcHeader() is high (> 15) (gocyclo)
    • Line 871: warning: cyclomatic complexity 16 of function (*Table).onKey() is high (> 15) (gocyclo)
    • math32/ray.go
    • Line 347: warning: cyclomatic complexity 18 of function (*Ray).IntersectBox() is high (> 15) (gocyclo)
    • gui/panel.go
    • Line 671: warning: cyclomatic complexity 17 of function (*Panel).updateBounds() is high (> 15) (gocyclo)
    • gui/vboxlayout.go
    • Line 86: warning: cyclomatic complexity 47 of function (*VBoxLayout).Recalc() is high (> 15) (gocyclo)
    • gui/hboxlayout.go
    • Line 86: warning: cyclomatic complexity 41 of function (*HBoxLayout).Recalc() is high (> 15) (gocyclo)
    • gui/manager.go
    • Line 167: warning: cyclomatic complexity 21 of function (*manager).onCursor() is high (> 15) (gocyclo)
    • loader/collada/geometry.go
    • Line 112: warning: cyclomatic complexity 26 of function newMeshPolylist() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 20 of function newMeshTriangles() is high (> 15) (gocyclo)
    • gui/builder.go
    • Line 302: warning: cyclomatic complexity 19 of function (*Builder).ParseString() is high (> 15) (gocyclo)
    • gui/window.go
    • Line 159: warning: cyclomatic complexity 35 of function (*Window).onCursor() is high (> 15) (gocyclo)
    • loader/gltf/loader.go
    • Line 432: warning: cyclomatic complexity 19 of function (*GLTF).LoadMesh() is high (> 15) (gocyclo)
    • Line 179: warning: cyclomatic complexity 18 of function (*GLTF).LoadNode() is high (> 15) (gocyclo)
    • gui/menu.go
    • Line 216: warning: cyclomatic complexity 25 of function (*Menu).onKey() is high (> 15) (gocyclo)
    • geometry/box.go
    • Line 28: warning: cyclomatic complexity 21 of function NewSegmentedBox() is high (> 15) (gocyclo)
    • gui/scroller.go
    • Line 346: warning: cyclomatic complexity 24 of function (*Scroller).updateScrollbarsVisibility() is high (> 15) (gocyclo)
    • Line 417: warning: cyclomatic complexity 16 of function (*Scroller).recalc() is high (> 15) (gocyclo)
    • gui/builder_panel.go
    • Line 631: warning: cyclomatic complexity 21 of function buildChart() is high (> 15) (gocyclo)
    • Line 738: warning: cyclomatic complexity 16 of function buildTable() is high (> 15) (gocyclo)
    • Line 362: warning: cyclomatic complexity 16 of function buildMenu() is high (> 15) (gocyclo)

golint72%

Golint is a linter for Go source code.

    • gls/vbo.go
    • Line 34: warning: exported const Undefined should have comment (or a comment on this block) or be unexported (golint)
    • Line 370: warning: comment on exported method VBO.ReadTripleVectors3 should be of the form "ReadTripleVectors3 ..." (golint)
    • gui/events.go
    • Line 43: warning: exported const OnResize should have comment (or a comment on this block) or be unexported (golint)
    • audio/al/al.go
    • Line 261: warning: exported type Device should have comment or be unexported (golint)
    • Line 265: warning: exported type Context should have comment or be unexported (golint)
    • Line 269: warning: comment on exported type Stats should be of the form "Stats ..." (with optional leading article) (golint)
    • Line 297: warning: exported function CreateContext should have comment or be unexported (golint)
    • Line 310: warning: exported function MakeContextCurrent should have comment or be unexported (golint)
    • Line 319: warning: exported function ProcessContext should have comment or be unexported (golint)
    • Line 324: warning: exported function SuspendContext should have comment or be unexported (golint)
    • Line 329: warning: exported function DestroyContext should have comment or be unexported (golint)
    • Line 334: warning: exported function GetContextsDevice should have comment or be unexported (golint)
    • Line 343: warning: exported function OpenDevice should have comment or be unexported (golint)
    • Line 356: warning: exported function CloseDevice should have comment or be unexported (golint)
    • Line 366: warning: exported function CtxGetError should have comment or be unexported (golint)
    • Line 375: warning: exported function CtxIsExtensionPresent should have comment or be unexported (golint)
    • Line 383: warning: exported function CtxGetEnumValue should have comment or be unexported (golint)
    • Line 391: warning: exported function CtxGetString should have comment or be unexported (golint)
    • Line 401: warning: exported function CtxGetIntegerv should have comment or be unexported (golint)
    • Line 406: warning: exported function CaptureOpenDevice should have comment or be unexported (golint)
    • Line 419: warning: exported function CaptureCloseDevice should have comment or be unexported (golint)
    • Line 428: warning: exported function CaptureStart should have comment or be unexported (golint)
    • Line 434: warning: exported function CaptureStop should have comment or be unexported (golint)
    • Line 440: warning: exported function CaptureSamples should have comment or be unexported (golint)
    • Line 446: warning: exported function Enable should have comment or be unexported (golint)
    • Line 451: warning: exported function Disable should have comment or be unexported (golint)
    • Line 456: warning: exported function IsEnabled should have comment or be unexported (golint)
    • Line 462: warning: exported function GetString should have comment or be unexported (golint)
    • Line 468: warning: exported function GetBooleanv should have comment or be unexported (golint)
    • Line 481: warning: exported function GetIntegerv should have comment or be unexported (golint)
    • Line 486: warning: exported function GetFloatv should have comment or be unexported (golint)
    • Line 491: warning: exported function GetDoublev should have comment or be unexported (golint)
    • Line 496: warning: exported function GetBoolean should have comment or be unexported (golint)
    • Line 502: warning: exported function GetInteger should have comment or be unexported (golint)
    • Line 508: warning: exported function GetFloat should have comment or be unexported (golint)
    • Line 514: warning: exported function GetDouble should have comment or be unexported (golint)
    • Line 520: warning: exported function GetError should have comment or be unexported (golint)
    • Line 529: warning: exported function IsExtensionPresent should have comment or be unexported (golint)
    • Line 537: warning: exported function GetEnumValue should have comment or be unexported (golint)
    • Line 545: warning: exported function Listenerf should have comment or be unexported (golint)
    • Line 550: warning: exported function Listener3f should have comment or be unexported (golint)
    • Line 555: warning: exported function Listenerfv should have comment or be unexported (golint)
    • Line 560: warning: exported function Listeneri should have comment or be unexported (golint)
    • Line 565: warning: exported function Listener3i should have comment or be unexported (golint)
    • Line 570: warning: exported function Listeneriv should have comment or be unexported (golint)
    • Line 575: warning: exported function GetListenerf should have comment or be unexported (golint)
    • Line 582: warning: exported function GetListener3f should have comment or be unexported (golint)
    • Line 591: warning: exported function GetListenerfv should have comment or be unexported (golint)
    • Line 596: warning: exported function GetListeneri should have comment or be unexported (golint)
    • Line 603: warning: exported function GetListener3i should have comment or be unexported (golint)
    • Line 612: warning: exported function GetListeneriv should have comment or be unexported (golint)
    • Line 620: warning: exported function GenSource should have comment or be unexported (golint)
    • Line 628: warning: exported function GenSources should have comment or be unexported (golint)
    • Line 634: warning: exported function DeleteSource should have comment or be unexported (golint)
    • Line 640: warning: exported function DeleteSources should have comment or be unexported (golint)
    • Line 646: warning: exported function IsSource should have comment or be unexported (golint)
    • Line 652: warning: exported function Sourcef should have comment or be unexported (golint)
    • Line 657: warning: exported function Source3f should have comment or be unexported (golint)
    • Line 662: warning: exported function Sourcefv should have comment or be unexported (golint)
    • Line 670: warning: exported function Sourcei should have comment or be unexported (golint)
    • Line 675: warning: exported function Source3i should have comment or be unexported (golint)
    • Line 680: warning: exported function Sourceiv should have comment or be unexported (golint)
    • Line 688: warning: exported function GetSourcef should have comment or be unexported (golint)
    • Line 695: warning: exported function GetSource3f should have comment or be unexported (golint)
    • Line 704: warning: exported function GetSourcefv should have comment or be unexported (golint)
    • Line 712: warning: exported function GetSourcei should have comment or be unexported (golint)
    • Line 719: warning: exported function GetSource3i should have comment or be unexported (golint)
    • Line 728: warning: exported function GetSourceiv should have comment or be unexported (golint)
    • Line 736: warning: exported function SourcePlayv should have comment or be unexported (golint)
    • Line 741: warning: exported function SourceStopv should have comment or be unexported (golint)
    • Line 746: warning: exported function SourceRewindv should have comment or be unexported (golint)
    • Line 751: warning: exported function SourcePausev should have comment or be unexported (golint)
    • Line 756: warning: exported function SourcePlay should have comment or be unexported (golint)
    • Line 761: warning: exported function SourceStop should have comment or be unexported (golint)
    • Line 766: warning: exported function SourceRewind should have comment or be unexported (golint)
    • Line 771: warning: exported function SourcePause should have comment or be unexported (golint)
    • Line 776: warning: exported function SourceQueueBuffers should have comment or be unexported (golint)
    • Line 781: warning: exported function SourceUnqueueBuffers should have comment or be unexported (golint)
    • Line 787: warning: exported function GenBuffers should have comment or be unexported (golint)
    • Line 794: warning: exported function DeleteBuffers should have comment or be unexported (golint)
    • Line 799: warning: exported function IsBuffer should have comment or be unexported (golint)
    • Line 805: warning: exported function BufferData should have comment or be unexported (golint)
    • Line 810: warning: exported function Bufferf should have comment or be unexported (golint)
    • Line 815: warning: exported function Buffer3f should have comment or be unexported (golint)
    • Line 820: warning: exported function Bufferfv should have comment or be unexported (golint)
    • Line 825: warning: exported function Bufferi should have comment or be unexported (golint)
    • Line 830: warning: exported function Buffer3i should have comment or be unexported (golint)
    • Line 835: warning: exported function Bufferiv should have comment or be unexported (golint)
    • Line 840: warning: exported function GetBufferf should have comment or be unexported (golint)
    • Line 847: warning: exported function GetBuffer3f should have comment or be unexported (golint)
    • Line 854: warning: exported function GetBufferfv should have comment or be unexported (golint)
    • Line 859: warning: exported function GetBufferi should have comment or be unexported (golint)
    • Line 866: warning: exported function GetBuffer3i should have comment or be unexported (golint)
    • Line 873: warning: exported function GetBufferiv should have comment or be unexported (golint)
    • window/window.go
    • Line 57: warning: comment on exported type CursorMode should be of the form "CursorMode ..." (with optional leading article) (golint)
    • experimental/physics/constraint/hinge.go
    • Line 48: warning: exported method Hinge.SetMotorEnabled should have comment or be unexported (golint)
    • Line 53: warning: exported method Hinge.SetMotorSpeed should have comment or be unexported (golint)
    • Line 58: warning: exported method Hinge.SetMotorMaxForce should have comment or be unexported (golint)
    • util/logger/console.go
    • Line 69: warning: exported method Console.Close should have comment or be unexported (golint)
    • Line 73: warning: exported method Console.Sync should have comment or be unexported (golint)
    • loader/collada/common.go
    • Line 16: warning: comment on exported type Source should be of the form "Source ..." (with optional leading article) (golint)
    • Line 43: warning: comment on exported type NameArray should be of the form "NameArray ..." (with optional leading article) (golint)
    • Line 61: warning: comment on exported type FloatArray should be of the form "FloatArray ..." (with optional leading article) (golint)
    • Line 78: warning: comment on exported type Accessor should be of the form "Accessor ..." (with optional leading article) (golint)
    • experimental/physics/narrowphase.go
    • Line 14: warning: comment on exported type Narrowphase should be of the form "Narrowphase ..." (with optional leading article) (golint)
    • Line 254: warning: don't use underscores in Go names; var point_on_plane_to_sphere should be pointOnPlaneToSphere (golint)
    • Line 255: warning: don't use underscores in Go names; var plane_to_sphere_ortho should be planeToSphereOrtho (golint)
    • Line 279: warning: comment on exported method Narrowphase.SphereConvex should be of the form "SphereConvex ..." (golint)
    • Line 372: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 426: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 569: warning: comment on exported method Narrowphase.PlaneConvex should be of the form "PlaneConvex ..." (golint)
    • geometry/tube.go
    • Line 15: warning: exported function CalculateNormals should have comment or be unexported (golint)
    • Line 71: warning: exported function NewRibbon should have comment or be unexported (golint)
    • Line 139: warning: exported function NewTube should have comment or be unexported (golint)
    • gls/consts.go
    • Line 8: warning: exported const VERSION_1_0 should have comment (or a comment on this block) or be unexported (golint)
    • Line 452: warning: don't use underscores in Go names; const FLOAT_MAT2x3 should be FLOATMAT2x3 (golint)
    • Line 453: warning: don't use underscores in Go names; const FLOAT_MAT2x4 should be FLOATMAT2x4 (golint)
    • Line 454: warning: don't use underscores in Go names; const FLOAT_MAT3x2 should be FLOATMAT3x2 (golint)
    • Line 455: warning: don't use underscores in Go names; const FLOAT_MAT3x4 should be FLOATMAT3x4 (golint)
    • Line 456: warning: don't use underscores in Go names; const FLOAT_MAT4x2 should be FLOATMAT4x2 (golint)
    • Line 457: warning: don't use underscores in Go names; const FLOAT_MAT4x3 should be FLOATMAT4x3 (golint)
    • math32/math.go
    • Line 15: warning: exported const Pi should have comment or be unexported (golint)
    • Line 19: warning: exported var Infinity should have comment or be unexported (golint)
    • Line 57: warning: exported function Abs should have comment or be unexported (golint)
    • Line 61: warning: exported function Acos should have comment or be unexported (golint)
    • Line 65: warning: exported function Asin should have comment or be unexported (golint)
    • Line 69: warning: exported function Atan should have comment or be unexported (golint)
    • Line 73: warning: exported function Atan2 should have comment or be unexported (golint)
    • Line 77: warning: exported function Ceil should have comment or be unexported (golint)
    • Line 81: warning: exported function Cos should have comment or be unexported (golint)
    • Line 85: warning: exported function Floor should have comment or be unexported (golint)
    • Line 89: warning: exported function Inf should have comment or be unexported (golint)
    • Line 93: warning: exported function Round should have comment or be unexported (golint)
    • Line 97: warning: exported function IsNaN should have comment or be unexported (golint)
    • Line 101: warning: exported function Sin should have comment or be unexported (golint)
    • Line 105: warning: exported function Sqrt should have comment or be unexported (golint)
    • Line 109: warning: exported function Max should have comment or be unexported (golint)
    • Line 113: warning: exported function Min should have comment or be unexported (golint)
    • Line 117: warning: exported function Mod should have comment or be unexported (golint)
    • Line 121: warning: exported function NaN should have comment or be unexported (golint)
    • Line 125: warning: exported function Pow should have comment or be unexported (golint)
    • Line 129: warning: exported function Tan should have comment or be unexported (golint)
    • util/logger/net.go
    • Line 34: warning: comment on exported method Net.Close should be of the form "Close ..." (golint)
    • Line 40: warning: exported method Net.Sync should have comment or be unexported (golint)
    • experimental/physics/material.go
    • Line 7: warning: exported type Material should have comment or be unexported (golint)
    • Line 13: warning: exported type ContactMaterial should have comment or be unexported (golint)
    • Line 24: warning: exported function NewContactMaterial should have comment or be unexported (golint)
    • loader/collada/library_geometries.go
    • Line 14: warning: comment on exported type LibraryGeometries should be of the form "LibraryGeometries ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported type Geometry should be of the form "Geometry ..." (with optional leading article) (golint)
    • Line 60: warning: comment on exported type Mesh should be of the form "Mesh ..." (with optional leading article) (golint)
    • Line 88: warning: comment on exported type Vertices should be of the form "Vertices ..." (with optional leading article) (golint)
    • Line 106: warning: comment on exported type Input should be of the form "Input ..." (with optional leading article) (golint)
    • Line 120: warning: comment on exported type Polylist should be of the form "Polylist ..." (with optional leading article) (golint)
    • Line 144: warning: comment on exported type InputShared should be of the form "InputShared ..." (with optional leading article) (golint)
    • Line 154: warning: comment on exported type Triangles should be of the form "Triangles ..." (with optional leading article) (golint)
    • Line 165: warning: comment on exported type Lines should be of the form "Lines ..." (with optional leading article) (golint)
    • Line 187: warning: comment on exported type LineStrips should be of the form "LineStrips ..." (with optional leading article) (golint)
    • Line 198: warning: comment on exported type Trifans should be of the form "Trifans ..." (with optional leading article) (golint)
    • Line 209: warning: comment on exported type Tristrips should be of the form "Tristrips ..." (with optional leading article) (golint)
    • loader/collada/library_lights.go
    • Line 14: warning: comment on exported type LibraryLights should be of the form "LibraryLights ..." (with optional leading article) (golint)
    • Line 36: warning: comment on exported type Light should be of the form "Light ..." (with optional leading article) (golint)
    • Line 66: warning: comment on exported type Ambient should be of the form "Ambient ..." (with optional leading article) (golint)
    • Line 81: warning: comment on exported type Directional should be of the form "Directional ..." (with optional leading article) (golint)
    • Line 96: warning: comment on exported type Point should be of the form "Point ..." (with optional leading article) (golint)
    • Line 117: warning: comment on exported type Spot should be of the form "Spot ..." (with optional leading article) (golint)
    • Line 142: warning: comment on exported type FloatValue should be of the form "FloatValue ..." (with optional leading article) (golint)
    • Line 159: warning: comment on exported type LightColor should be of the form "LightColor ..." (with optional leading article) (golint)
    • math32/spline.go
    • Line 11: warning: exported type Spline should have comment or be unexported (golint)
    • Line 15: warning: exported function NewSpline should have comment or be unexported (golint)
    • Line 23: warning: exported method Spline.InitFromArray should have comment or be unexported (golint)
    • Line 23: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • loader/gltf/gltf.go
    • Line 5: warning: package comment should be of the form "Package gltf ..." (golint)
    • Line 83: warning: comment on exported type AnimationSampler should be of the form "AnimationSampler ..." (with optional leading article) (golint)
    • Line 304: warning: comment on exported type Skin should be of the form "Skin ..." (with optional leading article) (golint)
    • Line 439: warning: exported type GLB should have comment or be unexported (golint)
    • Line 445: warning: exported type GLBHeader should have comment or be unexported (golint)
    • Line 451: warning: exported type GLBChunk should have comment or be unexported (golint)
    • Line 457: warning: exported const GLBMagic should have comment (or a comment on this block) or be unexported (golint)
    • gls/gls-desktop.go
    • Line 384: warning: exported method GLS.StencilOp should have comment or be unexported (golint)
    • Line 390: warning: exported method GLS.StencilFunc should have comment or be unexported (golint)
    • Line 396: warning: comment on exported method GLS.StencilMask should be of the form "StencilMask ..." (golint)
    • app/app-desktop.go
    • Line 26: warning: comment on exported type Application should be of the form "Application ..." (with optional leading article) (golint)
    • experimental/physics/equation/jacobian.go
    • Line 27: warning: comment on exported method JacobianElement.SetRotational should be of the form "SetRotational ..." (golint)
    • Line 46: warning: comment on exported method JacobianElement.MultiplyVectors should be of the form "MultiplyVectors ..." (golint)
    • experimental/physics/solver/solver.go
    • Line 5: warning: package comment should be of the form "Package solver ..." (golint)
    • Line 28: warning: comment on exported type Solver should be of the form "Solver ..." (with optional leading article) (golint)
    • experimental/physics/object/body.go
    • Line 102: warning: comment on exported const Static should be of the form "Static ..." (golint)
    • Line 108: warning: comment on exported const Kinematic should be of the form "Kinematic ..." (golint)
    • Line 115: warning: comment on exported const Dynamic should be of the form "Dynamic ..." (golint)
    • Line 124: warning: comment on exported type BodySleepState should be of the form "BodySleepState ..." (with optional leading article) (golint)
    • Line 128: warning: exported const Awake should have comment (or a comment on this block) or be unexported (golint)
    • Line 141: warning: comment on exported type HullType should be of the form "HullType ..." (with optional leading article) (golint)
    • Line 145: warning: exported const Sphere should have comment (or a comment on this block) or be unexported (golint)
    • Line 219: warning: comment on exported method Body.SetShape should be of the form "SetShape ..." (golint)
    • Line 226: warning: exported method Body.Shape should have comment or be unexported (golint)
    • Line 231: warning: exported method Body.BoundingBox should have comment or be unexported (golint)
    • Line 240: warning: exported method Body.SetMass should have comment or be unexported (golint)
    • Line 260: warning: exported method Body.SetIndex should have comment or be unexported (golint)
    • Line 265: warning: exported method Body.SetName should have comment or be unexported (golint)
    • Line 270: warning: exported method Body.Name should have comment or be unexported (golint)
    • Line 275: warning: exported method Body.Index should have comment or be unexported (golint)
    • Line 280: warning: exported method Body.Material should have comment or be unexported (golint)
    • Line 285: warning: exported method Body.SetAllowSleep should have comment or be unexported (golint)
    • Line 290: warning: exported method Body.AllowSleep should have comment or be unexported (golint)
    • Line 295: warning: exported method Body.SleepSpeedLimit should have comment or be unexported (golint)
    • Line 300: warning: exported method Body.SleepState should have comment or be unexported (golint)
    • Line 328: warning: exported method Body.BodyType should have comment or be unexported (golint)
    • Line 333: warning: exported method Body.SetWakeUpAfterNarrowphase should have comment or be unexported (golint)
    • Line 338: warning: exported method Body.WakeUpAfterNarrowphase should have comment or be unexported (golint)
    • Line 357: warning: exported method Body.InvMassEff should have comment or be unexported (golint)
    • Line 362: warning: exported method Body.InvRotInertiaWorldEff should have comment or be unexported (golint)
    • Line 367: warning: exported method Body.Position should have comment or be unexported (golint)
    • Line 372: warning: exported method Body.Quaternion should have comment or be unexported (golint)
    • Line 377: warning: exported method Body.SetVelocity should have comment or be unexported (golint)
    • Line 382: warning: exported method Body.Velocity should have comment or be unexported (golint)
    • Line 387: warning: exported method Body.SetAngularVelocity should have comment or be unexported (golint)
    • Line 392: warning: exported method Body.AngularVelocity should have comment or be unexported (golint)
    • Line 397: warning: exported method Body.Force should have comment or be unexported (golint)
    • Line 402: warning: exported method Body.Torque should have comment or be unexported (golint)
    • Line 407: warning: exported method Body.SetLinearDamping should have comment or be unexported (golint)
    • Line 412: warning: exported method Body.LinearDamping should have comment or be unexported (golint)
    • Line 417: warning: exported method Body.SetAngularDamping should have comment or be unexported (golint)
    • Line 422: warning: exported method Body.AngularDamping should have comment or be unexported (golint)
    • Line 427: warning: exported method Body.ApplyDamping should have comment or be unexported (golint)
    • Line 433: warning: exported method Body.SetLinearFactor should have comment or be unexported (golint)
    • Line 438: warning: exported method Body.LinearFactor should have comment or be unexported (golint)
    • Line 443: warning: exported method Body.SetAngularFactor should have comment or be unexported (golint)
    • Line 448: warning: exported method Body.AngularFactor should have comment or be unexported (golint)
    • Line 486: warning: comment on exported method Body.SleepTick should be of the form "SleepTick ..." (golint)
    • Line 506: warning: comment on exported method Body.Sleeping should be of the form "Sleeping ..." (golint)
    • Line 524: warning: exported method Body.CollisionResponse should have comment or be unexported (golint)
    • Line 553: warning: comment on exported method Body.UpdateEffectiveMassProperties should be of the form "UpdateEffectiveMassProperties ..." (golint)
    • Line 569: warning: comment on exported method Body.UpdateMassProperties should be of the form "UpdateMassProperties ..." (golint)
    • Line 591: warning: comment on exported method Body.UpdateInertiaWorld should be of the form "UpdateInertiaWorld ..." (golint)
    • Line 608: warning: comment on exported method Body.ApplyForceField should be of the form "ApplyForceField ..." (golint)
    • Line 614: warning: comment on exported method Body.ApplyForce should be of the form "ApplyForce ..." (golint)
    • Line 631: warning: comment on exported method Body.ApplyLocalForce should be of the form "ApplyLocalForce ..." (golint)
    • Line 647: warning: comment on exported method Body.ApplyImpulse should be of the form "ApplyImpulse ..." (golint)
    • Line 676: warning: comment on exported method Body.ApplyLocalImpulse should be of the form "ApplyLocalImpulse ..." (golint)
    • Line 692: warning: comment on exported method Body.GetVelocityAtWorldPoint should be of the form "GetVelocityAtWorldPoint ..." (golint)
    • Line 702: warning: comment on exported method Body.Integrate should be of the form "Integrate ..." (golint)
    • graphic/graphic.go
    • Line 255: warning: comment on exported method Graphic.ModelMatrix should be of the form "ModelMatrix ..." (golint)
    • experimental/physics/debug.go
    • Line 17: warning: comment on exported type DebugHelper should be of the form "DebugHelper ..." (with optional leading article) (golint)
    • Line 21: warning: exported function ShowWorldFace should have comment or be unexported (golint)
    • Line 41: warning: exported function ShowPenAxis should have comment or be unexported (golint)
    • Line 71: warning: exported function ShowContact should have comment or be unexported (golint)
    • loader/collada/library_animations.go
    • Line 13: warning: comment on exported type LibraryAnimations should be of the form "LibraryAnimations ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type Animation should be of the form "Animation ..." (with optional leading article) (golint)
    • Line 66: warning: comment on exported type Sampler should be of the form "Sampler ..." (with optional leading article) (golint)
    • Line 85: warning: comment on exported type Channel should be of the form "Channel ..." (with optional leading article) (golint)
    • experimental/physics/equation/equation.go
    • Line 87: warning: exported method Equation.SetBodyA should have comment or be unexported (golint)
    • Line 92: warning: exported method Equation.BodyA should have comment or be unexported (golint)
    • Line 97: warning: exported method Equation.SetBodyB should have comment or be unexported (golint)
    • Line 102: warning: exported method Equation.BodyB should have comment or be unexported (golint)
    • Line 107: warning: exported method Equation.JeA should have comment or be unexported (golint)
    • Line 112: warning: exported method Equation.JeB should have comment or be unexported (golint)
    • Line 141: warning: comment on exported method Equation.Eps should be of the form "Eps ..." (golint)
    • Line 153: warning: comment on exported method Equation.Multiplier should be of the form "Multiplier ..." (golint)
    • Line 159: warning: comment on exported method Equation.SetEnabled should be of the form "SetEnabled ..." (golint)
    • experimental/physics/constraint/constraint.go
    • Line 13: warning: exported type IBody should have comment or be unexported (golint)
    • Line 22: warning: exported type IConstraint should have comment or be unexported (golint)
    • Line 74: warning: exported method Constraint.CollideConnected should have comment or be unexported (golint)
    • Line 79: warning: exported method Constraint.BodyA should have comment or be unexported (golint)
    • Line 84: warning: exported method Constraint.BodyB should have comment or be unexported (golint)
    • Line 89: warning: comment on exported method Constraint.SetEnabled should be of the form "SetEnabled ..." (golint)
    • math32/vector3.go
    • Line 670: warning: comment on exported method Vector3.AlmostEquals should be of the form "AlmostEquals ..." (golint)
    • gui/window.go
    • Line 126: warning: comment on exported method Window.Remove should be of the form "Remove ..." (golint)
    • animation/channel.go
    • Line 117: warning: exported function NewPositionChannel should have comment or be unexported (golint)
    • Line 157: warning: exported function NewRotationChannel should have comment or be unexported (golint)
    • Line 201: warning: exported function NewScaleChannel should have comment or be unexported (golint)
    • Line 244: warning: exported function NewMorphChannel should have comment or be unexported (golint)
    • experimental/physics/equation/friction.go
    • Line 34: warning: exported method Friction.SetTangent should have comment or be unexported (golint)
    • Line 39: warning: exported method Friction.Tangent should have comment or be unexported (golint)
    • Line 44: warning: exported method Friction.SetRA should have comment or be unexported (golint)
    • Line 49: warning: exported method Friction.RA should have comment or be unexported (golint)
    • Line 54: warning: exported method Friction.SetRB should have comment or be unexported (golint)
    • Line 59: warning: exported method Friction.RB should have comment or be unexported (golint)
    • Line 64: warning: comment on exported method Friction.ComputeB should be of the form "ComputeB ..." (golint)
    • gls/gls.go
    • Line 49: warning: exported const FloatSize should have comment (or a comment on this block) or be unexported (golint)
    • experimental/physics/solver/gs.go
    • Line 5: warning: package comment should be of the form "Package solver ..." (golint)
    • Line 43: warning: exported method GaussSeidel.Reset should have comment or be unexported (golint)
    • Line 56: warning: comment on exported method GaussSeidel.Solve should be of the form "Solve ..." (golint)
    • experimental/physics/simulation.go
    • Line 41: warning: don't use underscores in Go names; struct field default_dt should be defaultDt (golint)
    • Line 86: warning: exported method Simulation.Scene should have comment or be unexported (golint)
    • Line 184: warning: exported method Simulation.Step should have comment or be unexported (golint)
    • Line 190: warning: comment on exported method Simulation.StepPlus should be of the form "StepPlus ..." (golint)
    • Line 256: warning: exported method Simulation.RemoveConstraint should have comment or be unexported (golint)
    • Line 261: warning: exported method Simulation.AddMaterial should have comment or be unexported (golint)
    • Line 266: warning: exported method Simulation.RemoveMaterial should have comment or be unexported (golint)
    • Line 271: warning: comment on exported method Simulation.AddContactMaterial should be of the form "AddContactMaterial ..." (golint)
    • Line 299: warning: exported type CollideEvent should have comment or be unexported (golint)
    • Line 304: warning: comment on exported type ContactEvent should be of the form "ContactEvent ..." (with optional leading article) (golint)
    • Line 311: warning: exported const BeginContactEvent should have comment (or a comment on this block) or be unexported (golint)
    • window/glfw.go
    • Line 13: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 416: warning: comment on exported method GlfwWindow.GetScale should be of the form "GetScale ..." (golint)
    • Line 484: warning: comment on exported method GlfwWindow.DisposeAllCustomCursors should be of the form "DisposeAllCustomCursors ..." (golint)
    • geometry/morph.go
    • Line 130: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • loader/collada/library_images.go
    • Line 13: warning: comment on exported type LibraryImages should be of the form "LibraryImages ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type Image should be of the form "Image ..." (with optional leading article) (golint)
    • Line 59: warning: comment on exported type InitFrom should be of the form "InitFrom ..." (with optional leading article) (golint)
    • material/material.go
    • Line 235: warning: exported method Material.SetDepthMask should have comment or be unexported (golint)
    • Line 240: warning: exported method Material.SetDepthTest should have comment or be unexported (golint)
    • Line 245: warning: exported method Material.SetDepthFunc should have comment or be unexported (golint)
    • Line 250: warning: exported method Material.SetBlending should have comment or be unexported (golint)
    • Line 255: warning: exported method Material.SetLineWidth should have comment or be unexported (golint)
    • Line 260: warning: exported method Material.SetPolygonOffset should have comment or be unexported (golint)
    • experimental/physics/equation/contact.go
    • Line 37: warning: exported method Contact.SetRestitution should have comment or be unexported (golint)
    • Line 42: warning: exported method Contact.Restitution should have comment or be unexported (golint)
    • Line 47: warning: exported method Contact.SetNormal should have comment or be unexported (golint)
    • Line 52: warning: exported method Contact.Normal should have comment or be unexported (golint)
    • Line 57: warning: exported method Contact.SetRA should have comment or be unexported (golint)
    • Line 62: warning: exported method Contact.RA should have comment or be unexported (golint)
    • Line 67: warning: exported method Contact.SetRB should have comment or be unexported (golint)
    • Line 72: warning: exported method Contact.RB should have comment or be unexported (golint)
    • Line 77: warning: comment on exported method Contact.ComputeB should be of the form "ComputeB ..." (golint)
    • math32/curves.go
    • Line 13: warning: exported method Curve.GetPoints should have comment or be unexported (golint)
    • Line 17: warning: exported method Curve.GetLength should have comment or be unexported (golint)
    • Line 21: warning: exported method Curve.SetLength should have comment or be unexported (golint)
    • loader/collada/collada.go
    • Line 5: warning: package comment should be of the form "Package collada ..." (golint)
    • Line 64: warning: exported method Decoder.SetDirImages should have comment or be unexported (golint)
    • Line 103: warning: comment on exported type Contributor should be of the form "Contributor ..." (with optional leading article) (golint)
    • Line 144: warning: comment on exported type Asset should be of the form "Asset ..." (with optional leading article) (golint)
    • Line 165: warning: comment on exported type Scene should be of the form "Scene ..." (with optional leading article) (golint)
    • Line 180: warning: comment on exported type InstanceVisualScene should be of the form "InstanceVisualScene ..." (with optional leading article) (golint)
    • experimental/collision/raycaster.go
    • Line 132: warning: comment on exported method Raycaster.SetFromCamera should be of the form "SetFromCamera ..." (golint)
    • Line 225: warning: comment on exported method Raycaster.RaycastPoints should be of the form "RaycastPoints ..." (golint)
    • Line 282: warning: comment on exported method Raycaster.RaycastMesh should be of the form "RaycastMesh ..." (golint)
    • Line 360: warning: comment on exported method Raycaster.RaycastLines should be of the form "RaycastLines ..." (golint)
    • Line 366: warning: comment on exported method Raycaster.RaycastLineStrip should be of the form "RaycastLineStrip ..." (golint)
    • math32/matrix4.go
    • Line 767: warning: comment on exported method Matrix4.GetColumnVector3 should be of the form "GetColumnVector3 ..." (golint)
    • Line 772: warning: comment on exported method Matrix4.GetRowVector3 should be of the form "GetRowVector3 ..." (golint)
    • loader/collada/library_effects.go
    • Line 14: warning: comment on exported type LibraryEffects should be of the form "LibraryEffects ..." (with optional leading article) (golint)
    • Line 36: warning: comment on exported type Effect should be of the form "Effect ..." (with optional leading article) (golint)
    • Line 60: warning: comment on exported type ProfileCOMMON should be of the form "ProfileCOMMON ..." (with optional leading article) (golint)
    • Line 94: warning: comment on exported type Newparam should be of the form "Newparam ..." (with optional leading article) (golint)
    • Line 116: warning: comment on exported type Surface should be of the form "Surface ..." (with optional leading article) (golint)
    • Line 135: warning: comment on exported type Sampler2D should be of the form "Sampler2D ..." (with optional leading article) (golint)
    • Line 150: warning: comment on exported type Blinn should be of the form "Blinn ..." (with optional leading article) (golint)
    • Line 183: warning: comment on exported type Constant should be of the form "Constant ..." (with optional leading article) (golint)
    • Line 195: warning: comment on exported type Lambert should be of the form "Lambert ..." (with optional leading article) (golint)
    • Line 209: warning: comment on exported type Phong should be of the form "Phong ..." (with optional leading article) (golint)
    • Line 273: warning: comment on exported type Color should be of the form "Color ..." (with optional leading article) (golint)
    • Line 287: warning: comment on exported type Float should be of the form "Float ..." (with optional leading article) (golint)
    • Line 301: warning: comment on exported type Texture should be of the form "Texture ..." (with optional leading article) (golint)
    • loader/collada/library_visual_scenes.go
    • Line 14: warning: comment on exported type LibraryVisualScenes should be of the form "LibraryVisualScenes ..." (with optional leading article) (golint)
    • Line 99: warning: comment on exported type Matrix should be of the form "Matrix ..." (with optional leading article) (golint)
    • Line 113: warning: comment on exported type Rotate should be of the form "Rotate ..." (with optional leading article) (golint)
    • Line 127: warning: comment on exported type Translate should be of the form "Translate ..." (with optional leading article) (golint)
    • Line 141: warning: comment on exported type Scale should be of the form "Scale ..." (with optional leading article) (golint)
    • Line 155: warning: comment on exported type InstanceGeometry should be of the form "InstanceGeometry ..." (with optional leading article) (golint)
    • Line 173: warning: comment on exported type BindMaterial should be of the form "BindMaterial ..." (with optional leading article) (golint)
    • Line 195: warning: comment on exported type InstanceMaterial should be of the form "InstanceMaterial ..." (with optional leading article) (golint)
    • Line 218: warning: comment on exported type Bind should be of the form "Bind ..." (with optional leading article) (golint)
    • Line 226: warning: comment on exported type BindVertexInput should be of the form "BindVertexInput ..." (with optional leading article) (golint)
    • texture/texture2D.go
    • Line 12: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • experimental/collision/shape/convexhull.go
    • Line 25: warning: exported function NewConvexHull should have comment or be unexported (golint)
    • Line 89: warning: comment on exported method ConvexHull.ComputeWorldFaceNormalsAndUniqueEdges should be of the form "ComputeWorldFaceNormalsAndUniqueEdges ..." (golint)
    • Line 104: warning: exported method ConvexHull.Faces should have comment or be unexported (golint)
    • Line 109: warning: exported method ConvexHull.FaceNormals should have comment or be unexported (golint)
    • Line 114: warning: exported method ConvexHull.WorldFaceNormals should have comment or be unexported (golint)
    • Line 119: warning: exported method ConvexHull.UniqueEdges should have comment or be unexported (golint)
    • Line 124: warning: exported method ConvexHull.WorldUniqueEdges should have comment or be unexported (golint)
    • Line 208: warning: comment on exported method ConvexHull.TestPenetrationAxis should be of the form "TestPenetrationAxis ..." (golint)
    • Line 224: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 250: warning: comment on exported method ConvexHull.ClipAgainstHull should be of the form "ClipAgainstHull ..." (golint)
    • Line 285: warning: exported method ConvexHull.WorldFace should have comment or be unexported (golint)
    • gui/edit.go
    • Line 112: warning: comment on exported method Edit.OnFocusLost should be of the form "OnFocusLost ..." (golint)
    • audio/ov/vorbisfile.go
    • Line 33: warning: exported type VorbisInfo should have comment or be unexported (golint)
    • Line 44: warning: exported const Eread should have comment (or a comment on this block) or be unexported (golint)
    • Line 146: warning: comment on exported function PcmSeek should be of the form "PcmSeek ..." (golint)
    • loader/collada/library_materials.go
    • Line 13: warning: comment on exported type LibraryMaterials should be of the form "LibraryMaterials ..." (with optional leading article) (golint)
    • Line 35: warning: comment on exported type Material should be of the form "Material ..." (with optional leading article) (golint)
    • Line 53: warning: comment on exported type InstanceEffect should be of the form "InstanceEffect ..." (with optional leading article) (golint)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words