Preparing report...

Report for github.com/benpate/activitystream

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


golint57%

Golint is a linter for Go source code.

    • activitystream/writer/writer.go
    • Line 10: warning: exported type Object should have comment or be unexported (golint)
    • Line 12: warning: exported function NewObject should have comment or be unexported (golint)
    • Line 128: warning: comment on exported method Object.Object should be of the form "Object ..." (golint)
    • Line 168: warning: comment on exported method Object.Target should be of the form "Target ..." (golint)
    • activitystream/vocabulary/actorType.go
    • Line 3: warning: exported const ActorTypeApplication should have comment or be unexported (golint)
    • Line 5: warning: exported const ActorTypeGroup should have comment or be unexported (golint)
    • Line 7: warning: exported const ActorTypeOrganization should have comment or be unexported (golint)
    • Line 9: warning: exported const ActorTypePerson should have comment or be unexported (golint)
    • Line 11: warning: exported const ActorTypeService should have comment or be unexported (golint)
    • activitystream/writer/activities.go
    • Line 5: warning: comment on exported function Accept should be of the form "Accept ..." (golint)
    • Line 13: warning: comment on exported function Add should be of the form "Add ..." (golint)
    • Line 22: warning: comment on exported function Announce should be of the form "Announce ..." (golint)
    • Line 31: warning: comment on exported function Arrive should be of the form "Arrive ..." (golint)
    • Line 40: warning: comment on exported function Block should be of the form "Block ..." (golint)
    • Line 48: warning: comment on exported function Create should be of the form "Create ..." (golint)
    • Line 56: warning: comment on exported function Delete should be of the form "Delete ..." (golint)
    • Line 65: warning: comment on exported function Dislike should be of the form "Dislike ..." (golint)
    • Line 73: warning: comment on exported function Flag should be of the form "Flag ..." (golint)
    • Line 81: warning: comment on exported function Follow should be of the form "Follow ..." (golint)
    • Line 89: warning: comment on exported function Ignore should be of the form "Ignore ..." (golint)
    • Line 97: warning: comment on exported function Invite should be of the form "Invite ..." (golint)
    • Line 106: warning: comment on exported function Join should be of the form "Join ..." (golint)
    • Line 114: warning: comment on exported function Leave should be of the form "Leave ..." (golint)
    • Line 122: warning: comment on exported function Like should be of the form "Like ..." (golint)
    • Line 130: warning: comment on exported function Listen should be of the form "Listen ..." (golint)
    • Line 138: warning: comment on exported function Move should be of the form "Move ..." (golint)
    • Line 148: warning: comment on exported function Offer should be of the form "Offer ..." (golint)
    • Line 156: warning: comment on exported function Question should be of the form "Question ..." (golint)
    • Line 163: warning: comment on exported function Reject should be of the form "Reject ..." (golint)
    • Line 171: warning: comment on exported function Read should be of the form "Read ..." (golint)
    • Line 179: warning: comment on exported function Remove should be of the form "Remove ..." (golint)
    • Line 188: warning: comment on exported function TentativeAccept should be of the form "TentativeAccept ..." (golint)
    • Line 196: warning: comment on exported function TentativeReject should be of the form "TentativeReject ..." (golint)
    • Line 204: warning: comment on exported function Travel should be of the form "Travel ..." (golint)
    • Line 213: warning: comment on exported function Undo should be of the form "Undo ..." (golint)
    • Line 221: warning: comment on exported function Update should be of the form "Update ..." (golint)
    • Line 229: warning: comment on exported function View should be of the form "View ..." (golint)
    • activitystream/writer/actors.go
    • Line 5: warning: exported function Application should have comment or be unexported (golint)
    • Line 11: warning: exported function Group should have comment or be unexported (golint)
    • Line 17: warning: exported function Organization should have comment or be unexported (golint)
    • Line 23: warning: exported function Person should have comment or be unexported (golint)
    • Line 29: warning: exported function Service should have comment or be unexported (golint)
    • activitystream/writer/object.go
    • Line 5: warning: exported function Article should have comment or be unexported (golint)
    • Line 9: warning: exported function Audio should have comment or be unexported (golint)
    • Line 13: warning: exported function Document should have comment or be unexported (golint)
    • Line 17: warning: exported function Event should have comment or be unexported (golint)
    • Line 21: warning: exported function Image should have comment or be unexported (golint)
    • Line 25: warning: exported function Note should have comment or be unexported (golint)
    • Line 29: warning: exported function Page should have comment or be unexported (golint)
    • Line 33: warning: exported function Place should have comment or be unexported (golint)
    • Line 37: warning: exported function Profile should have comment or be unexported (golint)
    • Line 41: warning: exported function Relationship should have comment or be unexported (golint)
    • Line 45: warning: exported function Tombstone should have comment or be unexported (golint)
    • Line 49: warning: exported function Video should have comment or be unexported (golint)
    • Line 53: warning: exported function Mention 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!


misspell94%

Misspell Finds commonly misspelled English words