Preparing report...

Report for github.com/jingweno/godzilla

A+    Excellent!    Found 9 issues across 16 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


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!


golint43%

Golint is a linter for Go source code.

    • godzilla/runtime/object.go
    • Line 10: warning: exported type Object should have comment or be unexported (golint)
    • Line 14: warning: exported type JSObjectType should have comment or be unexported (golint)
    • Line 17: warning: exported const JS_OBJECT_TYPE_OBJECT should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type JSObject should have comment or be unexported (golint)
    • Line 27: warning: exported method JSObject.Type should have comment or be unexported (golint)
    • Line 27: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 29: warning: exported method JSObject.DefineProperty should have comment or be unexported (golint)
    • Line 29: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 33: warning: exported method JSObject.GetProperty should have comment or be unexported (golint)
    • Line 33: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 42: warning: exported type JSString should have comment or be unexported (golint)
    • Line 44: warning: exported method JSString.Type should have comment or be unexported (golint)
    • Line 44: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 46: warning: exported type JSNumber should have comment or be unexported (golint)
    • Line 48: warning: exported method JSNumber.Type should have comment or be unexported (golint)
    • Line 48: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 50: warning: exported type JSFunction should have comment or be unexported (golint)
    • Line 54: warning: exported method JSFunction.FuncName should have comment or be unexported (golint)
    • Line 54: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • Line 59: warning: exported method JSFunction.Type should have comment or be unexported (golint)
    • Line 59: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • godzilla/runtime/context.go
    • Line 3: warning: exported function NewDefaultContext should have comment or be unexported (golint)
    • Line 13: warning: exported type Context should have comment or be unexported (golint)
    • godzilla/runtime/error.go
    • Line 5: warning: exported type ReferenceError should have comment or be unexported (golint)
    • Line 9: warning: receiver name should be a reflection of its identity; don't use generic names such as "this" or "self" (golint)
    • godzilla/runtime/runtime.go
    • Line 15: warning: exported function Console_Log should have comment or be unexported (golint)
    • Line 15: warning: don't use underscores in Go names; func Console_Log should be ConsoleLog (golint)
    • godzilla/ast/ast.go
    • Line 12: warning: exported type Node should have comment or be unexported (golint)
    • Line 17: warning: exported type File should have comment or be unexported (golint)
    • Line 22: warning: exported method File.UnmarshalJSON should have comment or be unexported (golint)
    • Line 34: warning: exported method File.GetAttr should have comment or be unexported (golint)
    • Line 46: warning: exported type Program should have comment or be unexported (golint)
    • Line 52: warning: exported method Program.GetAttr should have comment or be unexported (golint)
    • Line 66: warning: exported type Attr should have comment or be unexported (golint)
    • Line 73: warning: exported type SourceLocation should have comment or be unexported (golint)
    • Line 78: warning: exported type Position should have comment or be unexported (golint)
    • Line 83: warning: exported type Extra should have comment or be unexported (golint)
    • Line 90: warning: exported type Statement should have comment or be unexported (golint)
    • Line 95: warning: exported type ExpressionStatement should have comment or be unexported (golint)
    • Line 102: warning: exported method ExpressionStatement.GetAttr should have comment or be unexported (golint)
    • Line 112: warning: exported type Declaration should have comment or be unexported (golint)
    • Line 117: warning: exported type VariableDeclaration should have comment or be unexported (golint)
    • Line 127: warning: exported method VariableDeclaration.GetAttr should have comment or be unexported (golint)
    • Line 143: warning: exported type VariableDeclarator should have comment or be unexported (golint)
    • Line 149: warning: exported method VariableDeclarator.GetAttr should have comment or be unexported (golint)
    • Line 167: warning: exported type Expression should have comment or be unexported (golint)
    • Line 172: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 179: warning: exported method Identifier.GetAttr should have comment or be unexported (golint)
    • Line 187: warning: exported type CallExpression should have comment or be unexported (golint)
    • Line 195: warning: exported method CallExpression.GetAttr should have comment or be unexported (golint)
    • Line 216: warning: exported type MemberExpression should have comment or be unexported (golint)
    • Line 225: warning: exported method MemberExpression.GetAttr should have comment or be unexported (golint)
    • Line 225: warning: receiver name m should be consistent with previous receiver name e for MemberExpression (golint)
    • Line 233: warning: exported type AssignmentExpression should have comment or be unexported (golint)
    • Line 242: warning: exported method AssignmentExpression.GetAttr should have comment or be unexported (golint)
    • Line 250: warning: exported type AssignmentOperator should have comment or be unexported (golint)
    • Line 252: warning: exported type BinaryExpression should have comment or be unexported (golint)
    • Line 261: warning: exported method BinaryExpression.GetAttr should have comment or be unexported (golint)
    • Line 265: warning: receiver name a should be consistent with previous receiver name b for BinaryExpression (golint)
    • Line 269: warning: exported type BinaryOperator should have comment or be unexported (golint)
    • Line 273: warning: exported type Literal should have comment or be unexported (golint)
    • Line 278: warning: exported type StringLiteral should have comment or be unexported (golint)
    • Line 288: warning: exported method StringLiteral.GetAttr should have comment or be unexported (golint)
    • Line 296: warning: comment on exported type NumericLiteral should be of the form "NumericLiteral ..." (with optional leading article) (golint)
    • Line 308: warning: exported method NumericLiteral.GetAttr should have comment or be unexported (golint)
    • godzilla/utils/utils.go
    • Line 5: warning: exported function TypeOf should have comment or be unexported (golint)
    • Line 8: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • godzilla/source/source.go
    • Line 23: warning: exported function NewCode should have comment or be unexported (golint)
    • Line 27: warning: exported type Code should have comment or be unexported (golint)
    • Line 31: warning: exported method Code.WriteTo should have comment or be unexported (golint)
    • Line 54: warning: exported method Code.WriteLine 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!