Preparing report...

Report for github.com/fogleman/vol

B    Not bad!    Found 6 issues across 5 files

Tweet

gofmt80%

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!


gocyclo80%

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.

    • vol/render.go
    • Line 16: warning: cyclomatic complexity 23 of function Render() is high (> 15) (gocyclo)

golint20%

Golint is a linter for Go source code.

    • vol/render.go
    • Line 11: warning: exported type Window should have comment or be unexported (golint)
    • Line 16: warning: exported function Render should have comment or be unexported (golint)
    • vol/util.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: exported function LoadImage should have comment or be unexported (golint)
    • Line 20: warning: exported function SavePNG should have comment or be unexported (golint)
    • vol/vector.go
    • Line 8: warning: exported type Vector should have comment or be unexported (golint)
    • Line 12: warning: exported function V should have comment or be unexported (golint)
    • Line 16: warning: exported function RandomUnitVector should have comment or be unexported (golint)
    • Line 28: warning: exported method Vector.Length should have comment or be unexported (golint)
    • Line 32: warning: exported method Vector.Dot should have comment or be unexported (golint)
    • Line 36: warning: exported method Vector.Cross should have comment or be unexported (golint)
    • Line 43: warning: exported method Vector.Normalize should have comment or be unexported (golint)
    • Line 48: warning: exported method Vector.Add should have comment or be unexported (golint)
    • Line 52: warning: exported method Vector.Sub should have comment or be unexported (golint)
    • Line 56: warning: exported method Vector.Mul should have comment or be unexported (golint)
    • Line 60: warning: exported method Vector.Div should have comment or be unexported (golint)
    • Line 64: warning: exported method Vector.AddScalar should have comment or be unexported (golint)
    • Line 68: warning: exported method Vector.SubScalar should have comment or be unexported (golint)
    • Line 72: warning: exported method Vector.MulScalar should have comment or be unexported (golint)
    • Line 76: warning: exported method Vector.DivScalar should have comment or be unexported (golint)
    • Line 80: warning: exported method Vector.Min should have comment or be unexported (golint)
    • Line 84: warning: exported method Vector.Max should have comment or be unexported (golint)
    • vol/matrix.go
    • Line 5: warning: exported type Matrix should have comment or be unexported (golint)
    • Line 12: warning: exported function Identity should have comment or be unexported (golint)
    • Line 20: warning: exported function Translate should have comment or be unexported (golint)
    • Line 28: warning: exported function Scale should have comment or be unexported (golint)
    • Line 36: warning: exported function Rotate should have comment or be unexported (golint)
    • Line 48: warning: exported function Frustum should have comment or be unexported (golint)
    • Line 60: warning: exported function Orthographic should have comment or be unexported (golint)
    • Line 68: warning: exported function Perspective should have comment or be unexported (golint)
    • Line 74: warning: exported function LookAt should have comment or be unexported (golint)
    • Line 88: warning: exported method Matrix.Translate should have comment or be unexported (golint)
    • Line 92: warning: exported method Matrix.Scale should have comment or be unexported (golint)
    • Line 96: warning: exported method Matrix.Rotate should have comment or be unexported (golint)
    • Line 100: warning: exported method Matrix.Frustum should have comment or be unexported (golint)
    • Line 104: warning: exported method Matrix.Orthographic should have comment or be unexported (golint)
    • Line 108: warning: exported method Matrix.Perspective should have comment or be unexported (golint)
    • Line 112: warning: exported method Matrix.Mul should have comment or be unexported (golint)
    • Line 112: warning: receiver name a should be consistent with previous receiver name m for Matrix (golint)
    • Line 133: warning: exported method Matrix.MulPosition should have comment or be unexported (golint)
    • Line 133: warning: receiver name a should be consistent with previous receiver name m for Matrix (golint)
    • Line 140: warning: exported method Matrix.MulPositionW should have comment or be unexported (golint)
    • Line 140: warning: receiver name a should be consistent with previous receiver name m for Matrix (golint)
    • Line 148: warning: exported method Matrix.MulDirection should have comment or be unexported (golint)
    • Line 148: warning: receiver name a should be consistent with previous receiver name m for Matrix (golint)
    • Line 155: warning: exported method Matrix.Transpose should have comment or be unexported (golint)
    • Line 155: warning: receiver name a should be consistent with previous receiver name m for Matrix (golint)
    • Line 163: warning: exported method Matrix.Determinant should have comment or be unexported (golint)
    • Line 163: warning: receiver name a should be consistent with previous receiver name m for Matrix (golint)
    • Line 178: warning: exported method Matrix.Inverse should have comment or be unexported (golint)
    • Line 178: warning: receiver name a should be consistent with previous receiver name m for Matrix (golint)

license0%

Checks whether your project has a LICENSE file.


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!