Preparing report...

Report for github.com/dcbCIn/MidCloud

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


golint18%

Golint is a linter for Go source code.

    • MidCloud/distribution/requestorImpl.go
    • Line 8: warning: comment on exported type RequestorImpl should be of the form "RequestorImpl ..." (with optional leading article) (golint)
    • Line 13: warning: exported function NewRequestorImpl should have comment or be unexported (golint)
    • Line 17: warning: exported method RequestorImpl.Invoke should have comment or be unexported (golint)
    • Line 57: warning: exported method RequestorImpl.Close should have comment or be unexported (golint)
    • MidCloud/distribution/lookupProxy.go
    • Line 9: warning: exported type LookupProxy should have comment or be unexported (golint)
    • Line 15: warning: exported function NewLookupProxy should have comment or be unexported (golint)
    • Line 19: warning: exported method LookupProxy.Bind should have comment or be unexported (golint)
    • Line 28: warning: exported method LookupProxy.Lookup should have comment or be unexported (golint)
    • Line 43: warning: exported method LookupProxy.List should have comment or be unexported (golint)
    • Line 58: warning: exported method LookupProxy.Close should have comment or be unexported (golint)
    • MidCloud/distribution/message.go
    • Line 3: warning: exported type Message should have comment or be unexported (golint)
    • Line 8: warning: exported type Header should have comment or be unexported (golint)
    • Line 16: warning: exported type Body should have comment or be unexported (golint)
    • Line 23: warning: exported type RequestHeader should have comment or be unexported (golint)
    • Line 31: warning: exported type ReplyHeader should have comment or be unexported (golint)
    • Line 37: warning: exported type RequestBody should have comment or be unexported (golint)
    • MidCloud/services/common/lookup.go
    • Line 7: warning: comment on exported type ClientProxy should be of the form "ClientProxy ..." (with optional leading article) (golint)
    • Line 16: warning: comment on exported type NamingRecord should be of the form "NamingRecord ..." (with optional leading article) (golint)
    • Line 22: warning: comment on exported type ILookup should be of the form "ILookup ..." (with optional leading article) (golint)
    • Line 30: warning: exported type Lookup should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method Lookup.Bind should be of the form "Bind ..." (golint)
    • Line 51: warning: exported method Lookup.Lookup should have comment or be unexported (golint)
    • Line 63: warning: exported method Lookup.List should have comment or be unexported (golint)
    • Line 71: warning: exported method Lookup.Close should have comment or be unexported (golint)
    • MidCloud/services/common/monitor.go
    • Line 10: warning: exported type CloudService should have comment or be unexported (golint)
    • Line 17: warning: comment on exported method CloudService.RefreshPrice should be of the form "RefreshPrice ..." (golint)
    • Line 22: warning: comment on exported method CloudService.RefreshStatus should be of the form "RefreshStatus ..." (golint)
    • Line 27: warning: comment on exported type SortByPriceAndAvailability should be of the form "SortByPriceAndAvailability ..." (with optional leading article) (golint)
    • Line 46: warning: exported type Monitor should have comment or be unexported (golint)
    • Line 55: warning: comment on exported method Monitor.Start should be of the form "Start ..." (golint)
    • Line 73: warning: comment on exported method Monitor.RefreshCloudServices should be of the form "RefreshCloudServices ..." (golint)
    • Line 103: warning: comment on exported method Monitor.RefreshRank should be of the form "RefreshRank ..." (golint)
    • Line 114: warning: comment on exported method Monitor.Bind should be of the form "Bind ..." (golint)
    • MidCloud/infrastruture/client/clientRequestHandlerImpl.go
    • Line 10: warning: exported type ClientRequestHandlerImpl should have comment or be unexported (golint)
    • Line 16: warning: exported function NewClientRequestHandlerImpl should have comment or be unexported (golint)
    • Line 29: warning: exported method ClientRequestHandlerImpl.Receive should have comment or be unexported (golint)
    • Line 40: warning: exported method ClientRequestHandlerImpl.Send should have comment or be unexported (golint)
    • Line 48: warning: exported method ClientRequestHandlerImpl.Close should have comment or be unexported (golint)
    • MidCloud/distribution/invokerImpl.go
    • Line 10: warning: exported type InvokerImpl should have comment or be unexported (golint)
    • Line 15: warning: exported method InvokerImpl.Register should have comment or be unexported (golint)
    • Line 23: warning: exported method InvokerImpl.Invoke should have comment or be unexported (golint)
    • MidCloud/distribution/requestor.go
    • Line 3: warning: exported type Invocation should have comment or be unexported (golint)
    • Line 11: warning: exported function NewInvocation should have comment or be unexported (golint)
    • Line 15: warning: exported type Termination should have comment or be unexported (golint)
    • Line 19: warning: exported type Requestor should have comment or be unexported (golint)
    • MidCloud/lib/functions.go
    • Line 14: warning: exported var SHOW_MESSAGES should have comment or be unexported (golint)
    • Line 16: warning: exported type DebugLevel should have comment or be unexported (golint)
    • Line 19: warning: exported const ERROR should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported method DebugLevel.ToInt should have comment or be unexported (golint)
    • Line 29: warning: exported function FunctionName should have comment or be unexported (golint)
    • Line 37: warning: exported function Println should have comment or be unexported (golint)
    • Line 69: warning: exported function PrintlnInfo should have comment or be unexported (golint)
    • Line 73: warning: exported function PrintlnDebug should have comment or be unexported (golint)
    • Line 77: warning: exported function PrintlnMessage should have comment or be unexported (golint)
    • Line 81: warning: exported function PrintlnError should have comment or be unexported (golint)
    • Line 85: warning: exported function FailOnError should have comment or be unexported (golint)
    • Line 92: warning: exported function InArray 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!