Preparing report...

Report for github.com/go-ap/client

B    Not bad!    Found 2 issues across 4 files

Tweet

gofmt50%

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


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!


golint50%

Golint is a linter for Go source code.

    • client/client.go
    • Line 18: warning: exported type Ctx should have comment or be unexported (golint)
    • Line 20: warning: exported type RequestSignFn should have comment or be unexported (golint)
    • Line 21: warning: exported type CtxLogFn should have comment or be unexported (golint)
    • Line 22: warning: exported type LogFn should have comment or be unexported (golint)
    • Line 24: warning: exported type CanSign should have comment or be unexported (golint)
    • Line 28: warning: exported type Basic should have comment or be unexported (golint)
    • Line 38: warning: exported var ContentTypeJsonLD should have comment or be unexported (golint)
    • Line 39: warning: exported var ContentTypeActivityJson should have comment or be unexported (golint)
    • Line 65: warning: exported type C should have comment or be unexported (golint)
    • Line 72: warning: exported function SetInfoLogger should have comment or be unexported (golint)
    • Line 81: warning: exported function SetErrorLogger should have comment or be unexported (golint)
    • Line 90: warning: exported function SkipTLSValidation should have comment or be unexported (golint)
    • Line 105: warning: exported function SignFn should have comment or be unexported (golint)
    • Line 132: warning: exported function New should have comment or be unexported (golint)
    • Line 145: warning: exported method C.SignFn should have comment or be unexported (golint)
    • Line 251: warning: comment on exported method C.Head should be of the form "Head ..." (golint)
    • Line 325: warning: comment on exported method C.ToCollection should be of the form "ToCollection ..." (golint)
    • Line 330: warning: comment on exported method C.CtxToCollection should be of the form "CtxToCollection ..." (golint)
    • client/pub.go
    • Line 13: warning: exported type FilterFn should have comment or be unexported (golint)
    • Line 15: warning: exported type PubGetter should have comment or be unexported (golint)
    • Line 30: warning: exported type PubSubmitter should have comment or be unexported (golint)
    • Line 35: warning: exported type PubClient should have comment or be unexported (golint)
    • Line 40: warning: comment on exported method C.Inbox should be of the form "Inbox ..." (golint)
    • Line 48: warning: comment on exported method C.Outbox should be of the form "Outbox ..." (golint)
    • Line 56: warning: comment on exported method C.Following should be of the form "Following ..." (golint)
    • Line 64: warning: comment on exported method C.Followers should be of the form "Followers ..." (golint)
    • Line 72: warning: comment on exported method C.Likes should be of the form "Likes ..." (golint)
    • Line 80: warning: comment on exported method C.Liked should be of the form "Liked ..." (golint)
    • Line 88: warning: comment on exported method C.Replies should be of the form "Replies ..." (golint)
    • Line 96: warning: comment on exported method C.Shares should be of the form "Shares ..." (golint)
    • Line 104: warning: comment on exported method C.Collection should be of the form "Collection ..." (golint)
    • Line 109: warning: comment on exported method C.Actor should be of the form "Actor ..." (golint)
    • Line 123: warning: comment on exported method C.Activity should be of the form "Activity ..." (golint)
    • Line 137: warning: comment on exported method C.Object should be of the form "Object ..." (golint)
    • Line 162: warning: exported method C.ToOutbox should have comment or be unexported (golint)
    • Line 174: warning: exported method C.ToInbox 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!