hussar-lang/hussar

View on GitHub

Showing 129 of 129 total issues

exported const ERROR_OBJ should have comment (or a comment on this block) or be unexported
Open

    ERROR_OBJ        = "ERROR"
Severity: Minor
Found in object/object.go by golint

exported method Boolean.Inspect should have comment or be unexported
Open

func (b *Boolean) Inspect() string  { return fmt.Sprintf("%t", b.Value) }
Severity: Minor
Found in object/object.go by golint

exported method ReturnStatement.TokenLiteral should have comment or be unexported
Open

func (rs *ReturnStatement) TokenLiteral() string { return rs.Token.Literal }
Severity: Minor
Found in ast/ast.go by golint

exported method FunctionLiteral.TokenLiteral should have comment or be unexported
Open

func (fl *FunctionLiteral) TokenLiteral() string { return fl.Token.Literal }
Severity: Minor
Found in ast/ast.go by golint

don't use ALL_CAPS in Go names; use CamelCase
Open

    BOOLEAN_OBJ      = "BOOLEAN"
Severity: Minor
Found in object/object.go by golint

comment on exported type Integer should be of the form "Integer ..." (with optional leading article)
Open

// === Integer ===
Severity: Minor
Found in object/object.go by golint

exported method ReturnValue.Inspect should have comment or be unexported
Open

func (rv *ReturnValue) Inspect() string  { return rv.Value.Inspect() }
Severity: Minor
Found in object/object.go by golint

comment on exported type Exit should be of the form "Exit ..." (with optional leading article)
Open

// === Exit ===
Severity: Minor
Found in object/object.go by golint

don't use ALL_CAPS in Go names; use CamelCase
Open

    INTEGER_OBJ      = "INTEGER"
Severity: Minor
Found in object/object.go by golint

exported method Exit.Inspect should have comment or be unexported
Open

func (e *Exit) Inspect() string {
Severity: Minor
Found in object/object.go by golint

exported method Error.Type should have comment or be unexported
Open

func (e *Error) Type() ObjectType { return ERROR_OBJ }
Severity: Minor
Found in object/object.go by golint

exported method String.Type should have comment or be unexported
Open

func (s *String) Type() ObjectType { return STRING_OBJ }
Severity: Minor
Found in object/object.go by golint

exported method Null.Inspect should have comment or be unexported
Open

func (n *Null) Inspect() string  { return "null" }
Severity: Minor
Found in object/object.go by golint

exported method IfExpression.TokenLiteral should have comment or be unexported
Open

func (ie *IfExpression) TokenLiteral() string { return ie.Token.Literal }
Severity: Minor
Found in ast/ast.go by golint

exported method ExitLiteral.TokenLiteral should have comment or be unexported
Open

func (el *ExitLiteral) TokenLiteral() string { return el.Token.Literal }
Severity: Minor
Found in ast/ast.go by golint

exported var NULL should have comment or be unexported
Open

    NULL  = &object.Null{}
Severity: Minor
Found in evaluator/evaluator.go by golint

type name will be used as object.ObjectType by other packages, and that stutters; consider calling this Type
Open

type ObjectType string
Severity: Minor
Found in object/object.go by golint

comment on exported type String should be of the form "String ..." (with optional leading article)
Open

// === String ===
Severity: Minor
Found in object/object.go by golint

type name will be used as token.TokenType by other packages, and that stutters; consider calling this Type
Open

type TokenType string
Severity: Minor
Found in token/token.go by golint

exported method Program.TokenLiteral should have comment or be unexported
Open

func (p *Program) TokenLiteral() string {
Severity: Minor
Found in ast/ast.go by golint
Severity
Category
Status
Source
Language