Preparing report...

Report for github.com/goplus/gogen

(v1.14.12)

A+    Excellent!    Found 12 issues across 46 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!


gofmt97%

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


gocyclo76%

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.

    • stmt.go
    • Line 470: warning: cyclomatic complexity 19 of function (*forRangeStmt).RangeAssignThen() is high (> 15) (gocyclo)
    • Line 583: warning: cyclomatic complexity 16 of function (*forRangeStmt).checkUdt() is high (> 15) (gocyclo)
    • package.go
    • Line 184: warning: cyclomatic complexity 17 of function (astVisitor).Visit() is high (> 15) (gocyclo)
    • internal/go/printer/printer.go
    • Line 350: warning: cyclomatic complexity 32 of function (*printer).writeCommentPrefix() is high (> 15) (gocyclo)
    • Line 503: warning: cyclomatic complexity 26 of function stripCommonPrefix() is high (> 15) (gocyclo)
    • Line 876: warning: cyclomatic complexity 25 of function (*printer).print() is high (> 15) (gocyclo)
    • Line 1072: warning: cyclomatic complexity 24 of function (*printer).printNode() is high (> 15) (gocyclo)
    • Line 736: warning: cyclomatic complexity 20 of function (*printer).intersperseComments() is high (> 15) (gocyclo)
    • Line 1200: warning: cyclomatic complexity 16 of function (*trimmer).Write() is high (> 15) (gocyclo)
    • template.go
    • Line 240: warning: cyclomatic complexity 27 of function AssignableConv() is high (> 15) (gocyclo)
    • Line 109: warning: cyclomatic complexity 27 of function boundType() is high (> 15) (gocyclo)
    • import.go
    • Line 93: warning: cyclomatic complexity 19 of function InitThisGopPkg() is high (> 15) (gocyclo)
    • codebuild.go
    • Line 1599: warning: cyclomatic complexity 19 of function (*CodeBuilder).findMember() is high (> 15) (gocyclo)
    • Line 2188: warning: cyclomatic complexity 16 of function (*CodeBuilder).BinaryOp() is high (> 15) (gocyclo)
    • func.go
    • Line 163: warning: cyclomatic complexity 18 of function (*Package).NewFuncWith() is high (> 15) (gocyclo)
    • internal/go/printer/nodes.go
    • Line 774: warning: cyclomatic complexity 58 of function (*printer).expr1() is high (> 15) (gocyclo)
    • Line 131: warning: cyclomatic complexity 48 of function (*printer).exprList() is high (> 15) (gocyclo)
    • Line 1273: warning: cyclomatic complexity 40 of function (*printer).stmt() is high (> 15) (gocyclo)
    • Line 473: warning: cyclomatic complexity 32 of function (*printer).fieldList() is high (> 15) (gocyclo)
    • Line 606: warning: cyclomatic complexity 19 of function walkBinary() is high (> 15) (gocyclo)
    • Line 1026: warning: cyclomatic complexity 18 of function normalizedNumber() is high (> 15) (gocyclo)
    • Line 331: warning: cyclomatic complexity 17 of function (*printer).parameters() is high (> 15) (gocyclo)
    • ast.go
    • Line 595: warning: cyclomatic complexity 51 of function matchFuncCall() is high (> 15) (gocyclo)
    • Line 780: warning: cyclomatic complexity 32 of function matchTypeCast() is high (> 15) (gocyclo)
    • Line 1232: warning: cyclomatic complexity 26 of function matchType() is high (> 15) (gocyclo)
    • Line 1004: warning: cyclomatic complexity 19 of function matchFuncType() is high (> 15) (gocyclo)
    • Line 263: warning: cyclomatic complexity 17 of function toExpr() is high (> 15) (gocyclo)
    • type_var_and_const.go
    • Line 300: warning: cyclomatic complexity 26 of function (*ValueDecl).endInit() is high (> 15) (gocyclo)
    • Line 398: warning: cyclomatic complexity 20 of function (*Package).newValueDecl() 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!