Preparing report...

Report for github.com/ssubedir/goriffin

A+    Excellent!    Found 10 issues across 13 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!


golint53%

Golint is a linter for Go source code.

    • goriffin/protos/server/server.go
    • Line 10: warning: exported type Service should have comment or be unexported (golint)
    • Line 13: warning: exported function NewService should have comment or be unexported (golint)
    • Line 17: warning: exported method Service.HeartBeatStatus should have comment or be unexported (golint)
    • goriffin/internal/data/mongo.go
    • Line 12: warning: exported type Mongo should have comment or be unexported (golint)
    • Line 18: warning: exported type MongoClient should have comment or be unexported (golint)
    • Line 23: warning: exported method Mongo.Connect should have comment or be unexported (golint)
    • Line 50: warning: exported method MongoClient.Disconnect should have comment or be unexported (golint)
    • goriffin/internal/handlers/service.go
    • Line 21: warning: exported type Services should have comment or be unexported (golint)
    • Line 26: warning: exported function NewServices should have comment or be unexported (golint)
    • Line 39: warning: exported method Services.GetServices should have comment or be unexported (golint)
    • Line 65: warning: exported method Services.AddService should have comment or be unexported (golint)
    • Line 95: warning: exported method Services.RemoveService should have comment or be unexported (golint)
    • Line 125: warning: exported method Services.GetService should have comment or be unexported (golint)
    • Line 154: warning: exported method Services.GetStatus should have comment or be unexported (golint)
    • Line 165: warning: exported type Response should have comment or be unexported (golint)
    • Line 176: warning: exported type HTTP should have comment or be unexported (golint)
    • Line 187: warning: exported method Services.Index should have comment or be unexported (golint)
    • goriffin/internal/heartbeat/heartbeat.go
    • Line 10: warning: exported type HTTPHeartbeat should have comment or be unexported (golint)
    • Line 17: warning: exported function FreqCheck should have comment or be unexported (golint)
    • Line 21: warning: if block ends with a return statement, so drop this else and outdent its block (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign53%

IneffAssign detects ineffectual assignments in Go code.

    • goriffin/protos/server/server.go
    • Line 7: warning: no required module provides package github.com/ssubedir/goriffin/protos/service/protos; to add it: (ineffassign)
    • Line 7: warning: could not import github.com/ssubedir/goriffin/protos/service/protos (invalid package name: "") (ineffassign)
    • goriffin/internal/handlers/service.go
    • Line 13: warning: no required module provides package github.com/ssubedir/goriffin/protos/service/protos; to add it: (ineffassign)
    • Line 13: warning: could not import github.com/ssubedir/goriffin/protos/service/protos (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!