Preparing report...

Report for github.com/open2b/scriggo

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


golint92%

Golint is a linter for Go source code.

    • scriggo/ast/ast.go
    • Line 97: warning: exported const AssignmentSimple should have comment (or a comment on this block) or be unexported (golint)
    • Line 150: warning: exported const ContextText should have comment (or a comment on this block) or be unexported (golint)
    • Line 205: warning: exported const StringLiteral should have comment (or a comment on this block) or be unexported (golint)
    • Line 216: warning: exported const NoDirection should have comment (or a comment on this block) or be unexported (golint)
    • scriggo/internal/runtime/vm.go
    • Line 21: warning: exported const NoVariadicArgs should have comment or be unexported (golint)
    • Line 22: warning: exported const CurrentFunction should have comment or be unexported (golint)
    • Line 23: warning: exported const ReturnString should have comment or be unexported (golint)
    • Line 60: warning: exported type StackShift should have comment or be unexported (golint)
    • Line 62: warning: exported type Instruction should have comment or be unexported (golint)
    • Line 729: warning: exported type Registers should have comment or be unexported (golint)
    • Line 742: warning: exported type NativeFunction should have comment or be unexported (golint)
    • Line 797: warning: exported method NativeFunction.Package should have comment or be unexported (golint)
    • Line 801: warning: exported method NativeFunction.Name should have comment or be unexported (golint)
    • Line 805: warning: exported method NativeFunction.Func should have comment or be unexported (golint)
    • Line 853: warning: exported type Addr should have comment or be unexported (golint)
    • Line 999: warning: exported type Condition should have comment or be unexported (golint)
    • Line 1002: warning: exported const ConditionZero should have comment (or a comment on this block) or be unexported (golint)
    • Line 1040: warning: exported type Operation should have comment or be unexported (golint)
    • Line 1043: warning: exported const OpNone should have comment (or a comment on this block) or be unexported (golint)
    • scriggo/internal/compiler/builder.go
    • Line 720: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 726: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 732: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • scriggo/internal/compiler/checker_test.go
    • Line 54: warning: receiver name mp should be consistent with previous receiver name mv for Me (golint)
    • Line 1869: warning: receiver name mp should be consistent with previous receiver name mv for MvEnv (golint)
    • Line 1870: warning: receiver name mp should be consistent with previous receiver name mv for MvEnv (golint)

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.

    • scriggo/ast/astutil/clone.go
    • Line 19: warning: cyclomatic complexity 91 of function CloneNode() is high (> 15) (gocyclo)
    • Line 348: warning: cyclomatic complexity 33 of function CloneExpression() is high (> 15) (gocyclo)
    • scriggo/test/compare/run.go
    • Line 37: warning: cyclomatic complexity 37 of function main() is high (> 15) (gocyclo)
    • Line 648: warning: cyclomatic complexity 30 of function test() is high (> 15) (gocyclo)
    • Line 501: warning: cyclomatic complexity 18 of function runGc() is high (> 15) (gocyclo)

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!