Preparing report...

Report for github.com/LSFN/lsfn

B    Not bad!    Found 6 issues across 5 files

Tweet

gofmt60%

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!


gocyclo100%

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.

No problems detected. Good job!


golint40%

Golint is a linter for Go source code.

    • lsfn/pkg/engine/game.go
    • Line 9: warning: exported type Sensor should have comment or be unexported (golint)
    • Line 15: warning: exported type Part should have comment or be unexported (golint)
    • Line 19: warning: exported type GPSSensor should have comment or be unexported (golint)
    • Line 25: warning: exported method GPSSensor.Update should have comment or be unexported (golint)
    • Line 40: warning: exported method GPSSensor.Describe should have comment or be unexported (golint)
    • Line 49: warning: exported type GPS should have comment or be unexported (golint)
    • Line 53: warning: exported method GPS.Register should have comment or be unexported (golint)
    • Line 57: warning: exported type Ship should have comment or be unexported (golint)
    • Line 66: warning: exported method Ship.AddSensor should have comment or be unexported (golint)
    • Line 72: warning: exported method Ship.RegisterPart should have comment or be unexported (golint)
    • Line 77: warning: exported type Game should have comment or be unexported (golint)
    • Line 83: warning: exported method Ship.Describe should have comment or be unexported (golint)
    • Line 96: warning: exported function NewGame should have comment or be unexported (golint)
    • Line 104: warning: exported method Game.AddShip should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign0%

IneffAssign detects ineffectual assignments in Go code.

    • lsfn/pkg/engine/game.go
    • Line 6: warning: no required module provides package github.com/LSFN/lsfn/api/proto; to add it: (ineffassign)
    • Line 6: warning: could not import github.com/LSFN/lsfn/api/proto (invalid package name: "") (ineffassign)
    • lsfn/cmd/ship/main.go
    • Line 9: warning: no required module provides package github.com/LSFN/lsfn/api/proto; to add it: (ineffassign)
    • Line 9: warning: could not import github.com/LSFN/lsfn/api/proto (invalid package name: "") (ineffassign)
    • lsfn/cmd/environment/main.go
    • Line 10: warning: no required module provides package github.com/LSFN/lsfn/api/proto; to add it: (ineffassign)
    • Line 10: warning: could not import github.com/LSFN/lsfn/api/proto (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!