Preparing report...

Report for github.com/mattn/anko

(v0.1.9)

A    Great!    Found 42 issues across 88 files

Tweet

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!


gofmt70%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


gocyclo77%

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.

    • anko.go
    • Line 91: warning: cyclomatic complexity 18 of function runInteractive() is high (> 15) (gocyclo)
    • vm/vmOperator.go
    • Line 11: warning: cyclomatic complexity 66 of function (*runInfoStruct).invokeOperator() is high (> 15) (gocyclo)
    • core/core.go
    • Line 15: warning: cyclomatic complexity 17 of function Import() is high (> 15) (gocyclo)
    • env/env_test.go
    • Line 44: warning: cyclomatic complexity 63 of function TestGetEnvFromPath() is high (> 15) (gocyclo)
    • Line 289: warning: cyclomatic complexity 33 of function TestCopy() is high (> 15) (gocyclo)
    • core/toX.go
    • Line 14: warning: cyclomatic complexity 24 of function ImportToX() is high (> 15) (gocyclo)
    • vm/vmConvertToX.go
    • Line 28: warning: cyclomatic complexity 23 of function convertReflectValueToType() is high (> 15) (gocyclo)
    • vm/vmStmt.go
    • Line 52: warning: cyclomatic complexity 167 of function (*runInfoStruct).runSingleStmt() is high (> 15) (gocyclo)
    • ast/astutil/walk.go
    • Line 40: warning: cyclomatic complexity 45 of function walkStmt() is high (> 15) (gocyclo)
    • Line 150: warning: cyclomatic complexity 39 of function walkExpr() is high (> 15) (gocyclo)
    • anko_test.go
    • Line 95: warning: cyclomatic complexity 33 of function runInteractiveTests() is high (> 15) (gocyclo)
    • parser/lexer.go
    • Line 91: warning: cyclomatic complexity 57 of function (*Scanner).Scan() is high (> 15) (gocyclo)
    • vm/vm.go
    • Line 287: warning: cyclomatic complexity 26 of function makeType() is high (> 15) (gocyclo)
    • Line 139: warning: cyclomatic complexity 24 of function equal() is high (> 15) (gocyclo)
    • Line 227: warning: cyclomatic complexity 24 of function appendSlice() is high (> 15) (gocyclo)
    • vm/vmExpr.go
    • Line 11: warning: cyclomatic complexity 157 of function (*runInfoStruct).invokeExpr() is high (> 15) (gocyclo)
    • vm/vmLetExpr.go
    • Line 10: warning: cyclomatic complexity 65 of function (*runInfoStruct).invokeLetExpr() is high (> 15) (gocyclo)
    • env/envValues_test.go
    • Line 176: warning: cyclomatic complexity 61 of function TestDefineModify() is high (> 15) (gocyclo)
    • Line 54: warning: cyclomatic complexity 31 of function TestDefineAndGet() is high (> 15) (gocyclo)

ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!