Preparing report...

Report for github.com/dutchcoders/slackarchive

A    Great!    Found 22 issues across 24 files

Tweet

gofmt95%

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!


gocyclo91%

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.


golint12%

Golint is a linter for Go source code.

    • slackarchive/utils/uuid.go
    • Line 9: warning: exported type UUID should have comment or be unexported (golint)
    • Line 11: warning: exported function NewNullUUID should have comment or be unexported (golint)
    • Line 20: warning: exported function NewUUID should have comment or be unexported (golint)
    • Line 29: warning: exported type NullUUID should have comment or be unexported (golint)
    • Line 34: warning: exported method NullUUID.Scan should have comment or be unexported (golint)
    • Line 48: warning: exported method NullUUID.Value should have comment or be unexported (golint)
    • Line 55: warning: exported function Parse should have comment or be unexported (golint)
    • Line 59: warning: exported method UUID.MarshalText should have comment or be unexported (golint)
    • Line 63: warning: exported method UUID.UnmarshalText should have comment or be unexported (golint)
    • Line 76: warning: exported method UUID.Scan should have comment or be unexported (golint)
    • Line 83: warning: exported method UUID.Value should have comment or be unexported (golint)
    • slackarchive/api/stopwatch.go
    • Line 5: warning: exported type Stopwatch should have comment or be unexported (golint)
    • Line 11: warning: comment on exported function NewStopWatch should be of the form "NewStopWatch ..." (golint)
    • Line 55: warning: comment on exported method Stopwatch.ElapsedTime should be of the form "ElapsedTime ..." (golint)
    • slackarchive/models/message.go
    • Line 5: warning: comment on exported type Message should be of the form "Message ..." (with optional leading article) (golint)
    • Line 89: warning: exported type AttachmentAction should have comment or be unexported (golint)
    • slackarchive/api/errors/errors.go
    • Line 8: warning: exported type APIError should have comment or be unexported (golint)
    • Line 23: warning: comment on exported type PublicErrorer should be of the form "PublicErrorer ..." (with optional leading article) (golint)
    • Line 36: warning: exported function New should have comment or be unexported (golint)
    • Line 40: warning: receiver name err should be consistent with previous receiver name s for apiError (golint)
    • Line 44: warning: receiver name err should be consistent with previous receiver name s for apiError (golint)
    • Line 48: warning: receiver name err should be consistent with previous receiver name s for apiError (golint)
    • Line 52: warning: receiver name err should be consistent with previous receiver name s for apiError (golint)
    • Line 56: warning: receiver name err should be consistent with previous receiver name s for apiError (golint)
    • Line 65: warning: exported function NewPublic should have comment or be unexported (golint)
    • Line 77: warning: exported type ValidationField should have comment or be unexported (golint)
    • Line 85: warning: exported type ValidationError should have comment or be unexported (golint)
    • Line 90: warning: exported method ValidationError.ID should have comment or be unexported (golint)
    • Line 94: warning: exported method ValidationError.Message should have comment or be unexported (golint)
    • Line 98: warning: exported method ValidationError.Code should have comment or be unexported (golint)
    • Line 102: warning: exported method ValidationError.Data should have comment or be unexported (golint)
    • Line 110: warning: exported method ValidationError.Add should have comment or be unexported (golint)
    • Line 114: warning: exported method ValidationError.Valid should have comment or be unexported (golint)
    • slackarchive/api/api.go
    • Line 67: warning: exported function New should have comment or be unexported (golint)
    • Line 239: warning: comment on exported type UserResponse should be of the form "UserResponse ..." (with optional leading article) (golint)
    • Line 285: warning: don't use underscores in Go names; var team_id should be teamID (golint)
    • Line 348: warning: don't use underscores in Go names; var team_id should be teamID (golint)
    • Line 396: warning: exported function All should have comment or be unexported (golint)
    • Line 439: warning: exported function DebugQuery should have comment or be unexported (golint)
    • Line 456: warning: exported function Host should have comment or be unexported (golint)
    • Line 805: warning: should omit 2nd value from range; this loop is equivalent to `for i := range ...` (golint)
    • slackarchive/config/config.go
    • Line 11: warning: exported type Config should have comment or be unexported (golint)
    • Line 44: warning: exported function MustLoad should have comment or be unexported (golint)
    • Line 52: warning: exported method Config.NewSlackOAuthClient should have comment or be unexported (golint)
    • Line 57: warning: exported method Config.Load should have comment or be unexported (golint)
    • slackarchive/api/context.go
    • Line 18: warning: exported type AfterFunc should have comment or be unexported (golint)
    • Line 20: warning: exported type Context should have comment or be unexported (golint)
    • Line 31: warning: exported type ContextFunc should have comment or be unexported (golint)
    • slackarchive/api/oauth.go
    • Line 15: warning: exported type Cookie should have comment or be unexported (golint)
    • Line 21: warning: exported function GetOAuthCookie should have comment or be unexported (golint)
    • Line 26: warning: exported type OAuthCookie should have comment or be unexported (golint)
    • Line 32: warning: exported method OAuthCookie.Get should have comment or be unexported (golint)
    • Line 44: warning: exported method OAuthCookie.State should have comment or be unexported (golint)
    • Line 52: warning: exported method OAuthCookie.SetState should have comment or be unexported (golint)
    • Line 56: warning: exported method OAuthCookie.Save should have comment or be unexported (golint)
    • Line 60: warning: exported method OAuthCookie.Delete should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


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!