Preparing report...

Report for github.com/dtapps/go-dingtalk

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


golint33%

Golint is a linter for Go source code.

    • go-dingtalk/dingtalk/message/message.go
    • Line 3: warning: exported type Message should have comment or be unexported (golint)
    • Line 12: warning: don't use underscores in Go names; type MsgType_ should be MsgType (golint)
    • Line 12: warning: exported type MsgType_ should have comment or be unexported (golint)
    • Line 15: warning: exported const TextStr should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: don't use underscores in Go names; type Text_ should be Text (golint)
    • Line 29: warning: don't use underscores in Go names; type At_ should be At (golint)
    • Line 35: warning: don't use underscores in Go names; type Link_ should be Link (golint)
    • Line 43: warning: don't use underscores in Go names; type Markdown_ should be Markdown (golint)
    • Line 50: warning: don't use underscores in Go names; type ActionCard_ should be ActionCard (golint)
    • Line 61: warning: don't use underscores in Go names; type Btn_ should be Btn (golint)
    • Line 67: warning: don't use underscores in Go names; type FeedCard_ should be FeedCard (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign33%

IneffAssign detects ineffectual assignments in Go code.

    • go-dingtalk/dingtalk_test.go
    • Line 4: warning: package go-dingtalk/dingtalk is not in GOROOT (/usr/local/go/src/go-dingtalk/dingtalk) (ineffassign)
    • Line 5: warning: package go-dingtalk/dingtalk/message is not in GOROOT (/usr/local/go/src/go-dingtalk/dingtalk/message) (ineffassign)
    • Line 4: warning: could not import go-dingtalk/dingtalk (invalid package name: "") (ineffassign)
    • Line 5: warning: could not import go-dingtalk/dingtalk/message (invalid package name: "") (ineffassign)
    • go-dingtalk/dingtalk/dingtalk.go
    • Line 9: warning: package go-dingtalk/dingtalk/message is not in GOROOT (/usr/local/go/src/go-dingtalk/dingtalk/message) (ineffassign)
    • Line 9: warning: could not import go-dingtalk/dingtalk/message (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!