Preparing report...

Report for github.com/moethu/gocodegraph

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


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!


golint21%

Golint is a linter for Go source code.

    • gocodegraph/components/addition.go
    • Line 9: warning: exported method Addition.Init should have comment or be unexported (golint)
    • Line 18: warning: exported type Addition should have comment or be unexported (golint)
    • Line 25: warning: exported method Addition.GetPosition should have comment or be unexported (golint)
    • Line 29: warning: exported method Addition.Solve should have comment or be unexported (golint)
    • Line 35: warning: exported method Addition.GetId should have comment or be unexported (golint)
    • Line 38: warning: exported method Addition.GetInputs should have comment or be unexported (golint)
    • Line 42: warning: exported method Addition.GetOutputs should have comment or be unexported (golint)
    • Line 45: warning: exported method Addition.GetInput should have comment or be unexported (golint)
    • Line 49: warning: exported method Addition.GetOutput should have comment or be unexported (golint)
    • gocodegraph/node/edge.go
    • Line 3: warning: exported type Edge should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method Edge.Propagate should be of the form "Propagate ..." (golint)
    • gocodegraph/main.go
    • Line 95: warning: should omit 2nd value from range; this loop is equivalent to `for id := range ...` (golint)
    • gocodegraph/components/multiplication.go
    • Line 9: warning: exported method Multiplication.Init should have comment or be unexported (golint)
    • Line 18: warning: exported type Multiplication should have comment or be unexported (golint)
    • Line 25: warning: exported method Multiplication.GetPosition should have comment or be unexported (golint)
    • Line 29: warning: exported method Multiplication.Solve should have comment or be unexported (golint)
    • Line 35: warning: exported method Multiplication.GetId should have comment or be unexported (golint)
    • Line 38: warning: exported method Multiplication.GetInputs should have comment or be unexported (golint)
    • Line 42: warning: exported method Multiplication.GetOutputs should have comment or be unexported (golint)
    • Line 45: warning: exported method Multiplication.GetInput should have comment or be unexported (golint)
    • Line 49: warning: exported method Multiplication.GetOutput should have comment or be unexported (golint)
    • gocodegraph/components/number.go
    • Line 9: warning: exported type Number should have comment or be unexported (golint)
    • Line 17: warning: exported method Number.Solve should have comment or be unexported (golint)
    • Line 21: warning: exported method Number.Init should have comment or be unexported (golint)
    • Line 29: warning: exported method Number.GetId should have comment or be unexported (golint)
    • Line 33: warning: exported method Number.GetPosition should have comment or be unexported (golint)
    • Line 37: warning: exported method Number.GetInputs should have comment or be unexported (golint)
    • Line 41: warning: exported method Number.GetOutputs should have comment or be unexported (golint)
    • Line 44: warning: exported method Number.GetInput should have comment or be unexported (golint)
    • Line 48: warning: exported method Number.GetOutput should have comment or be unexported (golint)
    • gocodegraph/node/port.go
    • Line 9: warning: comment on exported type Port should be of the form "Port ..." (with optional leading article) (golint)
    • Line 22: warning: exported type Result should have comment or be unexported (golint)
    • Line 63: warning: error should be the last type when returning multiple items (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (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!