Preparing report...

Report for github.com/xlab/c-for-go

(v1.3.0)

A+    Excellent!    Found 9 issues across 26 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!


gofmt100%

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

No problems detected. Good job!


gocyclo65%

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.

    • generator/gen_bindings.go
    • Line 790: warning: cyclomatic complexity 28 of function (*Generator).proxyValueToGo() is high (> 15) (gocyclo)
    • Line 523: warning: cyclomatic complexity 28 of function (*Generator).proxyArgFromGo() is high (> 15) (gocyclo)
    • Line 872: warning: cyclomatic complexity 21 of function (*Generator).proxyRetToGo() is high (> 15) (gocyclo)
    • Line 473: warning: cyclomatic complexity 20 of function (*Generator).proxyValueFromGo() is high (> 15) (gocyclo)
    • Line 742: warning: cyclomatic complexity 20 of function (*Generator).proxyArgToGo() is high (> 15) (gocyclo)
    • Line 928: warning: cyclomatic complexity 19 of function (*Generator).createProxies() is high (> 15) (gocyclo)
    • process.go
    • Line 179: warning: cyclomatic complexity 19 of function (*Process).Flush() is high (> 15) (gocyclo)
    • generator/generator.go
    • Line 190: warning: cyclomatic complexity 29 of function (*Generator).WriteTypedefs() is high (> 15) (gocyclo)
    • Line 86: warning: cyclomatic complexity 27 of function (*Generator).WriteConst() is high (> 15) (gocyclo)
    • Line 363: warning: cyclomatic complexity 22 of function (*Generator).MonitorAndWriteHelpers() is high (> 15) (gocyclo)
    • Line 282: warning: cyclomatic complexity 21 of function (*Generator).WriteDeclares() is high (> 15) (gocyclo)
    • translator/ast_walker.go
    • Line 293: warning: cyclomatic complexity 41 of function (*Translator).typeSpec() is high (> 15) (gocyclo)
    • Line 114: warning: cyclomatic complexity 20 of function (*Translator).enumSpec() is high (> 15) (gocyclo)
    • translator/translator.go
    • Line 702: warning: cyclomatic complexity 57 of function (*Translator).TranslateSpec() is high (> 15) (gocyclo)
    • Line 345: warning: cyclomatic complexity 37 of function (*Translator).collectDefines() is high (> 15) (gocyclo)
    • Line 946: warning: cyclomatic complexity 23 of function (*Translator).registerTagsOf() is high (> 15) (gocyclo)
    • Line 520: warning: cyclomatic complexity 17 of function (*Translator).TransformName() 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!


misspell96%

Misspell Finds commonly misspelled English words