Preparing report...

Report for github.com/frederic2ec/ether

A+    Excellent!    Found 11 issues across 18 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!


gocyclo88%

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.


golint50%

Golint is a linter for Go source code.

    • ether/parser/parser.go
    • Line 19: warning: exported const LOWEST should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported type Parser should have comment or be unexported (golint)
    • Line 53: warning: exported function New should have comment or be unexported (golint)
    • Line 94: warning: exported method Parser.ParseProgram should have comment or be unexported (golint)
    • Line 472: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 478: warning: exported method Parser.Errors should have comment or be unexported (golint)
    • ether/token/token.go
    • Line 3: warning: exported type TokenType should have comment or be unexported (golint)
    • Line 6: warning: exported const ILLEGAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 9: warning: comment on exported const IDENT should be of the form "IDENT ..." (golint)
    • Line 15: warning: comment on exported const ASSIGN should be of the form "ASSIGN ..." (golint)
    • Line 35: warning: comment on exported const COMMA should be of the form "COMMA ..." (golint)
    • Line 48: warning: comment on exported const FUNCTION should be of the form "FUNCTION ..." (golint)
    • Line 57: warning: exported type Token should have comment or be unexported (golint)
    • Line 71: warning: exported function LookupIdent should have comment or be unexported (golint)
    • ether/object/environment.go
    • Line 3: warning: exported function NewEnclosedEnvironment should have comment or be unexported (golint)
    • Line 10: warning: exported function NewEnvironment should have comment or be unexported (golint)
    • Line 15: warning: exported type Environment should have comment or be unexported (golint)
    • Line 20: warning: exported method Environment.Get should have comment or be unexported (golint)
    • Line 28: warning: exported method Environment.Set should have comment or be unexported (golint)
    • ether/object/object.go
    • Line 12: warning: exported type ObjectType should have comment or be unexported (golint)
    • Line 15: warning: exported const INTEGER_OBJ should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported type Object should have comment or be unexported (golint)
    • Line 32: warning: exported type Integer should have comment or be unexported (golint)
    • Line 36: warning: exported method Integer.Inspect should have comment or be unexported (golint)
    • Line 37: warning: exported method Integer.Type should have comment or be unexported (golint)
    • Line 39: warning: exported type Boolean should have comment or be unexported (golint)
    • Line 43: warning: exported method Boolean.Type should have comment or be unexported (golint)
    • Line 44: warning: exported method Boolean.Inspect should have comment or be unexported (golint)
    • Line 46: warning: exported type Null should have comment or be unexported (golint)
    • Line 48: warning: exported method Null.Type should have comment or be unexported (golint)
    • Line 49: warning: exported method Null.Inspect should have comment or be unexported (golint)
    • Line 51: warning: exported type EchoValue should have comment or be unexported (golint)
    • Line 55: warning: exported method EchoValue.Type should have comment or be unexported (golint)
    • Line 56: warning: exported method EchoValue.Inspect should have comment or be unexported (golint)
    • Line 58: warning: exported type Error should have comment or be unexported (golint)
    • Line 62: warning: exported method Error.Type should have comment or be unexported (golint)
    • Line 63: warning: exported method Error.Inspect should have comment or be unexported (golint)
    • Line 65: warning: exported type Function should have comment or be unexported (golint)
    • Line 71: warning: exported method Function.Type should have comment or be unexported (golint)
    • Line 72: warning: exported method Function.Inspect should have comment or be unexported (golint)
    • Line 90: warning: exported type String should have comment or be unexported (golint)
    • Line 94: warning: exported method String.Type should have comment or be unexported (golint)
    • Line 95: warning: exported method String.Inspect should have comment or be unexported (golint)
    • Line 97: warning: exported type BuiltinFunction should have comment or be unexported (golint)
    • Line 98: warning: exported type Builtin should have comment or be unexported (golint)
    • Line 102: warning: exported method Builtin.Type should have comment or be unexported (golint)
    • Line 103: warning: exported method Builtin.Inspect should have comment or be unexported (golint)
    • Line 105: warning: exported type Array should have comment or be unexported (golint)
    • Line 109: warning: exported method Array.Type should have comment or be unexported (golint)
    • Line 110: warning: exported method Array.Inspect should have comment or be unexported (golint)
    • Line 125: warning: exported type HashKey should have comment or be unexported (golint)
    • Line 130: warning: exported method Boolean.HashKey should have comment or be unexported (golint)
    • Line 142: warning: exported method Integer.HashKey should have comment or be unexported (golint)
    • Line 146: warning: exported method String.HashKey should have comment or be unexported (golint)
    • Line 153: warning: exported type HashPair should have comment or be unexported (golint)
    • Line 158: warning: exported type Hash should have comment or be unexported (golint)
    • Line 162: warning: exported method Hash.Type should have comment or be unexported (golint)
    • Line 163: warning: exported method Hash.Inspect should have comment or be unexported (golint)
    • Line 178: warning: exported type Hashable should have comment or be unexported (golint)
    • ether/ast/ast.go
    • Line 10: warning: exported type Node should have comment or be unexported (golint)
    • Line 15: warning: exported type Statement should have comment or be unexported (golint)
    • Line 20: warning: exported type Expression should have comment or be unexported (golint)
    • Line 25: warning: exported type Program should have comment or be unexported (golint)
    • Line 29: warning: exported method Program.TokenLiteral should have comment or be unexported (golint)
    • Line 32: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 46: warning: exported type VarStatement should have comment or be unexported (golint)
    • Line 53: warning: exported method VarStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 68: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 74: warning: exported method Identifier.TokenLiteral should have comment or be unexported (golint)
    • Line 77: warning: exported type EchoStatement should have comment or be unexported (golint)
    • Line 83: warning: exported method EchoStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 96: warning: exported type ExpressionStatement should have comment or be unexported (golint)
    • Line 102: warning: exported method ExpressionStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 110: warning: exported type IntegerLiteral should have comment or be unexported (golint)
    • Line 116: warning: exported method IntegerLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 119: warning: exported type PrefixExpression should have comment or be unexported (golint)
    • Line 126: warning: exported method PrefixExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 137: warning: exported type InfixExpression should have comment or be unexported (golint)
    • Line 145: warning: exported method InfixExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 158: warning: exported type Boolean should have comment or be unexported (golint)
    • Line 164: warning: exported method Boolean.TokenLiteral should have comment or be unexported (golint)
    • Line 167: warning: exported type IfExpression should have comment or be unexported (golint)
    • Line 175: warning: exported method IfExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 192: warning: exported type BlockStatement should have comment or be unexported (golint)
    • Line 198: warning: exported method BlockStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 208: warning: exported type FunctionLiteral should have comment or be unexported (golint)
    • Line 215: warning: exported method FunctionLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 233: warning: exported type CallExpression should have comment or be unexported (golint)
    • Line 240: warning: exported method CallExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 257: warning: exported type StringLiteral should have comment or be unexported (golint)
    • Line 263: warning: exported method StringLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 266: warning: exported type ArrayLiteral should have comment or be unexported (golint)
    • Line 272: warning: exported method ArrayLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 288: warning: exported type IndexExpression should have comment or be unexported (golint)
    • Line 295: warning: exported method IndexExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 308: warning: exported type HashLiteral should have comment or be unexported (golint)
    • Line 314: warning: exported method HashLiteral.TokenLiteral should have comment or be unexported (golint)
    • ether/lexer/lexer.go
    • Line 5: warning: exported type Lexer should have comment or be unexported (golint)
    • Line 12: warning: exported function New should have comment or be unexported (golint)
    • Line 18: warning: exported method Lexer.NextToken should have comment or be unexported (golint)
    • Line 137: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ether/repl/repl.go
    • Line 17: warning: exported const PROMPT should have comment or be unexported (golint)
    • Line 19: warning: exported type Options should have comment or be unexported (golint)
    • Line 23: warning: exported type REPL should have comment or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • Line 37: warning: exported method REPL.Eval should have comment or be unexported (golint)
    • Line 59: warning: exported method REPL.StartEvalLoop should have comment or be unexported (golint)
    • Line 94: warning: exported method REPL.Run should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell94%

Misspell Finds commonly misspelled English words