Preparing report...

Report for github.com/openimsdk/openim-sdk-core

(v1.0.7)

A    Great!    Found 21 issues across 35 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!


gofmt54%

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


gocyclo80%

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.

    • open_im_sdk/data_model.go
    • Line 1789: warning: cyclomatic complexity 18 of function (*UserRelated).getConsequentLocalMaxSeq() is high (> 15) (gocyclo)
    • Line 46: warning: cyclomatic complexity 17 of function (*UserRelated).initDBX() is high (> 15) (gocyclo)
    • open_im_sdk/friend.go
    • Line 311: warning: cyclomatic complexity 18 of function (*UserRelated).syncFriendApplication() is high (> 15) (gocyclo)
    • Line 374: warning: cyclomatic complexity 16 of function (*UserRelated).syncFriendList() is high (> 15) (gocyclo)
    • Line 13: warning: cyclomatic complexity 16 of function (*UserRelated).doFriendList() is high (> 15) (gocyclo)
    • Line 108: warning: cyclomatic complexity 16 of function (*UserRelated).doBlackList() is high (> 15) (gocyclo)
    • open_im_sdk/conversation_msg.go
    • Line 50: warning: cyclomatic complexity 46 of function (*UserRelated).doMsgNew() is high (> 15) (gocyclo)
    • Line 356: warning: cyclomatic complexity 28 of function (*UserRelated).doUpdateConversation() is high (> 15) (gocyclo)
    • test/main.go
    • Line 330: warning: cyclomatic complexity 28 of function main() is high (> 15) (gocyclo)

ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


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!