Preparing report...

Report for github.com/sealdb/mysqlstack

(v0.0.0-20230611153737-118e7ccb997b)

A+    Excellent!    Found 38 issues across 117 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!


gofmt82%

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!


gocyclo84%

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.

    • proto/auth.go
    • Line 70: warning: cyclomatic complexity 17 of function (*Auth).UnPack() is high (> 15) (gocyclo)
    • sqlparser/depends/sqltypes/value.go
    • Line 507: warning: cyclomatic complexity 62 of function (Value).ToMySQL() is high (> 15) (gocyclo)
    • Line 821: warning: cyclomatic complexity 58 of function ParseMySQLValues() is high (> 15) (gocyclo)
    • Line 143: warning: cyclomatic complexity 19 of function BuildValue() is high (> 15) (gocyclo)
    • sqlparser/ast.go
    • Line 919: warning: cyclomatic complexity 24 of function (TableOptions).Format() is high (> 15) (gocyclo)
    • Line 857: warning: cyclomatic complexity 20 of function (*DDL).Format() is high (> 15) (gocyclo)
    • Line 1047: warning: cyclomatic complexity 19 of function (*ColumnType).Format() is high (> 15) (gocyclo)
    • driver/session.go
    • Line 153: warning: cyclomatic complexity 19 of function (*Session).writeBaseRows() is high (> 15) (gocyclo)
    • driver/server.go
    • Line 137: warning: cyclomatic complexity 40 of function (*Listener).handle() is high (> 15) (gocyclo)
    • driver/mock.go
    • Line 215: warning: cyclomatic complexity 23 of function (*TestHandler).ComQuery() is high (> 15) (gocyclo)
    • sqlparser/depends/sqltypes/arithmetic.go
    • Line 417: warning: cyclomatic complexity 23 of function compareNumeric() is high (> 15) (gocyclo)
    • Line 515: warning: cyclomatic complexity 18 of function Cast() is high (> 15) (gocyclo)
    • Line 371: warning: cyclomatic complexity 17 of function castFromNumeric() is high (> 15) (gocyclo)
    • sqlparser/ast_funcs.go
    • Line 158: warning: cyclomatic complexity 52 of function (*TableOptionListOpt).CheckIfTableOptDuplicate() is high (> 15) (gocyclo)
    • packet/packets.go
    • Line 335: warning: cyclomatic complexity 16 of function (*Packets).ReadStatementPrepareResponse() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell98%

Misspell Finds commonly misspelled English words