Preparing report...

Report for github.com/phrozen/rayito

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


gocyclo75%

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.


golint0%

Golint is a linter for Go source code.

    • rayito/vector.go
    • Line 9: warning: exported type Vector should have comment or be unexported (golint)
    • Line 13: warning: comment on exported method Vector.Dot should be of the form "Dot ..." (golint)
    • Line 18: warning: exported method Vector.Cross should have comment or be unexported (golint)
    • Line 25: warning: exported method Vector.Module should have comment or be unexported (golint)
    • Line 29: warning: exported method Vector.Normalize should have comment or be unexported (golint)
    • Line 36: warning: exported method Vector.Add should have comment or be unexported (golint)
    • Line 40: warning: exported method Vector.Sub should have comment or be unexported (golint)
    • Line 44: warning: exported method Vector.Mul should have comment or be unexported (golint)
    • rayito/color.go
    • Line 10: warning: exported type Color should have comment or be unexported (golint)
    • Line 14: warning: exported method Color.Add should have comment or be unexported (golint)
    • Line 18: warning: exported method Color.Mul should have comment or be unexported (golint)
    • Line 26: warning: exported method Color.ToPixel should have comment or be unexported (golint)
    • rayito/main.go
    • Line 13: warning: exported const MAX_DIST should have comment (or a comment on this block) or be unexported (golint)
    • Line 99: warning: don't use underscores in Go names; var par_sqrt should be parSqrt (golint)
    • Line 130: warning: don't use underscores in Go names; var srq_oversampling should be srqOversampling (golint)
    • rayito/primitives.go
    • Line 9: warning: comment on exported type Object should be of the form "Object ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type Sphere should be of the form "Sphere ..." (with optional leading article) (golint)
    • Line 24: warning: exported method Sphere.Type should have comment or be unexported (golint)
    • Line 28: warning: exported method Sphere.Material should have comment or be unexported (golint)
    • Line 32: warning: exported method Sphere.Intersect should have comment or be unexported (golint)
    • Line 60: warning: comment on exported type Plane should be of the form "Plane ..." (with optional leading article) (golint)
    • Line 67: warning: exported method Plane.Type should have comment or be unexported (golint)
    • Line 71: warning: exported method Plane.Material should have comment or be unexported (golint)
    • Line 75: warning: exported method Plane.Intersect should have comment or be unexported (golint)
    • rayito/ray.go
    • Line 4: warning: comment on exported type Ray should be of the form "Ray ..." (with optional leading article) (golint)
    • rayito/scene.go
    • Line 14: warning: comment on exported type Scene should be of the form "Scene ..." (with optional leading article) (golint)
    • Line 38: warning: exported function NewScene should have comment or be unexported (golint)
    • Line 165: warning: comment on exported function ParseVector should be of the form "ParseVector ..." (golint)
    • Line 173: warning: exported function ParseColor should have comment or be unexported (golint)
    • Line 180: warning: exported function ParseMaterial 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!