Preparing report...

Report for github.com/droptheplot/yal

A    Great!    Found 6 issues across 9 files

Tweet

gofmt77%

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!


golint55%

Golint is a linter for Go source code.

    • yal/parser/parser.go
    • Line 5: warning: exported type Parser should have comment or be unexported (golint)
    • Line 9: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • yal/tokenizer/tokenizer.go
    • Line 8: warning: exported type Tokenizer should have comment or be unexported (golint)
    • Line 32: warning: receiver name should not be an underscore, omit the name if it is unused (golint)
    • yal/yal/node.go
    • Line 8: warning: exported type Node should have comment or be unexported (golint)
    • Line 41: warning: exported method Node.File should have comment or be unexported (golint)
    • Line 66: warning: exported method Node.Func should have comment or be unexported (golint)
    • Line 96: warning: exported method Node.FieldList should have comment or be unexported (golint)
    • Line 110: warning: exported method Node.Field should have comment or be unexported (golint)
    • Line 118: warning: exported method Node.Import should have comment or be unexported (golint)
    • Line 127: warning: exported method Node.Imports should have comment or be unexported (golint)
    • Line 137: warning: exported method Node.Stmt should have comment or be unexported (golint)
    • Line 145: warning: exported method Node.Expr should have comment or be unexported (golint)
    • Line 166: warning: exported method Node.Ident should have comment or be unexported (golint)
    • Line 170: warning: exported method Node.Return should have comment or be unexported (golint)
    • yal/yal/yal.go
    • Line 10: warning: exported type Tokenizer should have comment or be unexported (golint)
    • Line 14: warning: exported type Parser should have comment or be unexported (golint)
    • Line 18: warning: exported type Yal should have comment or be unexported (golint)
    • Line 23: warning: exported var Exprs should have comment or be unexported (golint)
    • Line 24: warning: exported var Stmts should have comment or be unexported (golint)
    • Line 56: warning: exported function New should have comment or be unexported (golint)
    • Line 63: warning: exported method Yal.Run should have comment or be unexported (golint)
    • Line 71: warning: exported function Buffer 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!


misspell88%

Misspell Finds commonly misspelled English words