Preparing report...

Report for github.com/gwos/tcg

(v0.0.0-20220621192633-df0eac0a1a4c)

A+    Excellent!    Found 21 issues across 92 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!


gofmt92%

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


gocyclo88%

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.

    • gotocjson/gotocjson.go
    • Line 379: warning: cyclomatic complexity 202 of function process_parse_nodes() is high (> 15) (gocyclo)
    • Line 2228: warning: cyclomatic complexity 99 of function print_type_declarations() is high (> 15) (gocyclo)
    • Line 4864: warning: cyclomatic complexity 77 of function generate_decode_PackageName_StructTypeName_ptr_tree() is high (> 15) (gocyclo)
    • Line 3986: warning: cyclomatic complexity 62 of function generate_encode_PackageName_StructTypeName_ptr_tree() is high (> 15) (gocyclo)
    • Line 1505: warning: cyclomatic complexity 33 of function eval_numeric_expr() is high (> 15) (gocyclo)
    • Line 5676: warning: cyclomatic complexity 32 of function generate_destroy_PackageName_StructTypeName_ptr_tree() is high (> 15) (gocyclo)
    • Line 2126: warning: cyclomatic complexity 26 of function foreign_type_C_type() is high (> 15) (gocyclo)
    • Line 1659: warning: cyclomatic complexity 23 of function topologically_sort_nodes() is high (> 15) (gocyclo)
    • Line 138: warning: cyclomatic complexity 16 of function parse_args() is high (> 15) (gocyclo)

ineffassign91%

IneffAssign detects ineffectual assignments in Go code.

    • gotocjson/gotocjson.go
    • Line 915: warning: ineffectual assignment to key_type_starexpr (ineffassign)
    • Line 960: warning: ineffectual assignment to type_interfacetype (ineffassign)
    • Line 1070: warning: ineffectual assignment to type_ptr (ineffassign)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell96%

Misspell Finds commonly misspelled English words