hussar-lang/hussar

View on GitHub

Showing 129 of 129 total issues

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

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

exported function New should have comment or be unexported
Open

func New(input string) *Lexer {
Severity: Minor
Found in lexer/lexer.go by golint

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

    BUILTIN_OBJ      = "BUILTIN"
Severity: Minor
Found in object/object.go by golint

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

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

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

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

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

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

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

func (b *Builtin) Inspect() string  { return "builtin function" }
Severity: Minor
Found in object/object.go by golint

if block ends with a return statement, so drop this else and outdent its block
Open

    } else {
Severity: Minor
Found in ast/ast.go by golint

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

exported function Start should have comment or be unexported
Open

func Start(in io.Reader, out io.Writer) {
Severity: Minor
Found in repl/repl.go by golint

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

    // Keywords
Severity: Minor
Found in token/token.go by golint

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

func (b *Boolean) TokenLiteral() string { return b.Token.Literal }
Severity: Minor
Found in ast/ast.go by golint
Severity
Category
Status
Source
Language