Preparing report...

Report for github.com/udhos/basgo

A+    Excellent!    Found 20 issues across 36 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.


golint50%

Golint is a linter for Go source code.

    • basgo/baslib/math.go
    • Line 7: warning: exported function Pow should have comment or be unexported (golint)
    • Line 11: warning: exported function Sin should have comment or be unexported (golint)
    • Line 15: warning: exported function Cos should have comment or be unexported (golint)
    • Line 19: warning: exported function Tan should have comment or be unexported (golint)
    • Line 23: warning: exported function Atn should have comment or be unexported (golint)
    • Line 27: warning: exported function Sqr should have comment or be unexported (golint)
    • Line 31: warning: exported function Log should have comment or be unexported (golint)
    • basgo/baslib/lib.go
    • Line 39: warning: exported function Begin should have comment or be unexported (golint)
    • Line 79: warning: exported function Asc should have comment or be unexported (golint)
    • Line 87: warning: exported function Val should have comment or be unexported (golint)
    • Line 96: warning: exported function Int should have comment or be unexported (golint)
    • Line 100: warning: exported function Fix should have comment or be unexported (golint)
    • Line 104: warning: exported function BoolToInt should have comment or be unexported (golint)
    • Line 111: warning: exported function Sgn should have comment or be unexported (golint)
    • Line 121: warning: exported function Date should have comment or be unexported (golint)
    • Line 126: warning: exported function Time should have comment or be unexported (golint)
    • Line 131: warning: exported function Timer should have comment or be unexported (golint)
    • Line 139: warning: exported function Inkey should have comment or be unexported (golint)
    • Line 179: warning: exported function InputCount should have comment or be unexported (golint)
    • Line 199: warning: exported function Input should have comment or be unexported (golint)
    • Line 217: warning: exported function InputParseInteger should have comment or be unexported (golint)
    • Line 225: warning: exported function InputParseFloat should have comment or be unexported (golint)
    • Line 233: warning: exported function Left should have comment or be unexported (golint)
    • Line 243: warning: exported function MidSize should have comment or be unexported (golint)
    • Line 261: warning: exported function Mid should have comment or be unexported (golint)
    • Line 272: warning: exported function String should have comment or be unexported (golint)
    • Line 288: warning: exported function ReadDataString should have comment or be unexported (golint)
    • Line 303: warning: exported function ReadDataInteger should have comment or be unexported (golint)
    • Line 318: warning: exported function ReadDataFloat should have comment or be unexported (golint)
    • Line 337: warning: exported function Restore should have comment or be unexported (golint)
    • Line 349: warning: exported function Right should have comment or be unexported (golint)
    • Line 359: warning: exported function RandomizeAuto should have comment or be unexported (golint)
    • Line 363: warning: exported function Randomize should have comment or be unexported (golint)
    • Line 367: warning: exported function Rnd should have comment or be unexported (golint)
    • Line 377: warning: exported function StrInt should have comment or be unexported (golint)
    • Line 385: warning: exported function StrFloat should have comment or be unexported (golint)
    • Line 394: warning: exported function Instr should have comment or be unexported (golint)
    • Line 409: warning: exported function Pos should have comment or be unexported (golint)
    • Line 413: warning: exported function Csrlin should have comment or be unexported (golint)
    • Line 417: warning: exported function PrintInt should have comment or be unexported (golint)
    • Line 423: warning: exported function PrintFloat should have comment or be unexported (golint)
    • Line 429: warning: exported function Print should have comment or be unexported (golint)
    • Line 484: warning: exported function Println should have comment or be unexported (golint)
    • Line 492: warning: exported function Tab should have comment or be unexported (golint)
    • Line 505: warning: exported function Hex should have comment or be unexported (golint)
    • Line 509: warning: exported function Oct should have comment or be unexported (golint)
    • Line 513: warning: exported function LenStr should have comment or be unexported (golint)
    • Line 517: warning: exported function LenInt should have comment or be unexported (golint)
    • Line 521: warning: exported function LenFloat should have comment or be unexported (golint)
    • Line 525: warning: exported function Chr should have comment or be unexported (golint)
    • Line 529: warning: exported function Peek should have comment or be unexported (golint)
    • basgo/node/node.go
    • Line 47: warning: exported type ArraySymbol should have comment or be unexported (golint)
    • Line 52: warning: exported method ArraySymbol.ArrayType should have comment or be unexported (golint)
    • Line 74: warning: exported function TypeName should have comment or be unexported (golint)
    • Line 90: warning: exported type VarSymbol should have comment or be unexported (golint)
    • Line 121: warning: exported type FuncSymbol should have comment or be unexported (golint)
    • Line 126: warning: comment on exported function IsFuncName should be of the form "IsFuncName ..." (golint)
    • Line 139: warning: exported function FuncSetDeclared should have comment or be unexported (golint)
    • Line 149: warning: exported function FuncSetUsed should have comment or be unexported (golint)
    • Line 171: warning: exported function FuncGet should have comment or be unexported (golint)
    • Line 285: warning: exported function RenameVarType should have comment or be unexported (golint)
    • Line 320: warning: exported function VarTypeDouble should have comment or be unexported (golint)
    • Line 623: warning: exported function FuncBuildType should have comment or be unexported (golint)
    • Line 1473: warning: exported function VarOrArrayIsUsed should have comment or be unexported (golint)
    • Line 1633: warning: exported function BuildReturnGlobal should have comment or be unexported (golint)
    • Line 2634: warning: comment on exported type NodePSet should be of the form "NodePSet ..." (with optional leading article) (golint)
    • basgo/tmp-graphics/a2.go
    • Line 20: warning: don't use underscores in Go names; var sng_i should be sngI (golint)
    • Line 65: warning: don't use underscores in Go names; var sng_i should be sngI (golint)
    • basgo/basparser/misc.go
    • Line 13: warning: exported type ParserResult should have comment or be unexported (golint)
    • Line 88: warning: exported function Reset should have comment or be unexported (golint)
    • basgo/baslib/files.go
    • Line 23: warning: exported function Files should have comment or be unexported (golint)
    • Line 33: warning: exported function Eof should have comment or be unexported (golint)
    • Line 37: warning: exported function Lof should have comment or be unexported (golint)
    • Line 71: warning: exported function Open should have comment or be unexported (golint)
    • Line 113: warning: exported function Close should have comment or be unexported (golint)
    • Line 134: warning: exported function CloseAll should have comment or be unexported (golint)
    • Line 148: warning: exported function FileInputString should have comment or be unexported (golint)
    • Line 152: warning: exported function FileInputInteger should have comment or be unexported (golint)
    • Line 160: warning: exported function FileInputFloat should have comment or be unexported (golint)
    • Line 201: warning: exported function FileInputCount should have comment or be unexported (golint)
    • Line 231: warning: exported function FilePrint should have comment or be unexported (golint)
    • Line 247: warning: exported function FilePrintInt should have comment or be unexported (golint)
    • Line 251: warning: exported function FilePrintFloat should have comment or be unexported (golint)
    • Line 255: warning: exported function FileNewline should have comment or be unexported (golint)
    • Line 259: warning: exported function Kill should have comment or be unexported (golint)
    • Line 271: warning: exported function Name should have comment or be unexported (golint)
    • Line 277: warning: exported function Chdir should have comment or be unexported (golint)
    • Line 283: warning: exported function Mkdir should have comment or be unexported (golint)
    • Line 289: warning: exported function Rmdir should have comment or be unexported (golint)
    • basgo/baslib/env.go
    • Line 8: warning: exported function Environ should have comment or be unexported (golint)
    • Line 33: warning: exported function EnvironKey should have comment or be unexported (golint)
    • Line 37: warning: exported function EnvironIndex should have comment or be unexported (golint)
    • basgo/basgo/basgo.go
    • Line 24: warning: exported const DefaultBaslibImport should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: exported function ShowVersion should have comment or be unexported (golint)
    • basgo/baslex/baslex.go
    • Line 526: warning: exported const DataOff should have comment (or a comment on this block) or be unexported (golint)
    • Line 584: warning: exported function TokenString should have comment or be unexported (golint)
    • basgo/baslib/graphics.go
    • Line 17: warning: exported var G should have comment or be unexported (golint)
    • Line 26: warning: don't use underscores in Go names; struct field u_color should be uColor (golint)
    • Line 311: warning: exported function PSet should have comment or be unexported (golint)
    • Line 337: warning: exported function PReset should have comment or be unexported (golint)
    • Line 364: warning: exported function Line should have comment or be unexported (golint)
    • Line 392: warning: exported function LineBox should have comment or be unexported (golint)
    • basgo/baslib/screen.go
    • Line 26: warning: exported function End should have comment or be unexported (golint)
    • Line 36: warning: exported function Color should have comment or be unexported (golint)
    • Line 54: warning: exported function ScreenFunc should have comment or be unexported (golint)
    • Line 77: warning: exported function Screen should have comment or be unexported (golint)
    • Line 102: warning: exported function Cls should have comment or be unexported (golint)
    • Line 128: warning: exported function Locate should have comment or be unexported (golint)
    • Line 137: warning: exported function LocateCursor should have comment or be unexported (golint)
    • Line 142: warning: exported function Width should have comment or be unexported (golint)
    • Line 150: warning: exported function ViewPrint should have comment or be unexported (golint)
    • Line 167: warning: exported function ViewPrintReset should have comment or be unexported (golint)
    • basgo/basparser/lex.go
    • Line 12: warning: exported function NewInputLex should have comment or be unexported (golint)
    • Line 16: warning: exported type InputLex should have comment or be unexported (golint)
    • Line 35: warning: exported method InputLex.Errors should have comment or be unexported (golint)
    • Line 39: warning: exported method InputLex.Lex should have comment or be unexported (golint)
    • basgo/node/exp.go
    • Line 20: warning: exported function TypeLabel should have comment or be unexported (golint)
    • Line 102: warning: exported function NewNodeExpStringEmpty should have comment or be unexported (golint)
    • Line 106: warning: exported function NewNodeExpString should have comment or be unexported (golint)
    • Line 134: warning: comment on exported type NodeExpIdent should be of the form "NodeExpIdent ..." (with optional leading article) (golint)
    • Line 140: warning: exported function NewNodeExpIdent should have comment or be unexported (golint)
    • Line 628: warning: comment on exported type NodeExpRight should be of the form "NodeExpRight ..." (with optional leading article) (golint)
    • Line 1164: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 1657: warning: exported function RemoveSigil 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!