Preparing report...

Report for github.com/stefanprodan/mgob

A+    Excellent!    Found 16 issues across 25 files

Tweet

gofmt96%

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!


gocyclo92%

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.


golint40%

Golint is a linter for Go source code.

    • mgob/pkg/db/store.go
    • Line 10: warning: exported type Store should have comment or be unexported (golint)
    • Line 25: warning: exported method Store.NewBucket should have comment or be unexported (golint)
    • Line 35: warning: exported method Store.DeleteBucket should have comment or be unexported (golint)
    • mgob/pkg/metrics/metrics.go
    • Line 5: warning: exported type BackupMetrics should have comment or be unexported (golint)
    • Line 11: warning: exported function New should have comment or be unexported (golint)
    • mgob/pkg/api/server.go
    • Line 16: warning: exported type HttpServer should have comment or be unexported (golint)
    • Line 21: warning: exported method HttpServer.Start should have comment or be unexported (golint)
    • Line 53: warning: exported function FileServer should have comment or be unexported (golint)
    • mgob/pkg/db/stats.go
    • Line 12: warning: exported type Status should have comment or be unexported (golint)
    • Line 20: warning: exported type StatusStore should have comment or be unexported (golint)
    • mgob/pkg/config/plan.go
    • Line 13: warning: exported type Plan should have comment or be unexported (golint)
    • Line 27: warning: exported type Target should have comment or be unexported (golint)
    • Line 37: warning: exported type Scheduler should have comment or be unexported (golint)
    • Line 43: warning: exported type Encryption should have comment or be unexported (golint)
    • Line 47: warning: exported type Gpg should have comment or be unexported (golint)
    • Line 53: warning: exported type S3 should have comment or be unexported (golint)
    • Line 63: warning: exported type GCloud should have comment or be unexported (golint)
    • Line 68: warning: exported type Rclone should have comment or be unexported (golint)
    • Line 74: warning: exported type Azure should have comment or be unexported (golint)
    • Line 79: warning: exported type SFTP should have comment or be unexported (golint)
    • Line 89: warning: exported type SMTP should have comment or be unexported (golint)
    • Line 98: warning: exported type Slack should have comment or be unexported (golint)
    • Line 105: warning: exported function LoadPlan should have comment or be unexported (golint)
    • Line 137: warning: exported function LoadPlans should have comment or be unexported (golint)
    • mgob/pkg/backup/backup.go
    • Line 16: warning: exported function Run should have comment or be unexported (golint)
    • Line 81: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 92: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 101: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 110: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 119: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 128: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • mgob/pkg/backup/checks.go
    • Line 10: warning: exported function CheckMongodump should have comment or be unexported (golint)
    • Line 23: warning: exported function CheckMinioClient should have comment or be unexported (golint)
    • Line 36: warning: exported function CheckAWSClient should have comment or be unexported (golint)
    • Line 49: warning: exported function CheckGpg should have comment or be unexported (golint)
    • Line 62: warning: exported function CheckGCloudClient should have comment or be unexported (golint)
    • Line 75: warning: exported function CheckAzureClient should have comment or be unexported (golint)
    • mgob/pkg/scheduler/scheduler.go
    • Line 19: warning: exported type Scheduler should have comment or be unexported (golint)
    • Line 27: warning: exported function New should have comment or be unexported (golint)
    • Line 39: warning: exported method Scheduler.Start should have comment or be unexported (golint)
    • mgob/pkg/notifier/slack.go
    • Line 73: warning: if block ends with a return statement, so drop this else and outdent its block (move short variable declaration to its own line if necessary) (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!