Preparing report...

Report for github.com/TangSengDaoDao/TangSengDaoDaoServer

(v0.0.0-20230712121701-105132a5d9d3)

A+    Excellent!    Found 35 issues across 198 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!


gofmt93%

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!


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.

    • internal/api/user/service.go
    • Line 222: warning: cyclomatic complexity 31 of function (*Service).GetUserDetails() is high (> 15) (gocyclo)
    • Line 121: warning: cyclomatic complexity 25 of function (*Service).GetUserDetail() is high (> 15) (gocyclo)
    • internal/api/source/source.go
    • Line 94: warning: cyclomatic complexity 30 of function GetSources() is high (> 15) (gocyclo)
    • Line 212: warning: cyclomatic complexity 26 of function CheckSource() is high (> 15) (gocyclo)
    • Line 53: warning: cyclomatic complexity 21 of function GetSoruce() is high (> 15) (gocyclo)
    • internal/api/user/api.go
    • Line 386: warning: cyclomatic complexity 38 of function (*User).userUpdateWithField() is high (> 15) (gocyclo)
    • Line 822: warning: cyclomatic complexity 24 of function (*User).execLogin() is high (> 15) (gocyclo)
    • Line 2228: warning: cyclomatic complexity 17 of function (*User).createUserWithRespAndTx() is high (> 15) (gocyclo)
    • Line 631: warning: cyclomatic complexity 16 of function (*User).wxLogin() is high (> 15) (gocyclo)
    • internal/api/group/api.go
    • Line 725: warning: cyclomatic complexity 40 of function (*Group).addMembersTx() is high (> 15) (gocyclo)
    • Line 1699: warning: cyclomatic complexity 33 of function (*Group).memberRemove() is high (> 15) (gocyclo)
    • Line 1279: warning: cyclomatic complexity 29 of function (*Group).groupScanJoin() is high (> 15) (gocyclo)
    • Line 2277: warning: cyclomatic complexity 27 of function (*Group).forbiddenWithGroupMember() is high (> 15) (gocyclo)
    • Line 332: warning: cyclomatic complexity 23 of function (*Group).groupCreate() is high (> 15) (gocyclo)
    • Line 2133: warning: cyclomatic complexity 21 of function (*Group).blacklist() is high (> 15) (gocyclo)
    • Line 1477: warning: cyclomatic complexity 20 of function (*Group).transferGrouper() is high (> 15) (gocyclo)
    • Line 1997: warning: cyclomatic complexity 19 of function (*Group).groupExit() is high (> 15) (gocyclo)
    • Line 633: warning: cyclomatic complexity 16 of function (*Group).memberAdd() is high (> 15) (gocyclo)
    • internal/api/message/api.go
    • Line 283: warning: cyclomatic complexity 20 of function (*Message).messageReaded() is high (> 15) (gocyclo)
    • Line 1458: warning: cyclomatic complexity 19 of function (*Message).erase() is high (> 15) (gocyclo)
    • Line 1663: warning: cyclomatic complexity 19 of function newSyncChannelMessageResp() is high (> 15) (gocyclo)
    • Line 1287: warning: cyclomatic complexity 18 of function (*Message).revoke() is high (> 15) (gocyclo)
    • internal/api/webhook/api.go
    • Line 405: warning: cyclomatic complexity 17 of function (*Webhook).allowPush() is high (> 15) (gocyclo)
    • Line 318: warning: cyclomatic complexity 16 of function (*Webhook).pushTo() is high (> 15) (gocyclo)
    • internal/api/user/api_friend.go
    • Line 269: warning: cyclomatic complexity 30 of function (*Friend).friendSure() is high (> 15) (gocyclo)
    • Line 162: warning: cyclomatic complexity 18 of function (*Friend).friendApply() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell99%

Misspell Finds commonly misspelled English words