Preparing report...

Report for github.com/Qs-F/gen

A+    Excellent!    Found 7 issues across 19 files

Tweet

gofmt94%

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!


golint68%

Golint is a linter for Go source code.

    • gen/lib/gen/gen.go
    • Line 30: warning: exported function MapToVariables should have comment or be unexported (golint)
    • Line 57: warning: exported method Gen.Set should have comment or be unexported (golint)
    • gen/lib/gen/tree.go
    • Line 6: warning: exported method List.GenTree should have comment or be unexported (golint)
    • Line 25: warning: exported method Tree.Reduce should have comment or be unexported (golint)
    • gen/lib/loader/markdown/parse.go
    • Line 22: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • Line 27: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • gen/lib/gen/expand.go
    • Line 10: warning: exported type Expander should have comment or be unexported (golint)
    • Line 15: warning: exported type Out should have comment or be unexported (golint)
    • Line 17: warning: exported type File should have comment or be unexported (golint)
    • Line 22: warning: exported function Expand should have comment or be unexported (golint)
    • Line 72: warning: exported function ExpandEach should have comment or be unexported (golint)
    • Line 90: warning: exported function Write 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!


misspell89%

Misspell Finds commonly misspelled English words