Preparing report...

Report for github.com/go-playground/webhooks

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


golint82%

Golint is a linter for Go source code.

    • webhooks/bitbucket-server/bitbucketserver.go
    • Line 16: warning: exported var ErrEventNotSpecifiedToParse should have comment or be unexported (golint)
    • Line 25: warning: exported type Event should have comment or be unexported (golint)
    • Line 28: warning: exported const RepositoryReferenceChangedEvent should have comment (or a comment on this block) or be unexported (golint)
    • Line 87: warning: exported method Webhook.Parse should have comment or be unexported (golint)
    • webhooks/bitbucket-server/payload.go
    • Line 9: warning: exported type DiagnosticsPingPayload should have comment or be unexported (golint)
    • Line 11: warning: exported type RepositoryReferenceChangedPayload should have comment or be unexported (golint)
    • Line 19: warning: exported type RepositoryModifiedPayload should have comment or be unexported (golint)
    • Line 27: warning: exported type RepositoryForkedPayload should have comment or be unexported (golint)
    • Line 34: warning: exported type RepositoryCommentAddedPayload should have comment or be unexported (golint)
    • Line 43: warning: exported type RepositoryCommentEditedPayload should have comment or be unexported (golint)
    • Line 53: warning: exported type RepositoryCommentDeletedPayload should have comment or be unexported (golint)
    • Line 62: warning: exported type PullRequestOpenedPayload should have comment or be unexported (golint)
    • Line 69: warning: exported type PullRequestFromReferenceUpdatedPayload should have comment or be unexported (golint)
    • Line 77: warning: exported type PullRequestModifiedPayload should have comment or be unexported (golint)
    • Line 87: warning: exported type PullRequestMergedPayload should have comment or be unexported (golint)
    • Line 94: warning: exported type PullRequestDeclinedPayload should have comment or be unexported (golint)
    • Line 101: warning: exported type PullRequestDeletedPayload should have comment or be unexported (golint)
    • Line 108: warning: exported type PullRequestReviewerUpdatedPayload should have comment or be unexported (golint)
    • Line 117: warning: exported type PullRequestReviewerApprovedPayload should have comment or be unexported (golint)
    • Line 126: warning: exported type PullRequestReviewerUnapprovedPayload should have comment or be unexported (golint)
    • Line 135: warning: exported type PullRequestReviewerNeedsWorkPayload should have comment or be unexported (golint)
    • Line 144: warning: exported type PullRequestCommentAddedPayload should have comment or be unexported (golint)
    • Line 153: warning: exported type PullRequestCommentEditedPayload should have comment or be unexported (golint)
    • Line 163: warning: exported type PullRequestCommentDeletedPayload should have comment or be unexported (golint)
    • Line 174: warning: exported type User should have comment or be unexported (golint)
    • Line 185: warning: exported type Repository should have comment or be unexported (golint)
    • Line 199: warning: exported type Project should have comment or be unexported (golint)
    • Line 209: warning: exported type PullRequest should have comment or be unexported (golint)
    • Line 230: warning: exported type RepositoryChange should have comment or be unexported (golint)
    • Line 238: warning: exported type RepositoryReference should have comment or be unexported (golint)
    • Line 246: warning: exported type Comment should have comment or be unexported (golint)
    • Line 259: warning: exported type PullRequestParticipant should have comment or be unexported (golint)
    • Line 267: warning: exported type Date should have comment or be unexported (golint)
    • Line 269: warning: exported method Date.UnmarshalJSON should have comment or be unexported (golint)
    • Line 278: warning: exported method Date.MarshalJSON should have comment or be unexported (golint)
    • webhooks/github/payload.go
    • Line 5429: warning: comment on exported type RepositoryVulnerabilityAlertPayload should be of the form "RepositoryVulnerabilityAlertPayload ..." (with optional leading article) (golint)

gocyclo70%

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.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


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!