Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
No problems detected. Good job!
Golint is a linter for Go source code.
-
wechat-work-go/contact/contact.go
- Line 140: warning: exported type RespOpenIDInfo should have comment or be unexported (golint)
- Line 145: warning: exported type RespUserIDInfo should have comment or be unexported (golint)
- Line 178: warning: exported type ReqInviteMembers should have comment or be unexported (golint)
- Line 184: warning: exported type ResqInviteMembers should have comment or be unexported (golint)
-
wechat-work-go/message/app_message.go
- Line 32: warning: exported method AppTextMessage.Sendable should have comment or be unexported (golint)
- Line 45: warning: exported method AppImageMessage.Sendable should have comment or be unexported (golint)
- Line 58: warning: exported method AppVoiceMessage.Sendable should have comment or be unexported (golint)
- Line 72: warning: exported method AppVedioMessage.Sendable should have comment or be unexported (golint)
- Line 85: warning: exported method AppFileMessage.Sendable should have comment or be unexported (golint)
- Line 96: warning: exported type TextCard should have comment or be unexported (golint)
- Line 103: warning: exported method AppTextCardMessage.Sendable should have comment or be unexported (golint)
- Line 121: warning: exported method AppNewsMessage.Sendable should have comment or be unexported (golint)
- Line 125: warning: comment on exported type AppMPNewsMessage should be of the form "AppMPNewsMessage ..." (with optional leading article) (golint)
- Line 141: warning: exported method AppMPNewsMessage.Sendable should have comment or be unexported (golint)
- Line 154: warning: exported method AppMarkdownMessage.Sendable should have comment or be unexported (golint)
- Line 158: warning: exported function NewAppTextMessage should have comment or be unexported (golint)
- Line 171: warning: exported function NewAppImageMessage should have comment or be unexported (golint)
- Line 184: warning: exported function NewAppVoiceMessage should have comment or be unexported (golint)
- Line 196: warning: exported function NewAppVedioMessage should have comment or be unexported (golint)
- Line 211: warning: exported function NewAppFileMessage should have comment or be unexported (golint)
-
wechat-work-go/message/group_chat_message.go
- Line 101: warning: comment on exported type GroupChatTextMessage should be of the form "GroupChatTextMessage ..." (with optional leading article) (golint)
- Line 110: warning: exported method GroupChatTextMessage.Sendable should have comment or be unexported (golint)
- Line 114: warning: comment on exported type GroupChatImageMessage should be of the form "GroupChatImageMessage ..." (with optional leading article) (golint)
- Line 123: warning: exported method GroupChatImageMessage.Sendable should have comment or be unexported (golint)
- Line 127: warning: comment on exported type GroupChatVoiceMessage should be of the form "GroupChatVoiceMessage ..." (with optional leading article) (golint)
- Line 136: warning: exported method GroupChatVoiceMessage.Sendable should have comment or be unexported (golint)
- Line 140: warning: comment on exported type GroupChatVedioMessage should be of the form "GroupChatVedioMessage ..." (with optional leading article) (golint)
- Line 150: warning: exported method GroupChatVedioMessage.Sendable should have comment or be unexported (golint)
- Line 154: warning: comment on exported type GroupChatFileMessage should be of the form "GroupChatFileMessage ..." (with optional leading article) (golint)
- Line 163: warning: exported method GroupChatFileMessage.Sendable should have comment or be unexported (golint)
- Line 167: warning: comment on exported type GroupChatTextCardMessage should be of the form "GroupChatTextCardMessage ..." (with optional leading article) (golint)
- Line 179: warning: exported method GroupChatTextCardMessage.Sendable should have comment or be unexported (golint)
- Line 183: warning: comment on exported type GroupChatNewsMessage should be of the form "GroupChatNewsMessage ..." (with optional leading article) (golint)
- Line 197: warning: exported method GroupChatNewsMessage.Sendable should have comment or be unexported (golint)
- Line 201: warning: comment on exported type GroupChatMPNewsMessage should be of the form "GroupChatMPNewsMessage ..." (with optional leading article) (golint)
- Line 217: warning: exported method GroupChatMPNewsMessage.Sendable should have comment or be unexported (golint)
-
wechat-work-go/contact/model.go
- Line 10: warning: exported type ReqCreateMember should have comment or be unexported (golint)
- Line 61: warning: exported type RespCreateMember should have comment or be unexported (golint)
- Line 89: warning: exported type ExternalProfile should have comment or be unexported (golint)
- Line 109: warning: exported type Extattr should have comment or be unexported (golint)
- Line 123: warning: exported type RespListMembers should have comment or be unexported (golint)
- Line 132: warning: exported type RespListMembers2 should have comment or be unexported (golint)
- Line 188: warning: exported type ReqCreateDepartment should have comment or be unexported (golint)
- Line 195: warning: exported type RespCreateDepartment should have comment or be unexported (golint)
- Line 200: warning: exported type ReqUpdateDepartment should have comment or be unexported (golint)
- Line 207: warning: exported type Department should have comment or be unexported (golint)
- Line 214: warning: exported type RespListDepartments should have comment or be unexported (golint)
- Line 220: warning: exported type ReqBatchDeleteMembers should have comment or be unexported (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!