Preparing report...

Report for github.com/gogf/gf

(v1.16.9)

A+    Excellent!    Found 98 issues across 1187 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!


gocyclo94%

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.

    • database/gdb/gdb_model_with.go
    • Line 62: warning: cyclomatic complexity 22 of function (*Model).doWithScanStruct() is high (> 15) (gocyclo)
    • Line 170: warning: cyclomatic complexity 21 of function (*Model).doWithScanStructs() is high (> 15) (gocyclo)
    • database/gdb/gdb_func.go
    • Line 432: warning: cyclomatic complexity 36 of function formatWhere() is high (> 15) (gocyclo)
    • Line 675: warning: cyclomatic complexity 19 of function handleArguments() is high (> 15) (gocyclo)
    • util/gconv/gconv_slice_uint.go
    • Line 278: warning: cyclomatic complexity 40 of function Uint64s() is high (> 15) (gocyclo)
    • Line 27: warning: cyclomatic complexity 40 of function Uints() is high (> 15) (gocyclo)
    • Line 153: warning: cyclomatic complexity 40 of function Uint32s() is high (> 15) (gocyclo)
    • net/ghttp/ghttp_server_router.go
    • Line 219: warning: cyclomatic complexity 28 of function (*Server).compareRouterPriority() is high (> 15) (gocyclo)
    • Line 70: warning: cyclomatic complexity 24 of function (*Server).setHandler() is high (> 15) (gocyclo)
    • text/gstr/gstr_parse.go
    • Line 26: warning: cyclomatic complexity 24 of function Parse() is high (> 15) (gocyclo)
    • Line 97: warning: cyclomatic complexity 18 of function build() is high (> 15) (gocyclo)
    • net/ghttp/ghttp_server_handler.go
    • Line 34: warning: cyclomatic complexity 41 of function (*Server).ServeHTTP() is high (> 15) (gocyclo)
    • Line 202: warning: cyclomatic complexity 16 of function (*Server).searchStaticFile() is high (> 15) (gocyclo)
    • util/gconv/gconv_struct.go
    • Line 56: warning: cyclomatic complexity 50 of function doStruct() is high (> 15) (gocyclo)
    • Line 387: warning: cyclomatic complexity 25 of function bindVarToReflectValue() is high (> 15) (gocyclo)
    • Line 327: warning: cyclomatic complexity 18 of function bindVarToReflectValueWithInterfaceCheck() is high (> 15) (gocyclo)
    • util/gconv/gconv_map.go
    • Line 40: warning: cyclomatic complexity 52 of function doMapConvert() is high (> 15) (gocyclo)
    • Line 182: warning: cyclomatic complexity 40 of function doMapConvertForMapOrStructValue() is high (> 15) (gocyclo)
    • net/ghttp/ghttp_server.go
    • Line 351: warning: cyclomatic complexity 28 of function (*Server).startServer() is high (> 15) (gocyclo)
    • Line 239: warning: cyclomatic complexity 21 of function (*Server).GetRouterArray() is high (> 15) (gocyclo)
    • Line 120: warning: cyclomatic complexity 20 of function (*Server).Start() is high (> 15) (gocyclo)
    • database/gdb/gdb_model_insert.go
    • Line 210: warning: cyclomatic complexity 25 of function (*Model).doInsertWithOption() is high (> 15) (gocyclo)
    • Line 314: warning: cyclomatic complexity 18 of function (*Model).formatDoInsertOption() is high (> 15) (gocyclo)
    • Line 39: warning: cyclomatic complexity 16 of function (*Model).Data() is high (> 15) (gocyclo)
    • util/gconv/gconv.go
    • Line 57: warning: cyclomatic complexity 75 of function doConvert() is high (> 15) (gocyclo)
    • Line 561: warning: cyclomatic complexity 33 of function Int64() is high (> 15) (gocyclo)
    • Line 370: warning: cyclomatic complexity 33 of function String() is high (> 15) (gocyclo)
    • Line 686: warning: cyclomatic complexity 27 of function Uint64() is high (> 15) (gocyclo)
    • os/gview/gview_parse.go
    • Line 58: warning: cyclomatic complexity 17 of function (*View).Parse() is high (> 15) (gocyclo)
    • Line 310: warning: cyclomatic complexity 16 of function (*View).searchFile() is high (> 15) (gocyclo)
    • Line 223: warning: cyclomatic complexity 16 of function (*View).getTemplate() is high (> 15) (gocyclo)
    • util/gconv/gconv_slice_int.go
    • Line 157: warning: cyclomatic complexity 42 of function Int32s() is high (> 15) (gocyclo)
    • Line 27: warning: cyclomatic complexity 42 of function Ints() is high (> 15) (gocyclo)
    • Line 287: warning: cyclomatic complexity 42 of function Int64s() 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!