Preparing report...

Report for github.com/Nv7-Github/bpp

A+    Excellent!    Found 23 issues across 56 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!


gocyclo89%

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.


golint69%

Golint is a linter for Go source code.

    • bpp/ir/vars.go
    • Line 47: warning: comment on exported type AllocStatic should be of the form "AllocStatic ..." (with optional leading article) (golint)
    • Line 52: warning: exported method AllocStatic.Type should have comment or be unexported (golint)
    • Line 64: warning: exported type SetMemory should have comment or be unexported (golint)
    • Line 71: warning: exported method SetMemory.Type should have comment or be unexported (golint)
    • Line 86: warning: exported type GetMemory should have comment or be unexported (golint)
    • Line 92: warning: exported method GetMemory.Type should have comment or be unexported (golint)
    • bpp/compiler/functions.go
    • Line 21: warning: exported function AddFunction should have comment or be unexported (golint)
    • Line 77: warning: exported function CompileFunctionCall should have comment or be unexported (golint)
    • bpp/ir/vals.go
    • Line 34: warning: exported type Const should have comment or be unexported (golint)
    • Line 39: warning: exported method Const.Type should have comment or be unexported (golint)
    • Line 47: warning: exported type Cast should have comment or be unexported (golint)
    • Line 52: warning: exported method Cast.Type should have comment or be unexported (golint)
    • bpp/ir/comparison.go
    • Line 41: warning: exported type Compare should have comment or be unexported (golint)
    • Line 48: warning: exported method Compare.Type should have comment or be unexported (golint)
    • bpp/parser/types.go
    • Line 75: warning: exported const EQUAL should have comment (or a comment on this block) or be unexported (golint)
    • Line 115: warning: exported const STRING should have comment (or a comment on this block) or be unexported (golint)
    • bpp/compiler/compiler.go
    • Line 15: warning: exported function Compile should have comment or be unexported (golint)
    • Line 58: warning: exported function CompileBlock should have comment or be unexported (golint)
    • bpp/ir/types.go
    • Line 8: warning: exported type Type should have comment or be unexported (golint)
    • Line 11: warning: exported const INT should have comment (or a comment on this block) or be unexported (golint)
    • Line 30: warning: exported type Instruction should have comment or be unexported (golint)
    • Line 36: warning: exported type IR should have comment or be unexported (golint)
    • Line 42: warning: exported method IR.Index should have comment or be unexported (golint)
    • Line 46: warning: exported method IR.AddInstruction should have comment or be unexported (golint)
    • Line 60: warning: exported method IR.GetInstruction should have comment or be unexported (golint)
    • Line 64: warning: exported function Indent should have comment or be unexported (golint)
    • bpp/compiler/basics.go
    • Line 13: warning: exported type Variable should have comment or be unexported (golint)
    • Line 24: warning: exported function CompileData should have comment or be unexported (golint)
    • Line 48: warning: exported function CompileArray should have comment or be unexported (golint)
    • Line 79: warning: exported function CompileDefine should have comment or be unexported (golint)
    • Line 126: warning: exported function CompileVar should have comment or be unexported (golint)
    • Line 132: warning: exported function CompileArgs should have comment or be unexported (golint)
    • bpp/compiler/blocks.go
    • Line 12: warning: exported function CompileIf should have comment or be unexported (golint)
    • Line 50: warning: exported function CompileIfBlock should have comment or be unexported (golint)
    • Line 84: warning: exported function CompileWhileBlock should have comment or be unexported (golint)
    • bpp/compiler/compare.go
    • Line 12: warning: exported function CompileCompare should have comment or be unexported (golint)
    • Line 75: warning: don't use underscores in Go names; var val1_l should be val1L (golint)
    • Line 76: warning: don't use underscores in Go names; var val2_l should be val2L (golint)
    • Line 93: warning: exported function CompileMath should have comment or be unexported (golint)
    • bpp/compiler/impl.go
    • Line 12: warning: exported function CompileFloor should have comment or be unexported (golint)
    • Line 22: warning: exported function CompileCeil should have comment or be unexported (golint)
    • Line 32: warning: exported function CompileRound should have comment or be unexported (golint)
    • Line 42: warning: exported function CompileRepeat should have comment or be unexported (golint)
    • Line 67: warning: don't use underscores in Go names; var it_l should be itL (golint)
    • Line 90: warning: exported function CompileConcat should have comment or be unexported (golint)
    • bpp/compiler/rand.go
    • Line 11: warning: exported function CompileIndex should have comment or be unexported (golint)
    • Line 58: warning: exported function CompileChoose should have comment or be unexported (golint)
    • Line 82: warning: exported function CompileRandint should have comment or be unexported (golint)
    • Line 105: warning: comment on exported function CompileRandom should be of the form "CompileRandom ..." (golint)
    • bpp/ir/ir.go
    • Line 9: warning: exported function NewIR should have comment or be unexported (golint)
    • Line 16: warning: exported function CreateIR should have comment or be unexported (golint)
    • Line 27: warning: exported type Print should have comment or be unexported (golint)
    • Line 35: warning: exported method Print.Type should have comment or be unexported (golint)
    • Line 43: warning: exported method IR.AddStmtTop should have comment or be unexported (golint)
    • bpp/ir/math.go
    • Line 52: warning: exported type Math should have comment or be unexported (golint)
    • Line 59: warning: exported method Math.Type should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign98%

IneffAssign detects ineffectual assignments in Go code.


misspell98%

Misspell Finds commonly misspelled English words