Preparing report...

Report for github.com/elliotchance/c2go

(v0.26.10)

A+    Excellent!    Found 34 issues across 300 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!


gofmt96%

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


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

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.

    • types/resolve.go
    • Line 186: warning: cyclomatic complexity 39 of function ResolveType() is high (> 15) (gocyclo)
    • Line 496: warning: cyclomatic complexity 17 of function ParseFunction() is high (> 15) (gocyclo)
    • transpiler/transpiler.go
    • Line 293: warning: cyclomatic complexity 32 of function transpileToStmt() is high (> 15) (gocyclo)
    • Line 128: warning: cyclomatic complexity 28 of function transpileToExpr() is high (> 15) (gocyclo)
    • types/cast.go
    • Line 63: warning: cyclomatic complexity 115 of function CastExpr() is high (> 15) (gocyclo)
    • ast/position.go
    • Line 232: warning: cyclomatic complexity 91 of function setPosition() is high (> 15) (gocyclo)
    • Line 35: warning: cyclomatic complexity 17 of function NewPositionFromString() is high (> 15) (gocyclo)
    • transpiler/branch.go
    • Line 134: warning: cyclomatic complexity 33 of function transpileForStmt() is high (> 15) (gocyclo)
    • Line 21: warning: cyclomatic complexity 19 of function transpileIfStmt() is high (> 15) (gocyclo)
    • main.go
    • Line 175: warning: cyclomatic complexity 23 of function Start() is high (> 15) (gocyclo)
    • main_test.go
    • Line 44: warning: cyclomatic complexity 35 of function TestIntegrationScripts() is high (> 15) (gocyclo)
    • transpiler/unary.go
    • Line 301: warning: cyclomatic complexity 78 of function transpilePointerArith() is high (> 15) (gocyclo)
    • Line 18: warning: cyclomatic complexity 17 of function transpileUnaryOperatorInc() is high (> 15) (gocyclo)
    • Line 681: warning: cyclomatic complexity 16 of function transpileUnaryExprOrTypeTraitExpr() is high (> 15) (gocyclo)
    • linux/ctype.go
    • Line 10: warning: cyclomatic complexity 28 of function generateCharacterTable() is high (> 15) (gocyclo)
    • util/evaluate.go
    • Line 24: warning: cyclomatic complexity 27 of function (*calcVisitor).Visit() is high (> 15) (gocyclo)
    • transpiler/variables.go
    • Line 211: warning: cyclomatic complexity 17 of function transpileInitListExpr() is high (> 15) (gocyclo)
    • Line 66: warning: cyclomatic complexity 16 of function getDefaultValueForVar() is high (> 15) (gocyclo)
    • ast/ast.go
    • Line 37: warning: cyclomatic complexity 113 of function Parse() is high (> 15) (gocyclo)
    • transpiler/switch.go
    • Line 16: warning: cyclomatic complexity 46 of function transpileSwitchStmt() is high (> 15) (gocyclo)
    • Line 426: warning: cyclomatic complexity 24 of function handleLabelCases() is high (> 15) (gocyclo)
    • ast/character_literal.go
    • Line 199: warning: cyclomatic complexity 24 of function decodeEscapeSequence() is high (> 15) (gocyclo)
    • Line 135: warning: cyclomatic complexity 16 of function parseCharacterLiteralFromSource() is high (> 15) (gocyclo)
    • transpiler/operators.go
    • Line 491: warning: cyclomatic complexity 55 of function atomicOperation() is high (> 15) (gocyclo)
    • Line 381: warning: cyclomatic complexity 35 of function getTokenForOperator() is high (> 15) (gocyclo)
    • Line 36: warning: cyclomatic complexity 19 of function transpileConditionalOperator() is high (> 15) (gocyclo)
    • Line 292: warning: cyclomatic complexity 17 of function transpileCompoundAssignOperator() is high (> 15) (gocyclo)
    • transpiler/declarations.go
    • Line 402: warning: cyclomatic complexity 35 of function transpileVarDecl() is high (> 15) (gocyclo)
    • Line 107: warning: cyclomatic complexity 28 of function transpileRecordDecl() is high (> 15) (gocyclo)
    • Line 255: warning: cyclomatic complexity 20 of function transpileTypedefDecl() is high (> 15) (gocyclo)

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!