hussar-lang/hussar

View on GitHub

Showing 129 of 129 total issues

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

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

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

    NULL_OBJ         = "NULL"
Severity: Minor
Found in object/object.go by golint

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

    RETURN_VALUE_OBJ = "RETURN_VALUE"
Severity: Minor
Found in object/object.go by golint

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

func (b *Builtin) Type() ObjectType { return BUILTIN_OBJ }
Severity: Minor
Found in object/object.go by golint

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

// Improvement: Use byte for better performance (pg12)
Severity: Minor
Found in token/token.go by golint

exported type Statement should have comment or be unexported
Open

type Statement interface {
Severity: Minor
Found in ast/ast.go by golint

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

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

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

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

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

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

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

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

exported function Eval should have comment or be unexported
Open

func Eval(node ast.Node, env *object.Environment) object.Object {
Severity: Minor
Found in evaluator/evaluator.go by golint

exported method Environment.Get should have comment or be unexported
Open

func (e *Environment) Get(name string) (Object, bool) {
Severity: Minor
Found in object/environment.go by golint

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

func (n *Null) Type() ObjectType { return NULL_OBJ }
Severity: Minor
Found in object/object.go by golint

exported type Parser should have comment or be unexported
Open

type Parser struct {
Severity: Minor
Found in parser/parser.go by golint

comment on exported const IDENT should be of the form "IDENT ..."
Open

    // Identifiers + literals
Severity: Minor
Found in token/token.go by golint

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

    NOT_EQ = "!="
Severity: Minor
Found in token/token.go by golint

exported type IntegerLiteral should have comment or be unexported
Open

type IntegerLiteral struct {
Severity: Minor
Found in ast/ast.go by golint

exported type Boolean should have comment or be unexported
Open

type Boolean struct {
Severity: Minor
Found in ast/ast.go by golint

exported type IndexExpression should have comment or be unexported
Open

type IndexExpression struct {
Severity: Minor
Found in ast/ast.go by golint

exported method Parser.ParseProgram should have comment or be unexported
Open

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