Preparing report...

Report for github.com/gorpher/goeureka

A+    Excellent!    Found 3 issues across 5 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!


gocyclo60%

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.


golint60%

Golint is a linter for Go source code.

    • goeureka/app.go
    • Line 5: warning: exported type ActionType should have comment or be unexported (golint)
    • Line 8: warning: exported const ADDED should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type InstanceStatus should have comment or be unexported (golint)
    • Line 16: warning: exported const UP should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type DataCenterInfoName should have comment or be unexported (golint)
    • Line 25: warning: exported type DataCenterInfo should have comment or be unexported (golint)
    • Line 31: warning: exported const Netflix should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type LeaseInfo should have comment or be unexported (golint)
    • Line 45: warning: exported type Port should have comment or be unexported (golint)
    • Line 50: warning: exported type Instance should have comment or be unexported (golint)
    • Line 75: warning: exported type Application should have comment or be unexported (golint)
    • Line 80: warning: exported type Applications should have comment or be unexported (golint)
    • Line 86: warning: exported type AppInfo should have comment or be unexported (golint)
    • goeureka/eurekaclient.go
    • Line 34: warning: comment on exported function NewServiceCache should be of the form "NewServiceCache ..." (golint)
    • Line 129: warning: comment on exported type Client should be of the form "Client ..." (with optional leading article) (golint)
    • Line 143: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 249: warning: comment on exported method Client.Register should be of the form "Register ..." (golint)
    • Line 385: warning: comment on exported method Client.Deregister should be of the form "Deregister ..." (golint)
    • Line 415: warning: comment on exported method Client.GetApps should be of the form "GetApps ..." (golint)
    • Line 436: warning: comment on exported method Client.GetAppInstances should be of the form "GetAppInstances ..." (golint)
    • Line 456: warning: comment on exported method Client.GetOwnAppInstances should be of the form "GetOwnAppInstances ..." (golint)
    • Line 476: warning: comment on exported method Client.GetOwnAppInstance should be of the form "GetOwnAppInstance ..." (golint)
    • Line 496: warning: comment on exported method Client.GetAppInstanceByID should be of the form "GetAppInstanceByID ..." (golint)
    • Line 515: warning: comment on exported method Client.UpdateOwnAppInstanceStatus should be of the form "UpdateOwnAppInstanceStatus ..." (golint)
    • Line 562: warning: comment on exported method Client.UpdateOwnAppInstanceMetadata should be of the form "UpdateOwnAppInstanceMetadata ..." (golint)
    • Line 581: warning: comment on exported method Client.GetAppInstanceVip should be of the form "GetAppInstanceVip ..." (golint)
    • Line 600: warning: comment on exported method Client.GetAppInstanceSVip should be of the form "GetAppInstanceSVip ..." (golint)
    • Line 620: warning: exported method Client.RoundTrip should have comment or be unexported (golint)
    • Line 638: warning: comment on exported method Client.Request should be of the form "Request ..." (golint)
    • Line 666: warning: exported var RETRIES should have comment or be unexported (golint)
    • Line 791: warning: comment on exported function GetLocalIP should be of the form "GetLocalIP ..." (golint)
    • Line 830: warning: comment on exported function GetHostnameByIP should be of the form "GetHostnameByIP ..." (golint)
    • Line 841: warning: exported function NowStr 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!