Preparing report...

Report for github.com/pandeykartikey/goto

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


gocyclo91%

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.


golint41%

Golint is a linter for Go source code.

    • goto/lexer/lexer.go
    • Line 7: warning: exported type Lexer should have comment or be unexported (golint)
    • Line 57: warning: exported method Lexer.NextToken should have comment or be unexported (golint)
    • Line 122: warning: exported function New should have comment or be unexported (golint)
    • goto/ast/ast.go
    • Line 9: warning: exported type Node should have comment or be unexported (golint)
    • Line 14: warning: exported type Statement should have comment or be unexported (golint)
    • Line 19: warning: exported type Expression should have comment or be unexported (golint)
    • Line 24: warning: exported type Program should have comment or be unexported (golint)
    • Line 28: warning: exported method Program.TokenLiteral should have comment or be unexported (golint)
    • Line 46: warning: exported type IntegerLiteral should have comment or be unexported (golint)
    • Line 53: warning: exported method IntegerLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 61: warning: exported type Boolean should have comment or be unexported (golint)
    • Line 68: warning: exported method Boolean.TokenLiteral should have comment or be unexported (golint)
    • Line 76: warning: exported type String should have comment or be unexported (golint)
    • Line 83: warning: exported method String.TokenLiteral should have comment or be unexported (golint)
    • Line 91: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 98: warning: exported method Identifier.TokenLiteral should have comment or be unexported (golint)
    • Line 106: warning: exported type Assignment should have comment or be unexported (golint)
    • Line 117: warning: exported method Assignment.TokenLiteral should have comment or be unexported (golint)
    • Line 140: warning: exported type ReturnStatement should have comment or be unexported (golint)
    • Line 147: warning: exported method ReturnStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 166: warning: exported type ExpressionStatement should have comment or be unexported (golint)
    • Line 173: warning: exported method ExpressionStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 185: warning: exported type PrefixExpression should have comment or be unexported (golint)
    • Line 193: warning: exported method PrefixExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 208: warning: exported type InfixExpression should have comment or be unexported (golint)
    • Line 217: warning: exported method InfixExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 235: warning: exported type BlockStatement should have comment or be unexported (golint)
    • Line 242: warning: exported method BlockStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 259: warning: exported type IfStatement should have comment or be unexported (golint)
    • Line 269: warning: exported method IfStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 294: warning: exported type IdentifierList should have comment or be unexported (golint)
    • Line 301: warning: exported method IdentifierList.TokenLiteral should have comment or be unexported (golint)
    • Line 321: warning: exported type FuncStatement should have comment or be unexported (golint)
    • Line 330: warning: exported method FuncStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 348: warning: exported type ExpressionList should have comment or be unexported (golint)
    • Line 355: warning: exported method ExpressionList.TokenLiteral should have comment or be unexported (golint)
    • Line 374: warning: exported type CallExpression should have comment or be unexported (golint)
    • Line 382: warning: exported method CallExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 396: warning: exported type ForStatement should have comment or be unexported (golint)
    • Line 406: warning: exported method ForStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 426: warning: exported type LoopControlStatement should have comment or be unexported (golint)
    • Line 433: warning: exported method LoopControlStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 441: warning: exported type List should have comment or be unexported (golint)
    • Line 448: warning: exported method List.TokenLiteral should have comment or be unexported (golint)
    • Line 461: warning: exported type IndexExpression should have comment or be unexported (golint)
    • Line 468: warning: exported method IndexExpression.TokenLiteral should have comment or be unexported (golint)
    • goto/parser/parser.go
    • Line 14: warning: exported const LOWEST should have comment (or a comment on this block) or be unexported (golint)
    • Line 49: warning: exported type Parser should have comment or be unexported (golint)
    • Line 61: warning: exported function New should have comment or be unexported (golint)
    • Line 100: warning: exported method Parser.Errors should have comment or be unexported (golint)
    • Line 601: warning: exported method Parser.ParseProgram should have comment or be unexported (golint)
    • Line 618: warning: exported method Parser.PrintParseErrors should have comment or be unexported (golint)
    • goto/eval/eval.go
    • Line 12: warning: exported var NULL should have comment or be unexported (golint)
    • Line 502: warning: exported function Eval should have comment or be unexported (golint)
    • goto/token/token.go
    • Line 3: warning: exported type Type should have comment or be unexported (golint)
    • Line 5: warning: exported type Token should have comment or be unexported (golint)
    • Line 10: warning: exported type CommonPrefixTokenPair should have comment or be unexported (golint)
    • Line 17: warning: exported const ILLEGAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 20: warning: comment on exported const IDENT should be of the form "IDENT ..." (golint)
    • Line 23: warning: comment on exported const INT should be of the form "INT ..." (golint)
    • Line 27: warning: comment on exported const ASSIGN should be of the form "ASSIGN ..." (golint)
    • Line 45: warning: comment on exported const SEMI should be of the form "SEMI ..." (golint)
    • Line 58: warning: comment on exported const VAR should be of the form "VAR ..." (golint)
    • Line 71: warning: exported var Keywords should have comment or be unexported (golint)
    • Line 84: warning: exported var SingleCharacterToken should have comment or be unexported (golint)
    • Line 100: warning: exported var CommonPrefixToken should have comment or be unexported (golint)
    • Line 110: warning: exported function LookupGroup should have comment or be unexported (golint)
    • goto/object/object.go
    • Line 10: warning: exported type Type should have comment or be unexported (golint)
    • Line 11: warning: exported type BuiltinFunction should have comment or be unexported (golint)
    • Line 14: warning: exported const INTEGER_OBJ should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported type Object should have comment or be unexported (golint)
    • Line 31: warning: exported type Integer should have comment or be unexported (golint)
    • Line 35: warning: exported method Integer.Type should have comment or be unexported (golint)
    • Line 39: warning: exported method Integer.Inspect should have comment or be unexported (golint)
    • Line 43: warning: exported type Boolean should have comment or be unexported (golint)
    • Line 47: warning: exported method Boolean.Type should have comment or be unexported (golint)
    • Line 51: warning: exported method Boolean.Inspect should have comment or be unexported (golint)
    • Line 55: warning: exported type Null should have comment or be unexported (golint)
    • Line 57: warning: exported method Null.Type should have comment or be unexported (golint)
    • Line 61: warning: exported method Null.Inspect should have comment or be unexported (golint)
    • Line 65: warning: exported type String should have comment or be unexported (golint)
    • Line 69: warning: exported method String.Type should have comment or be unexported (golint)
    • Line 73: warning: exported method String.Inspect should have comment or be unexported (golint)
    • Line 77: warning: exported type ReturnValue should have comment or be unexported (golint)
    • Line 81: warning: exported method ReturnValue.Type should have comment or be unexported (golint)
    • Line 85: warning: exported method ReturnValue.Inspect should have comment or be unexported (golint)
    • Line 89: warning: exported type LoopControl should have comment or be unexported (golint)
    • Line 93: warning: exported method LoopControl.Type should have comment or be unexported (golint)
    • Line 97: warning: exported method LoopControl.Inspect should have comment or be unexported (golint)
    • Line 101: warning: exported type Function should have comment or be unexported (golint)
    • Line 106: warning: exported method Function.Type should have comment or be unexported (golint)
    • Line 110: warning: exported method Function.Inspect should have comment or be unexported (golint)
    • Line 120: warning: exported type List should have comment or be unexported (golint)
    • Line 124: warning: exported method List.Type should have comment or be unexported (golint)
    • Line 128: warning: exported method List.Inspect should have comment or be unexported (golint)
    • Line 144: warning: exported type Builtin should have comment or be unexported (golint)
    • Line 148: warning: exported method Builtin.Type should have comment or be unexported (golint)
    • Line 152: warning: exported method Builtin.Inspect should have comment or be unexported (golint)
    • Line 156: warning: exported type Error should have comment or be unexported (golint)
    • Line 160: warning: exported method Error.Type should have comment or be unexported (golint)
    • Line 164: warning: exported method Error.Inspect should have comment or be unexported (golint)
    • Line 168: warning: exported type Environment should have comment or be unexported (golint)
    • Line 173: warning: exported method Environment.Get should have comment or be unexported (golint)
    • Line 181: warning: exported method Environment.Create should have comment or be unexported (golint)
    • Line 190: warning: exported method Environment.Update should have comment or be unexported (golint)
    • Line 203: warning: exported function NewEnvironment should have comment or be unexported (golint)
    • Line 208: warning: exported function ExtendEnv should have comment or be unexported (golint)
    • goto/repl/repl.go
    • Line 15: warning: exported const PS1 should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported function Start 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!