Preparing report...

Report for github.com/m1ome/narada

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


gocyclo96%

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.


golint42%

Golint is a linter for Go source code.

    • narada/metrics.go
    • Line 5: warning: exported function NewMetricsInvoke should have comment or be unexported (golint)
    • narada/multiserver.go
    • Line 14: warning: exported type Multiserver should have comment or be unexported (golint)
    • Line 21: warning: exported method Multiserver.Add should have comment or be unexported (golint)
    • Line 40: warning: exported function NewMultiServers should have comment or be unexported (golint)
    • narada/vars.go
    • Line 4: warning: exported const Prefix should have comment (or a comment on this block) or be unexported (golint)
    • narada/workers.go
    • Line 19: warning: exported type Workers should have comment or be unexported (golint)
    • Line 27: warning: exported type WorkersOptions should have comment or be unexported (golint)
    • Line 36: warning: exported type Job should have comment or be unexported (golint)
    • Line 46: warning: exported function NewWorkers should have comment or be unexported (golint)
    • Line 117: warning: exported method Workers.Add should have comment or be unexported (golint)
    • narada/narada/main.go
    • Line 15: warning: exported const ConsoleToolName should have comment (or a comment on this block) or be unexported (golint)
    • narada/narada/commands/migrations.go
    • Line 16: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 20: warning: exported const DefaultMigrationsDir should have comment (or a comment on this block) or be unexported (golint)
    • Line 24: warning: exported function Migrate should have comment or be unexported (golint)
    • Line 66: warning: exported function CreateMigration should have comment or be unexported (golint)
    • narada/logger_hooks.go
    • Line 13: warning: exported type LogrusSentryHook should have comment or be unexported (golint)
    • Line 17: warning: exported function NewLogrusSentryHook should have comment or be unexported (golint)
    • Line 23: warning: exported method LogrusSentryHook.Fire should have comment or be unexported (golint)
    • Line 37: warning: exported method LogrusSentryHook.Levels should have comment or be unexported (golint)
    • Line 41: warning: exported type LogrusSlackHook should have comment or be unexported (golint)
    • Line 51: warning: exported function NewLogrusSlackHook should have comment or be unexported (golint)
    • Line 74: warning: exported method LogrusSlackHook.Fire should have comment or be unexported (golint)
    • Line 136: warning: exported method LogrusSlackHook.Levels should have comment or be unexported (golint)
    • narada/logger.go
    • Line 11: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 58: warning: exported function NewNopLogger should have comment or be unexported (golint)
    • narada/narada.go
    • Line 13: warning: exported type Narada should have comment or be unexported (golint)
    • Line 21: warning: exported method Narada.HandleError should have comment or be unexported (golint)
    • Line 25: warning: exported function New should have comment or be unexported (golint)
    • Line 48: warning: exported method Narada.Start should have comment or be unexported (golint)
    • Line 88: warning: exported method Narada.Stop should have comment or be unexported (golint)
    • narada/lib/lock.go
    • Line 11: warning: exported type Locker should have comment or be unexported (golint)
    • Line 15: warning: exported type Mutex should have comment or be unexported (golint)
    • Line 20: warning: exported type RedisLock should have comment or be unexported (golint)
    • Line 25: warning: exported function NewRedisLocker should have comment or be unexported (golint)
    • Line 31: warning: exported method RedisLock.Obtain should have comment or be unexported (golint)
    • narada/clients/pg.go
    • Line 17: warning: should not use basic type untyped string as key in context.WithValue (golint)
    • Line 36: warning: exported function NewPostgreSQL should have comment or be unexported (golint)
    • narada/slack.go
    • Line 13: warning: exported type SlackClient should have comment or be unexported (golint)
    • Line 18: warning: exported type SlackMessage should have comment or be unexported (golint)
    • Line 28: warning: exported type SlackAttachment should have comment or be unexported (golint)
    • Line 37: warning: exported type SlackField should have comment or be unexported (golint)
    • Line 43: warning: exported type SlackError should have comment or be unexported (golint)
    • Line 53: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 62: warning: exported method SlackClient.SendMessage should have comment or be unexported (golint)
    • Line 80: warning: exported function NewAttachment should have comment or be unexported (golint)
    • Line 84: warning: exported method SlackMessage.AddAttachment should have comment or be unexported (golint)
    • Line 88: warning: exported function NewField should have comment or be unexported (golint)
    • Line 92: warning: exported method SlackAttachment.AddField 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!