Preparing report...

Report for gitlab.com/olanguage/olang

A    Great!    Found 43 issues across 70 files

Tweet

gofmt67%

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!


gocyclo87%

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.


golint54%

Golint is a linter for Go source code.

    • /gitlab.com/olanguage/olang/debug/debug.go
    • Line 7: warning: exported type Debugger should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • Line 15: warning: exported method Debugger.PrintInterface should have comment or be unexported (golint)
    • Line 20: warning: exported method Debugger.SprintInterface should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/ast/ast.go
    • Line 10: warning: exported type Node should have comment or be unexported (golint)
    • Line 16: warning: exported type Statement should have comment or be unexported (golint)
    • Line 21: warning: exported type Expression should have comment or be unexported (golint)
    • Line 26: warning: exported type Program should have comment or be unexported (golint)
    • Line 30: warning: exported type LetStatement should have comment or be unexported (golint)
    • Line 36: warning: exported type SignalExpression should have comment or be unexported (golint)
    • Line 42: warning: exported type Identifier should have comment or be unexported (golint)
    • Line 47: warning: exported type ReturnStatement should have comment or be unexported (golint)
    • Line 52: warning: exported type ExpressionStatement should have comment or be unexported (golint)
    • Line 57: warning: exported type IntegerLiteral should have comment or be unexported (golint)
    • Line 62: warning: exported type FloatLiteral should have comment or be unexported (golint)
    • Line 67: warning: exported type PrefixExpression should have comment or be unexported (golint)
    • Line 73: warning: exported type InfixExpression should have comment or be unexported (golint)
    • Line 80: warning: exported type Boolean should have comment or be unexported (golint)
    • Line 85: warning: exported type IfExpression should have comment or be unexported (golint)
    • Line 92: warning: exported type LoopExpression should have comment or be unexported (golint)
    • Line 98: warning: exported type BlockStatement should have comment or be unexported (golint)
    • Line 103: warning: exported type FunctionLiteral should have comment or be unexported (golint)
    • Line 109: warning: exported type RouteLiteral should have comment or be unexported (golint)
    • Line 114: warning: exported type CallExpression should have comment or be unexported (golint)
    • Line 120: warning: exported type StringLiteral should have comment or be unexported (golint)
    • Line 125: warning: exported type ArrayLiteral should have comment or be unexported (golint)
    • Line 130: warning: exported type IndexExpression should have comment or be unexported (golint)
    • Line 136: warning: exported type HashLiteral should have comment or be unexported (golint)
    • Line 141: warning: exported type ForExpression should have comment or be unexported (golint)
    • Line 152: warning: exported type ProcessExpression should have comment or be unexported (golint)
    • Line 160: warning: exported type SocketExpression should have comment or be unexported (golint)
    • Line 168: warning: exported type EnvExpression should have comment or be unexported (golint)
    • Line 174: warning: exported type CustomLiteral should have comment or be unexported (golint)
    • Line 181: warning: exported type EvalLiteral should have comment or be unexported (golint)
    • Line 186: warning: exported type AsyncLiteral should have comment or be unexported (golint)
    • Line 193: warning: exported method AsyncLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 197: warning: exported method AsyncLiteral.Debug should have comment or be unexported (golint)
    • Line 199: warning: exported type WaitExpression should have comment or be unexported (golint)
    • Line 206: warning: exported method WaitExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 210: warning: exported method WaitExpression.Debug should have comment or be unexported (golint)
    • Line 213: warning: exported method EvalLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 217: warning: exported method EvalLiteral.Debug should have comment or be unexported (golint)
    • Line 220: warning: exported method CustomLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 224: warning: exported method CustomLiteral.Debug should have comment or be unexported (golint)
    • Line 227: warning: exported method SignalExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 231: warning: exported method SignalExpression.Debug should have comment or be unexported (golint)
    • Line 234: warning: exported method RouteLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 238: warning: exported method RouteLiteral.Debug should have comment or be unexported (golint)
    • Line 240: warning: exported type BeginLiteral should have comment or be unexported (golint)
    • Line 247: warning: exported method BeginLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 251: warning: exported method BeginLiteral.Debug should have comment or be unexported (golint)
    • Line 253: warning: exported type ExceptionExpression should have comment or be unexported (golint)
    • Line 260: warning: exported method ExceptionExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 264: warning: exported method ExceptionExpression.Debug should have comment or be unexported (golint)
    • Line 266: warning: exported type RecoverExpression should have comment or be unexported (golint)
    • Line 274: warning: exported method RecoverExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 278: warning: exported method RecoverExpression.Debug should have comment or be unexported (golint)
    • Line 280: warning: exported type FinalExpression should have comment or be unexported (golint)
    • Line 287: warning: exported method FinalExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 291: warning: exported method FinalExpression.Debug should have comment or be unexported (golint)
    • Line 294: warning: exported method ForExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 298: warning: exported method ForExpression.Debug should have comment or be unexported (golint)
    • Line 301: warning: exported method EnvExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 305: warning: exported method EnvExpression.Debug should have comment or be unexported (golint)
    • Line 308: warning: exported method ProcessExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 312: warning: exported method ProcessExpression.Debug should have comment or be unexported (golint)
    • Line 315: warning: exported method SocketExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 319: warning: exported method SocketExpression.Debug should have comment or be unexported (golint)
    • Line 321: warning: exported type ScopeLiteral should have comment or be unexported (golint)
    • Line 327: warning: exported type ScopeExpression should have comment or be unexported (golint)
    • Line 335: warning: exported method ScopeExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 340: warning: exported method ScopeExpression.Debug should have comment or be unexported (golint)
    • Line 351: warning: exported type ScopeChangeExpression should have comment or be unexported (golint)
    • Line 360: warning: exported method ScopeChangeExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 369: warning: exported method ScopeChangeExpression.Debug should have comment or be unexported (golint)
    • Line 374: warning: exported type ThisExpression should have comment or be unexported (golint)
    • Line 381: warning: exported method ThisExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 396: warning: exported method ThisExpression.Debug should have comment or be unexported (golint)
    • Line 403: warning: exported method Program.TokenLiteral should have comment or be unexported (golint)
    • Line 420: warning: exported method Program.Debug should have comment or be unexported (golint)
    • Line 431: warning: exported method LetStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 451: warning: exported method LetStatement.Debug should have comment or be unexported (golint)
    • Line 468: warning: exported method Identifier.TokenLiteral should have comment or be unexported (golint)
    • Line 476: warning: exported method Identifier.Debug should have comment or be unexported (golint)
    • Line 481: warning: exported method ReturnStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 499: warning: exported method ReturnStatement.Debug should have comment or be unexported (golint)
    • Line 515: warning: exported method ExpressionStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 519: warning: exported method ExpressionStatement.Self should have comment or be unexported (golint)
    • Line 531: warning: exported method ExpressionStatement.Debug should have comment or be unexported (golint)
    • Line 540: warning: exported method IntegerLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 547: warning: exported method IntegerLiteral.Debug should have comment or be unexported (golint)
    • Line 552: warning: exported method FloatLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 559: warning: exported method FloatLiteral.Debug should have comment or be unexported (golint)
    • Line 564: warning: exported method PrefixExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 578: warning: exported method PrefixExpression.Debug should have comment or be unexported (golint)
    • Line 590: warning: exported method InfixExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 605: warning: exported method InfixExpression.Debug should have comment or be unexported (golint)
    • Line 618: warning: exported method Boolean.TokenLiteral should have comment or be unexported (golint)
    • Line 625: warning: exported method Boolean.Debug should have comment or be unexported (golint)
    • Line 629: warning: exported method Boolean.Code should have comment or be unexported (golint)
    • Line 634: warning: exported method IfExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 652: warning: exported method IfExpression.Debug should have comment or be unexported (golint)
    • Line 671: warning: exported method LoopExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 685: warning: exported method LoopExpression.Debug should have comment or be unexported (golint)
    • Line 698: warning: exported method ScopeLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 702: warning: exported method ScopeLiteral.Debug should have comment or be unexported (golint)
    • Line 715: warning: exported method BlockStatement.TokenLiteral should have comment or be unexported (golint)
    • Line 727: warning: exported method BlockStatement.Debug should have comment or be unexported (golint)
    • Line 738: warning: exported method FunctionLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 759: warning: exported method FunctionLiteral.Debug should have comment or be unexported (golint)
    • Line 778: warning: exported method CallExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 797: warning: exported method CallExpression.Debug should have comment or be unexported (golint)
    • Line 814: warning: exported method StringLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 816: warning: exported method StringLiteral.Debug should have comment or be unexported (golint)
    • Line 819: warning: exported method ArrayLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 834: warning: exported method ArrayLiteral.Debug should have comment or be unexported (golint)
    • Line 850: warning: exported method IndexExpression.TokenLiteral should have comment or be unexported (golint)
    • Line 863: warning: exported method IndexExpression.Debug should have comment or be unexported (golint)
    • Line 875: warning: exported method HashLiteral.TokenLiteral should have comment or be unexported (golint)
    • Line 891: warning: exported method HashLiteral.Debug should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/types/types.go
    • Line 24: warning: exported type Type should have comment or be unexported (golint)
    • Line 29: warning: exported type Result should have comment or be unexported (golint)
    • Line 45: warning: exported method Type.Check should have comment or be unexported (golint)
    • Line 54: warning: exported method Type.Convert should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/filedb/filedb.go
    • Line 12: warning: exported type Filedb should have comment or be unexported (golint)
    • Line 16: warning: exported function New should have comment or be unexported (golint)
    • Line 21: warning: exported method Filedb.Create should have comment or be unexported (golint)
    • Line 30: warning: exported method Filedb.Store should have comment or be unexported (golint)
    • Line 39: warning: exported method Filedb.Get should have comment or be unexported (golint)
    • Line 51: warning: exported method Filedb.Update should have comment or be unexported (golint)
    • Line 55: warning: exported method Filedb.Delete should have comment or be unexported (golint)
    • Line 65: warning: exported method Filedb.Find should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/terminal/terminal.go
    • Line 126: warning: exported const KeyCtrlC should have comment (or a comment on this block) or be unexported (golint)
    • Line 679: warning: exported method Terminal.SetSize should have comment or be unexported (golint)
    • Line 686: warning: exported method Terminal.SetHistory should have comment or be unexported (golint)
    • Line 694: warning: exported method Terminal.GetHistory should have comment or be unexported (golint)
    • Line 717: warning: exported method Terminal.ReleaseFromStdInOut should have comment or be unexported (golint)
    • Line 722: warning: exported function NewWithStdInOut should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/object/environment.go
    • Line 3: warning: exported function NewEnclosedEnvironment should have comment or be unexported (golint)
    • Line 9: warning: exported function NewEnvironment should have comment or be unexported (golint)
    • Line 14: warning: exported type Environment should have comment or be unexported (golint)
    • Line 19: warning: exported method Environment.Get should have comment or be unexported (golint)
    • Line 29: warning: exported method Environment.Set should have comment or be unexported (golint)
    • Line 34: warning: exported method Environment.GetLastFunctionName should have comment or be unexported (golint)
    • Line 45: warning: exported method Environment.GetLastScope should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/compiler/compiler.go
    • Line 1: warning: package comment should be of the form "Package compiler ..." (golint)
    • Line 33: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 40: warning: exported var NULL should have comment or be unexported (golint)
    • Line 57: warning: exported function Eval should have comment or be unexported (golint)
    • Line 684: warning: exported function MakeStruct should have comment or be unexported (golint)
    • Line 723: warning: exported function HashKeyExist should have comment or be unexported (golint)
    • Line 1125: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 1294: warning: exported function ParseJsonToString should have comment or be unexported (golint)
    • Line 1336: warning: exported function ParseJson should have comment or be unexported (golint)
    • Line 1371: warning: exported function ParseXML should have comment or be unexported (golint)
    • Line 1417: warning: exported function BasicAuth should have comment or be unexported (golint)
    • Line 1441: warning: exported function DebugInterface should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/color/color.go
    • Line 125: warning: exported type Color should have comment or be unexported (golint)
    • Line 176: warning: exported method Color.Black should have comment or be unexported (golint)
    • Line 180: warning: exported method Color.Red should have comment or be unexported (golint)
    • Line 184: warning: exported method Color.Green should have comment or be unexported (golint)
    • Line 188: warning: exported method Color.Yellow should have comment or be unexported (golint)
    • Line 192: warning: exported method Color.Blue should have comment or be unexported (golint)
    • Line 196: warning: exported method Color.Magenta should have comment or be unexported (golint)
    • Line 200: warning: exported method Color.Cyan should have comment or be unexported (golint)
    • Line 204: warning: exported method Color.White should have comment or be unexported (golint)
    • Line 208: warning: exported method Color.Grey should have comment or be unexported (golint)
    • Line 212: warning: exported method Color.BlackBg should have comment or be unexported (golint)
    • Line 216: warning: exported method Color.RedBg should have comment or be unexported (golint)
    • Line 220: warning: exported method Color.GreenBg should have comment or be unexported (golint)
    • Line 224: warning: exported method Color.YellowBg should have comment or be unexported (golint)
    • Line 228: warning: exported method Color.BlueBg should have comment or be unexported (golint)
    • Line 232: warning: exported method Color.MagentaBg should have comment or be unexported (golint)
    • Line 236: warning: exported method Color.CyanBg should have comment or be unexported (golint)
    • Line 240: warning: exported method Color.WhiteBg should have comment or be unexported (golint)
    • Line 244: warning: exported method Color.Reset should have comment or be unexported (golint)
    • Line 248: warning: exported method Color.Bold should have comment or be unexported (golint)
    • Line 252: warning: exported method Color.Dim should have comment or be unexported (golint)
    • Line 256: warning: exported method Color.Italic should have comment or be unexported (golint)
    • Line 260: warning: exported method Color.Underline should have comment or be unexported (golint)
    • Line 264: warning: exported method Color.Inverse should have comment or be unexported (golint)
    • Line 268: warning: exported method Color.Hidden should have comment or be unexported (golint)
    • Line 272: warning: exported method Color.Strikeout should have comment or be unexported (golint)
    • Line 286: warning: exported function Disable should have comment or be unexported (golint)
    • Line 290: warning: exported function Enable should have comment or be unexported (golint)
    • Line 309: warning: exported function Black should have comment or be unexported (golint)
    • Line 313: warning: exported function Red should have comment or be unexported (golint)
    • Line 317: warning: exported function Green should have comment or be unexported (golint)
    • Line 321: warning: exported function Yellow should have comment or be unexported (golint)
    • Line 325: warning: exported function Blue should have comment or be unexported (golint)
    • Line 329: warning: exported function Magenta should have comment or be unexported (golint)
    • Line 333: warning: exported function Cyan should have comment or be unexported (golint)
    • Line 337: warning: exported function White should have comment or be unexported (golint)
    • Line 341: warning: exported function Grey should have comment or be unexported (golint)
    • Line 345: warning: exported function BlackBg should have comment or be unexported (golint)
    • Line 349: warning: exported function RedBg should have comment or be unexported (golint)
    • Line 353: warning: exported function GreenBg should have comment or be unexported (golint)
    • Line 357: warning: exported function YellowBg should have comment or be unexported (golint)
    • Line 361: warning: exported function BlueBg should have comment or be unexported (golint)
    • Line 365: warning: exported function MagentaBg should have comment or be unexported (golint)
    • Line 369: warning: exported function CyanBg should have comment or be unexported (golint)
    • Line 373: warning: exported function WhiteBg should have comment or be unexported (golint)
    • Line 377: warning: exported function Reset should have comment or be unexported (golint)
    • Line 381: warning: exported function Bold should have comment or be unexported (golint)
    • Line 385: warning: exported function Dim should have comment or be unexported (golint)
    • Line 389: warning: exported function Italic should have comment or be unexported (golint)
    • Line 393: warning: exported function Underline should have comment or be unexported (golint)
    • Line 397: warning: exported function Inverse should have comment or be unexported (golint)
    • Line 401: warning: exported function Hidden should have comment or be unexported (golint)
    • Line 405: warning: exported function Strikeout should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/color/colorizer.go
    • Line 7: warning: exported type Colorize should have comment or be unexported (golint)
    • Line 14: warning: exported function Create should have comment or be unexported (golint)
    • Line 22: warning: exported method Colorize.ShowLn should have comment or be unexported (golint)
    • Line 84: warning: exported method Colorize.StdOut should have comment or be unexported (golint)
    • Line 89: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 95: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 101: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 107: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 113: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 119: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 125: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 131: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 137: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /gitlab.com/olanguage/olang/pid/pid.go
    • Line 12: warning: exported type Pidfile should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 24: warning: exported var ErrPidExists should have comment or be unexported (golint)
    • Line 28: warning: exported method Pidfile.Create should have comment or be unexported (golint)
    • Line 39: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 40: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (golint)
    • Line 47: warning: exported function IsActive should have comment or be unexported (golint)
    • Line 69: warning: exported function GetValue should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/terminal/termios_linux_amd64.go
    • Line 6: warning: don't use underscores in Go names; type syscall_Termios should be syscallTermios (golint)
    • Line 13: warning: don't use underscores in Go names; struct field Pad_cgo_0 should be PadCgo0 (golint)
    • Line 19: warning: don't use underscores in Go names; const syscall_IGNBRK should be syscallIGNBRK (golint)
    • Line 20: warning: don't use underscores in Go names; const syscall_BRKINT should be syscallBRKINT (golint)
    • Line 21: warning: don't use underscores in Go names; const syscall_PARMRK should be syscallPARMRK (golint)
    • Line 22: warning: don't use underscores in Go names; const syscall_ISTRIP should be syscallISTRIP (golint)
    • Line 23: warning: don't use underscores in Go names; const syscall_INLCR should be syscallINLCR (golint)
    • Line 24: warning: don't use underscores in Go names; const syscall_IGNCR should be syscallIGNCR (golint)
    • Line 25: warning: don't use underscores in Go names; const syscall_ICRNL should be syscallICRNL (golint)
    • Line 26: warning: don't use underscores in Go names; const syscall_IXON should be syscallIXON (golint)
    • Line 27: warning: don't use underscores in Go names; const syscall_IXOFF should be syscallIXOFF (golint)
    • Line 28: warning: don't use underscores in Go names; const syscall_OPOST should be syscallOPOST (golint)
    • Line 29: warning: don't use underscores in Go names; const syscall_ECHO should be syscallECHO (golint)
    • Line 30: warning: don't use underscores in Go names; const syscall_ECHONL should be syscallECHONL (golint)
    • Line 31: warning: don't use underscores in Go names; const syscall_ICANON should be syscallICANON (golint)
    • Line 32: warning: don't use underscores in Go names; const syscall_ISIG should be syscallISIG (golint)
    • Line 33: warning: don't use underscores in Go names; const syscall_IEXTEN should be syscallIEXTEN (golint)
    • Line 34: warning: don't use underscores in Go names; const syscall_CSIZE should be syscallCSIZE (golint)
    • Line 35: warning: don't use underscores in Go names; const syscall_PARENB should be syscallPARENB (golint)
    • Line 36: warning: don't use underscores in Go names; const syscall_CS8 should be syscallCS8 (golint)
    • Line 37: warning: don't use underscores in Go names; const syscall_VMIN should be syscallVMIN (golint)
    • Line 38: warning: don't use underscores in Go names; const syscall_VTIME should be syscallVTIME (golint)
    • Line 40: warning: don't use underscores in Go names; const syscall_TCGETS should be syscallTCGETS (golint)
    • Line 41: warning: don't use underscores in Go names; const syscall_TCSETS should be syscallTCSETS (golint)
    • /gitlab.com/olanguage/olang/evaluator/builtins.go
    • Line 17: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 21: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 39: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 43: warning: exported var ApplyFunctionInside should have comment or be unexported (golint)
    • Line 711: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1015: warning: don't use underscores in Go names; var _res_str should be _resStr (golint)
    • Line 1139: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /gitlab.com/olanguage/olang/listener/listener.go
    • Line 9: warning: exported type StoppableListener should have comment or be unexported (golint)
    • Line 14: warning: exported function New should have comment or be unexported (golint)
    • Line 28: warning: exported method StoppableListener.Accept should have comment or be unexported (golint)
    • Line 58: warning: exported method StoppableListener.Stop should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/systemlib/systemlib.go
    • Line 9: warning: exported function CreateFile should have comment or be unexported (golint)
    • Line 23: warning: exported function WriteFile should have comment or be unexported (golint)
    • Line 51: warning: exported function ReadFile should have comment or be unexported (golint)
    • Line 78: warning: exported function DeleteFile should have comment or be unexported (golint)
    • Line 87: warning: exported function CreateDir should have comment or be unexported (golint)
    • Line 95: warning: exported function DeleteDir should have comment or be unexported (golint)
    • Line 104: warning: exported function Link should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/server/server.go
    • Line 14: warning: exported type ServerFunction should have comment or be unexported (golint)
    • Line 19: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method ServerFunction.Server should have comment or be unexported (golint)
    • Line 76: warning: exported method ServerFunction.RouterGenerator should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/crypto/crypto.go
    • Line 12: warning: exported type Crypto should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 25: warning: exported method Crypto.Encrypt should have comment or be unexported (golint)
    • Line 39: warning: exported method Crypto.Decrypt should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/parser/parser.go
    • Line 15: 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 127: warning: exported method Parser.Errors should have comment or be unexported (golint)
    • Line 131: warning: exported method Parser.LexerReturn should have comment or be unexported (golint)
    • Line 135: warning: exported method Parser.ErrorTokens should have comment or be unexported (golint)
    • Line 149: warning: exported method Parser.ParseProgram should have comment or be unexported (golint)
    • Line 467: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 527: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • /gitlab.com/olanguage/olang/watcher/watcher.go
    • Line 9: warning: exported type Files should have comment or be unexported (golint)
    • Line 13: warning: exported type OnModify should have comment or be unexported (golint)
    • Line 15: warning: exported function New should have comment or be unexported (golint)
    • Line 19: warning: exported method Files.Add should have comment or be unexported (golint)
    • Line 23: warning: exported method Files.Run should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/evaluator/evaluator.go
    • Line 30: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 37: warning: exported var NULL should have comment or be unexported (golint)
    • Line 50: warning: exported function Eval should have comment or be unexported (golint)
    • Line 677: warning: exported function MakeStruct should have comment or be unexported (golint)
    • Line 716: warning: exported function HashKeyExist should have comment or be unexported (golint)
    • Line 1118: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • Line 1287: warning: exported function ParseJsonToString should have comment or be unexported (golint)
    • Line 1329: warning: exported function ParseJson should have comment or be unexported (golint)
    • Line 1364: warning: exported function ParseXML should have comment or be unexported (golint)
    • Line 1410: warning: exported function BasicAuth should have comment or be unexported (golint)
    • Line 1434: warning: exported function DebugInterface should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/file/file.go
    • Line 9: warning: exported const BYTE should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type File should have comment or be unexported (golint)
    • Line 27: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported method File.Open should have comment or be unexported (golint)
    • Line 85: warning: exported method File.Split should have comment or be unexported (golint)
    • Line 109: warning: exported method File.Join should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/olpfile/olpfile.go
    • Line 20: warning: exported type OlpParsed should have comment or be unexported (golint)
    • Line 33: warning: exported type Require should have comment or be unexported (golint)
    • Line 39: warning: exported type Job should have comment or be unexported (golint)
    • Line 43: warning: exported type InstallTask should have comment or be unexported (golint)
    • Line 45: warning: exported type Publisher should have comment or be unexported (golint)
    • Line 51: warning: comment on exported type FileWatcher should be of the form "FileWatcher ..." (with optional leading article) (golint)
    • Line 57: warning: exported type Olpfile should have comment or be unexported (golint)
    • Line 62: warning: exported type CompiledFile should have comment or be unexported (golint)
    • Line 69: warning: exported function New should have comment or be unexported (golint)
    • Line 76: warning: exported method Olpfile.CreateFile should have comment or be unexported (golint)
    • Line 84: warning: exported function Exists should have comment or be unexported (golint)
    • Line 93: warning: exported method Olpfile.Parse should have comment or be unexported (golint)
    • Line 107: warning: exported method Olpfile.Install should have comment or be unexported (golint)
    • Line 160: warning: exported method Olpfile.Clone should have comment or be unexported (golint)
    • Line 184: warning: exported method Olpfile.WriteAutoLoad should have comment or be unexported (golint)
    • Line 191: warning: exported method Olpfile.CompileVendors should have comment or be unexported (golint)
    • Line 203: warning: exported method Olpfile.CompileProject should have comment or be unexported (golint)
    • Line 216: warning: exported method Olpfile.WriteOlpFile should have comment or be unexported (golint)
    • Line 228: warning: exported function FileParse should have comment or be unexported (golint)
    • Line 263: warning: exported method Olpfile.JobRun should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/object/object.go
    • Line 20: warning: exported type ObjectType should have comment or be unexported (golint)
    • Line 23: warning: exported const INTEGER_OBJ should have comment (or a comment on this block) or be unexported (golint)
    • Line 59: warning: exported type Object should have comment or be unexported (golint)
    • Line 66: warning: exported type Integer should have comment or be unexported (golint)
    • Line 70: warning: exported type Load should have comment or be unexported (golint)
    • Line 74: warning: exported type Byte should have comment or be unexported (golint)
    • Line 78: warning: exported type Float should have comment or be unexported (golint)
    • Line 82: warning: exported type Url should have comment or be unexported (golint)
    • Line 90: warning: exported type Process should have comment or be unexported (golint)
    • Line 100: warning: exported type SysEnv should have comment or be unexported (golint)
    • Line 105: warning: exported type Notification should have comment or be unexported (golint)
    • Line 110: warning: exported type Socket should have comment or be unexported (golint)
    • Line 121: warning: exported type Message should have comment or be unexported (golint)
    • Line 126: warning: exported type Route should have comment or be unexported (golint)
    • Line 130: warning: exported type File should have comment or be unexported (golint)
    • Line 136: warning: exported type Signal should have comment or be unexported (golint)
    • Line 141: warning: exported type Server should have comment or be unexported (golint)
    • Line 146: warning: exported type Eval should have comment or be unexported (golint)
    • Line 150: warning: exported type SyscallResult should have comment or be unexported (golint)
    • Line 156: warning: exported type Color should have comment or be unexported (golint)
    • Line 162: warning: exported type Image should have comment or be unexported (golint)
    • Line 167: warning: exported method Color.Type should have comment or be unexported (golint)
    • Line 168: warning: exported method Color.Inspect should have comment or be unexported (golint)
    • Line 172: warning: exported method Color.Result should have comment or be unexported (golint)
    • Line 177: warning: exported method Color.Debug should have comment or be unexported (golint)
    • Line 183: warning: exported method Image.Type should have comment or be unexported (golint)
    • Line 184: warning: exported method Image.Inspect should have comment or be unexported (golint)
    • Line 188: warning: exported method Image.Result should have comment or be unexported (golint)
    • Line 193: warning: exported method Image.Debug should have comment or be unexported (golint)
    • Line 200: warning: exported method Server.Type should have comment or be unexported (golint)
    • Line 201: warning: exported method Server.Inspect should have comment or be unexported (golint)
    • Line 205: warning: exported method Server.Result should have comment or be unexported (golint)
    • Line 210: warning: exported method Server.Debug should have comment or be unexported (golint)
    • Line 215: warning: exported method Eval.Type should have comment or be unexported (golint)
    • Line 216: warning: exported method Eval.Inspect should have comment or be unexported (golint)
    • Line 219: warning: exported method Eval.Result should have comment or be unexported (golint)
    • Line 223: warning: exported method Eval.Debug should have comment or be unexported (golint)
    • Line 227: warning: exported method Signal.Type should have comment or be unexported (golint)
    • Line 228: warning: exported method Signal.Inspect should have comment or be unexported (golint)
    • Line 232: warning: exported method Signal.Result should have comment or be unexported (golint)
    • Line 237: warning: exported method Signal.Debug should have comment or be unexported (golint)
    • Line 242: warning: exported method SyscallResult.Type should have comment or be unexported (golint)
    • Line 243: warning: exported method SyscallResult.Inspect should have comment or be unexported (golint)
    • Line 247: warning: exported method SyscallResult.Result should have comment or be unexported (golint)
    • Line 252: warning: exported method SyscallResult.Debug should have comment or be unexported (golint)
    • Line 257: warning: exported method Route.Type should have comment or be unexported (golint)
    • Line 258: warning: exported method Route.Inspect should have comment or be unexported (golint)
    • Line 265: warning: exported method Route.Result should have comment or be unexported (golint)
    • Line 270: warning: exported method Route.Debug should have comment or be unexported (golint)
    • Line 276: warning: exported method Socket.Type should have comment or be unexported (golint)
    • Line 277: warning: exported method Socket.Inspect should have comment or be unexported (golint)
    • Line 282: warning: exported method Socket.Result should have comment or be unexported (golint)
    • Line 287: warning: exported method Socket.Debug should have comment or be unexported (golint)
    • Line 292: warning: exported method Socket.FindResponse should have comment or be unexported (golint)
    • Line 301: warning: exported method Socket.DialServer should have comment or be unexported (golint)
    • Line 326: warning: don't use underscores in Go names; var read_len should be readLen (golint)
    • Line 354: warning: exported method Socket.DialMessage should have comment or be unexported (golint)
    • Line 370: warning: exported method Notification.Type should have comment or be unexported (golint)
    • Line 371: warning: exported method Notification.Inspect should have comment or be unexported (golint)
    • Line 376: warning: exported method Notification.Result should have comment or be unexported (golint)
    • Line 381: warning: exported method Notification.Debug should have comment or be unexported (golint)
    • Line 385: warning: exported method SysEnv.Type should have comment or be unexported (golint)
    • Line 386: warning: exported method SysEnv.Inspect should have comment or be unexported (golint)
    • Line 391: warning: exported method SysEnv.Result should have comment or be unexported (golint)
    • Line 396: warning: exported method SysEnv.Debug should have comment or be unexported (golint)
    • Line 402: warning: exported method Float.Type should have comment or be unexported (golint)
    • Line 403: warning: exported method Float.Inspect should have comment or be unexported (golint)
    • Line 408: warning: exported method Float.Result should have comment or be unexported (golint)
    • Line 413: warning: exported method Float.Debug should have comment or be unexported (golint)
    • Line 419: warning: exported method Process.Type should have comment or be unexported (golint)
    • Line 420: warning: exported method Process.Inspect should have comment or be unexported (golint)
    • Line 425: warning: exported method Process.Result should have comment or be unexported (golint)
    • Line 433: warning: exported method Process.Debug should have comment or be unexported (golint)
    • Line 441: warning: exported method Byte.Type should have comment or be unexported (golint)
    • Line 442: warning: exported method Byte.Inspect should have comment or be unexported (golint)
    • Line 447: warning: exported method Byte.Result should have comment or be unexported (golint)
    • Line 448: warning: exported method Byte.Debug should have comment or be unexported (golint)
    • Line 450: warning: exported method Url.Type should have comment or be unexported (golint)
    • Line 451: warning: exported method Url.Inspect should have comment or be unexported (golint)
    • Line 456: warning: exported method Url.Result should have comment or be unexported (golint)
    • Line 458: warning: exported method Url.Debug should have comment or be unexported (golint)
    • Line 460: warning: exported method Integer.Type should have comment or be unexported (golint)
    • Line 461: warning: exported method Integer.Inspect should have comment or be unexported (golint)
    • Line 462: warning: exported method Integer.Result should have comment or be unexported (golint)
    • Line 464: warning: exported method Integer.Debug should have comment or be unexported (golint)
    • Line 466: warning: exported type Boolean should have comment or be unexported (golint)
    • Line 470: warning: exported method Boolean.Type should have comment or be unexported (golint)
    • Line 471: warning: exported method Boolean.Inspect should have comment or be unexported (golint)
    • Line 477: warning: exported method Boolean.Result should have comment or be unexported (golint)
    • Line 478: warning: exported method Boolean.Debug should have comment or be unexported (golint)
    • Line 480: warning: exported type Null should have comment or be unexported (golint)
    • Line 482: warning: exported method Null.Type should have comment or be unexported (golint)
    • Line 483: warning: exported method Null.Inspect should have comment or be unexported (golint)
    • Line 488: warning: exported method Null.Result should have comment or be unexported (golint)
    • Line 489: warning: exported method Null.Debug should have comment or be unexported (golint)
    • Line 491: warning: exported type Empty should have comment or be unexported (golint)
    • Line 493: warning: exported method Empty.Type should have comment or be unexported (golint)
    • Line 494: warning: exported method Empty.Inspect should have comment or be unexported (golint)
    • Line 495: warning: exported method Empty.Result should have comment or be unexported (golint)
    • Line 496: warning: exported method Empty.Debug should have comment or be unexported (golint)
    • Line 498: warning: exported type ReturnValue should have comment or be unexported (golint)
    • Line 502: warning: exported method ReturnValue.Type should have comment or be unexported (golint)
    • Line 503: warning: exported method ReturnValue.Inspect should have comment or be unexported (golint)
    • Line 504: warning: exported method ReturnValue.Result should have comment or be unexported (golint)
    • Line 505: warning: exported method ReturnValue.Debug should have comment or be unexported (golint)
    • Line 507: warning: exported type Error should have comment or be unexported (golint)
    • Line 511: warning: exported method Error.Type should have comment or be unexported (golint)
    • Line 512: warning: exported method Error.Inspect should have comment or be unexported (golint)
    • Line 517: warning: exported method Error.Result should have comment or be unexported (golint)
    • Line 521: warning: exported method Error.Debug should have comment or be unexported (golint)
    • Line 523: warning: exported type Warning should have comment or be unexported (golint)
    • Line 527: warning: exported method Warning.Type should have comment or be unexported (golint)
    • Line 528: warning: exported method Warning.Inspect should have comment or be unexported (golint)
    • Line 533: warning: exported method Warning.Result should have comment or be unexported (golint)
    • Line 537: warning: exported method Warning.Debug should have comment or be unexported (golint)
    • Line 539: warning: exported type Function should have comment or be unexported (golint)
    • Line 545: warning: exported method Function.Type should have comment or be unexported (golint)
    • Line 546: warning: exported method Function.Inspect should have comment or be unexported (golint)
    • Line 563: warning: exported method Function.Result should have comment or be unexported (golint)
    • Line 564: warning: exported method Function.Debug should have comment or be unexported (golint)
    • Line 582: warning: exported type Literal should have comment or be unexported (golint)
    • Line 589: warning: exported method Literal.Type should have comment or be unexported (golint)
    • Line 590: warning: exported method Literal.Inspect should have comment or be unexported (golint)
    • Line 608: warning: exported method Literal.Debug should have comment or be unexported (golint)
    • Line 627: warning: exported type Scope should have comment or be unexported (golint)
    • Line 634: warning: exported method Scope.Type should have comment or be unexported (golint)
    • Line 635: warning: exported method Scope.Inspect should have comment or be unexported (golint)
    • Line 646: warning: exported method Scope.Result should have comment or be unexported (golint)
    • Line 647: warning: exported method Scope.Debug should have comment or be unexported (golint)
    • Line 659: warning: exported type String should have comment or be unexported (golint)
    • Line 663: warning: exported method String.Type should have comment or be unexported (golint)
    • Line 664: warning: exported method String.Inspect should have comment or be unexported (golint)
    • Line 670: warning: exported method String.Result should have comment or be unexported (golint)
    • Line 677: warning: exported method String.Debug should have comment or be unexported (golint)
    • Line 684: warning: exported type BuiltinFunction should have comment or be unexported (golint)
    • Line 686: warning: exported type Builtin should have comment or be unexported (golint)
    • Line 690: warning: exported method Builtin.Type should have comment or be unexported (golint)
    • Line 691: warning: exported method Builtin.Inspect should have comment or be unexported (golint)
    • Line 692: warning: exported method Builtin.Result should have comment or be unexported (golint)
    • Line 693: warning: exported method Builtin.Debug should have comment or be unexported (golint)
    • Line 695: warning: exported type Array should have comment or be unexported (golint)
    • Line 699: warning: exported method Array.Type should have comment or be unexported (golint)
    • Line 700: warning: exported method Array.Inspect should have comment or be unexported (golint)
    • Line 714: warning: exported method Array.Result should have comment or be unexported (golint)
    • Line 715: warning: exported method Array.Debug should have comment or be unexported (golint)
    • Line 730: warning: exported type Hashable should have comment or be unexported (golint)
    • Line 734: warning: exported type HashKey should have comment or be unexported (golint)
    • Line 739: warning: exported method Boolean.HashKey should have comment or be unexported (golint)
    • Line 751: warning: exported method Integer.HashKey should have comment or be unexported (golint)
    • Line 755: warning: exported method String.HashKey should have comment or be unexported (golint)
    • Line 762: warning: exported type HashPair should have comment or be unexported (golint)
    • Line 767: warning: exported type Hash should have comment or be unexported (golint)
    • Line 771: warning: exported method Hash.Type should have comment or be unexported (golint)
    • Line 772: warning: exported method Hash.Inspect should have comment or be unexported (golint)
    • Line 786: warning: exported method Hash.Result should have comment or be unexported (golint)
    • Line 787: warning: exported method Hash.Debug should have comment or be unexported (golint)
    • Line 802: warning: exported type Database should have comment or be unexported (golint)
    • Line 809: warning: exported method Database.Type should have comment or be unexported (golint)
    • Line 810: warning: exported method Database.Inspect should have comment or be unexported (golint)
    • Line 815: warning: exported method Database.Result should have comment or be unexported (golint)
    • Line 820: warning: exported method Database.Debug should have comment or be unexported (golint)
    • Line 825: warning: exported type Model should have comment or be unexported (golint)
    • Line 831: warning: exported method Model.Type should have comment or be unexported (golint)
    • Line 832: warning: exported method Model.Inspect should have comment or be unexported (golint)
    • Line 837: warning: exported method Model.Result should have comment or be unexported (golint)
    • Line 842: warning: exported method Model.Debug should have comment or be unexported (golint)
    • Line 847: warning: exported type Begin should have comment or be unexported (golint)
    • Line 853: warning: exported method Begin.Type should have comment or be unexported (golint)
    • Line 854: warning: exported method Begin.Inspect should have comment or be unexported (golint)
    • Line 859: warning: exported method Begin.Result should have comment or be unexported (golint)
    • Line 864: warning: exported method Begin.Debug should have comment or be unexported (golint)
    • Line 869: warning: exported type Async should have comment or be unexported (golint)
    • Line 875: warning: exported method Async.Type should have comment or be unexported (golint)
    • Line 876: warning: exported method Async.Inspect should have comment or be unexported (golint)
    • Line 881: warning: exported method Async.Result should have comment or be unexported (golint)
    • Line 885: warning: exported method Async.Debug should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/lexer/lexer.go
    • Line 8: warning: exported type Lexer should have comment or be unexported (golint)
    • Line 17: warning: exported function New should have comment or be unexported (golint)
    • Line 45: warning: exported method Lexer.NextToken should have comment or be unexported (golint)
    • Line 146: warning: exported method Lexer.PrevToken should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/token/token.go
    • Line 4: warning: exported const ILLEGAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 7: warning: comment on exported const IDENT should be of the form "IDENT ..." (golint)
    • Line 13: warning: comment on exported const ASSIGN should be of the form "ASSIGN ..." (golint)
    • Line 32: warning: comment on exported const COMMA should be of the form "COMMA ..." (golint)
    • Line 45: warning: comment on exported const FUNCTION should be of the form "FUNCTION ..." (golint)
    • Line 78: warning: exported type TokenType should have comment or be unexported (golint)
    • Line 80: warning: exported type Token should have comment or be unexported (golint)
    • Line 118: warning: exported function LookupIdent should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/repl/repl.go
    • Line 21: warning: exported const PROMPT should have comment or be unexported (golint)
    • Line 29: warning: exported function FileCompile should have comment or be unexported (golint)
    • Line 92: warning: exported function StringParse should have comment or be unexported (golint)
    • Line 154: warning: exported function FileParse should have comment or be unexported (golint)
    • /gitlab.com/olanguage/olang/compiler/builtins.go
    • Line 1: warning: package comment should be of the form "Package compiler ..." (golint)
    • Line 19: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 35: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 42: warning: exported var ApplyFunctionInside should have comment or be unexported (golint)
    • Line 710: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1014: warning: don't use underscores in Go names; var _res_str should be _resStr (golint)
    • Line 1129: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign90%

IneffAssign detects ineffectual assignments in Go code.

    • /gitlab.com/olanguage/olang/image/image.go
    • Line 30: warning: missing ',' before newline in composite literal (ineffassign)
    • Line 37: warning: missing ',' before newline in composite literal (ineffassign)
    • Line 24: warning: cannot use imageFile.Content (variable of type []byte) as io.Reader value in argument to image.Decode: missing method Read (ineffassign)
    • Line 24: warning: cannot initialize 1 variables with 3 values (ineffassign)
    • Line 34: warning: cannot use dataOrFile (variable of type interface{}) as io.Reader value in argument to image.Decode: missing method Read (ineffassign)
    • Line 34: warning: cannot initialize 1 variables with 3 values (ineffassign)
    • Line 36: warning: d.Content undefined (type []byte has no field or method Content) (ineffassign)
    • Line 43: warning: missing return (ineffassign)
    • /gitlab.com/olanguage/olang/binary/binary.go
    • Line 31: warning: missing ',' before newline in composite literal (ineffassign)
    • Line 36: warning: expected identifier (ineffassign)
    • Line 40: warning: expected identifier (ineffassign)
    • Line 42: warning: missing return (ineffassign)
    • Line 10: warning: "encoding/binary" imported but not used (ineffassign)
    • Line 11: warning: "fmt" imported but not used (ineffassign)
    • Line 12: warning: "time" imported but not used (ineffassign)
    • Line 14: warning: "gitlab.com/olanguage/olang/object" imported but not used (ineffassign)
    • Line 15: warning: "github.com/oytunistrator/asm/generator/unsafe-stub" imported but not used as stub (ineffassign)

misspell95%

Misspell Finds commonly misspelled English words

    • /gitlab.com/olanguage/olang/main.go
    • Line 53: warning: "Proccess" is a misspelling of "Process" (misspell)
    • Line 340: warning: "proccess" is a misspelling of "process" (misspell)
    • Line 344: warning: "Proccess" is a misspelling of "Process" (misspell)
    • Line 349: warning: "Proccess" is a misspelling of "Process" (misspell)
    • Line 412: warning: "Unsuccessfull" is a misspelling of "Unsuccessful" (misspell)