Preparing report...

Report for github.com/CatchZeng/feishu

A+    Excellent!    Found 4 issues across 13 files

Tweet

gofmt100%

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

No problems detected. Good job!


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!


gocyclo100%

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!


golint69%

Golint is a linter for Go source code.

    • feishu/post.go
    • Line 3: warning: exported type PostMessage should have comment or be unexported (golint)
    • Line 8: warning: exported function NewPostMessage should have comment or be unexported (golint)
    • Line 12: warning: exported method PostMessage.Body should have comment or be unexported (golint)
    • Line 17: warning: exported method PostMessage.SetZH should have comment or be unexported (golint)
    • Line 22: warning: exported method PostMessage.SetZHTitle should have comment or be unexported (golint)
    • Line 27: warning: exported method PostMessage.AppendZHContent should have comment or be unexported (golint)
    • Line 32: warning: exported method PostMessage.SetJA should have comment or be unexported (golint)
    • Line 37: warning: exported method PostMessage.SetJATitle should have comment or be unexported (golint)
    • Line 42: warning: exported method PostMessage.AppendJAContent should have comment or be unexported (golint)
    • Line 47: warning: exported method PostMessage.SetEN should have comment or be unexported (golint)
    • Line 52: warning: exported method PostMessage.SetENTitle should have comment or be unexported (golint)
    • Line 57: warning: exported method PostMessage.AppendENContent should have comment or be unexported (golint)
    • Line 62: warning: exported type PostContent should have comment or be unexported (golint)
    • Line 66: warning: exported type PostBody should have comment or be unexported (golint)
    • Line 72: warning: exported type PostUnit should have comment or be unexported (golint)
    • Line 77: warning: exported type PostItem should have comment or be unexported (golint)
    • Line 79: warning: exported type Text should have comment or be unexported (golint)
    • Line 85: warning: exported function NewText should have comment or be unexported (golint)
    • Line 93: warning: exported type A should have comment or be unexported (golint)
    • Line 100: warning: exported function NewA should have comment or be unexported (golint)
    • Line 109: warning: exported type AT should have comment or be unexported (golint)
    • Line 114: warning: exported function NewAT should have comment or be unexported (golint)
    • Line 122: warning: exported type Image should have comment or be unexported (golint)
    • Line 129: warning: exported function NewImage should have comment or be unexported (golint)
    • feishu/text.go
    • Line 3: warning: exported type TextMessage should have comment or be unexported (golint)
    • Line 8: warning: exported type Content should have comment or be unexported (golint)
    • Line 12: warning: exported method TextMessage.Body should have comment or be unexported (golint)
    • Line 17: warning: exported function NewTextMessage should have comment or be unexported (golint)
    • Line 21: warning: exported method TextMessage.SetText should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!