Preparing report...

Report for github.com/KeisukeYamashita/go-vcl

A+    Excellent!    Found 7 issues across 14 files

Tweet

gofmt85%

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!


gocyclo85%

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.


golint78%

Golint is a linter for Go source code.

    • go-vcl/internal/ast/ast.go
    • Line 35: warning: exported method PrefixExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 48: warning: exported method InfixExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 61: warning: exported method IfExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 73: warning: exported method BlockExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 84: warning: exported method BlockStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 103: warning: exported method AssignFieldStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 108: warning: exported method AssignStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 119: warning: exported method ReturnStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 123: warning: exported type CommentStatement should have comment or be unexported (golint)
    • Line 129: warning: exported method CommentStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 140: warning: exported method CallStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 151: warning: exported method ExpressionStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 162: warning: exported method Identifier.TokenLiteral should have comment or be unexported (golint)
    • Line 173: warning: exported method IntegerLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 184: warning: exported method BooleanLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 195: warning: exported method StringLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 199: warning: exported type CIDRLiteral should have comment or be unexported (golint)
    • Line 205: warning: exported method CIDRLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 216: warning: exported method PercentageLiteral.TokenLiteral 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!