Preparing report...

Report for github.com/nerdynick/ccloud-go-sdk

A+    Excellent!    Found 27 issues across 41 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!


golint34%

Golint is a linter for Go source code.

    • ccloud-go-sdk/telemetry/query/filter/compound.go
    • Line 18: warning: exported method CompoundFilter.Not should have comment or be unexported (golint)
    • Line 21: warning: exported method CompoundFilter.Add should have comment or be unexported (golint)
    • Line 26: warning: exported method CompoundFilter.And should have comment or be unexported (golint)
    • Line 29: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 33: warning: exported method CompoundFilter.AndEqualTo should have comment or be unexported (golint)
    • Line 36: warning: exported method CompoundFilter.AndNotEqualTo should have comment or be unexported (golint)
    • Line 39: warning: exported method CompoundFilter.AndGreaterThan should have comment or be unexported (golint)
    • Line 42: warning: exported method CompoundFilter.AndNotGreaterThan should have comment or be unexported (golint)
    • Line 45: warning: exported method CompoundFilter.AndGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 48: warning: exported method CompoundFilter.AndNotGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 52: warning: exported method CompoundFilter.Or should have comment or be unexported (golint)
    • Line 55: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 59: warning: exported method CompoundFilter.OrEqualTo should have comment or be unexported (golint)
    • Line 62: warning: exported method CompoundFilter.OrNotEqualTo should have comment or be unexported (golint)
    • Line 65: warning: exported method CompoundFilter.OrGreaterThan should have comment or be unexported (golint)
    • Line 68: warning: exported method CompoundFilter.OrNotGreaterThan should have comment or be unexported (golint)
    • Line 71: warning: exported method CompoundFilter.OrGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 74: warning: exported method CompoundFilter.OrNotGreaterThanOrEqualTo should have comment or be unexported (golint)
    • ccloud-go-sdk/telemetry/query/filter/unary.go
    • Line 10: warning: exported type UnaryFilter should have comment or be unexported (golint)
    • Line 15: warning: exported method UnaryFilter.And should have comment or be unexported (golint)
    • Line 18: warning: exported method UnaryFilter.AndEqualTo should have comment or be unexported (golint)
    • Line 21: warning: exported method UnaryFilter.AndNotEqualTo should have comment or be unexported (golint)
    • Line 24: warning: exported method UnaryFilter.AndGreaterThan should have comment or be unexported (golint)
    • Line 27: warning: exported method UnaryFilter.AndNotGreaterThan should have comment or be unexported (golint)
    • Line 30: warning: exported method UnaryFilter.AndGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 33: warning: exported method UnaryFilter.AndNotGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 37: warning: exported method UnaryFilter.Or should have comment or be unexported (golint)
    • Line 40: warning: exported method UnaryFilter.OrEqualTo should have comment or be unexported (golint)
    • Line 43: warning: exported method UnaryFilter.OrNotEqualTo should have comment or be unexported (golint)
    • Line 46: warning: exported method UnaryFilter.OrGreaterThan should have comment or be unexported (golint)
    • Line 49: warning: exported method UnaryFilter.OrNotGreaterThan should have comment or be unexported (golint)
    • Line 52: warning: exported method UnaryFilter.OrGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 55: warning: exported method UnaryFilter.OrNotGreaterThanOrEqualTo should have comment or be unexported (golint)
    • ccloud-go-sdk/client/authenticater/apikey.go
    • Line 9: warning: exported type APIKeyAuthenticater should have comment or be unexported (golint)
    • Line 14: warning: exported method APIKeyAuthenticater.UpdateKey should have comment or be unexported (golint)
    • Line 18: warning: exported method APIKeyAuthenticater.UpdateSecret should have comment or be unexported (golint)
    • Line 22: warning: exported method APIKeyAuthenticater.Authorize should have comment or be unexported (golint)
    • Line 26: warning: exported function NewAPIKeyAuth should have comment or be unexported (golint)
    • ccloud-go-sdk/telemetry/query/group/group.go
    • Line 9: warning: exported type Group should have comment or be unexported (golint)
    • Line 13: warning: exported method Group.MarshalJSON should have comment or be unexported (golint)
    • Line 16: warning: exported method Group.And should have comment or be unexported (golint)
    • Line 21: warning: exported function By should have comment or be unexported (golint)
    • Line 24: warning: exported function Of should have comment or be unexported (golint)
    • ccloud-go-sdk/telemetry/labels/metriclabel.go
    • Line 27: warning: exported method Metric.MarshalJSON should have comment or be unexported (golint)
    • Line 42: warning: receiver name m should be consistent with previous receiver name l for Metric (golint)
    • Line 52: warning: receiver name m should be consistent with previous receiver name l for Metric (golint)
    • ccloud-go-sdk/logging/loggable.go
    • Line 31: warning: exported type Loggable should have comment or be unexported (golint)
    • Line 36: warning: exported method Loggable.SetLogLevel should have comment or be unexported (golint)
    • Line 40: warning: exported function New should have comment or be unexported (golint)
    • ccloud-go-sdk/telemetry/query/interval/interval.go
    • Line 14: warning: exported type Interval should have comment or be unexported (golint)
    • Line 19: warning: exported method Interval.MarshalJSON should have comment or be unexported (golint)
    • Line 27: warning: exported method Interval.MinGranularity should have comment or be unexported (golint)
    • Line 36: warning: comment on exported method Interval.IsValidGranularity should be of the form "IsValidGranularity ..." (golint)
    • Line 43: warning: exported function Between should have comment or be unexported (golint)
    • Line 50: warning: exported function StartingFrom should have comment or be unexported (golint)
    • Line 57: warning: exported function EndingAt should have comment or be unexported (golint)
    • Line 64: warning: exported function Of should have comment or be unexported (golint)
    • Line 68: warning: exported function Parse should have comment or be unexported (golint)
    • ccloud-go-sdk/client/client.go
    • Line 142: warning: comment on exported method Client.Get should be of the form "Get ..." (golint)
    • Line 151: warning: comment on exported method Client.GetAsync should be of the form "GetAsync ..." (golint)
    • Line 168: warning: comment on exported method Client.Post should be of the form "Post ..." (golint)
    • Line 182: warning: comment on exported method Client.PostAsync should be of the form "PostAsync ..." (golint)
    • ccloud-go-sdk/telemetry/metric/metrics.go
    • Line 15: warning: exported var KafkaServerReceivedBytes should have comment or be unexported (golint)
    • Line 73: warning: exported method Metric.MarshalJSON should have comment or be unexported (golint)
    • Line 87: warning: exported function New should have comment or be unexported (golint)
    • Line 90: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ccloud-go-sdk/telemetry/query/filter/filter.go
    • Line 5: warning: exported type Filter should have comment or be unexported (golint)
    • Line 22: warning: exported function NotAnyOf should have comment or be unexported (golint)
    • Line 25: warning: exported function AnyOf should have comment or be unexported (golint)
    • Line 28: warning: exported function OneOf should have comment or be unexported (golint)
    • Line 31: warning: exported function Or should have comment or be unexported (golint)
    • Line 38: warning: exported function AllOf should have comment or be unexported (golint)
    • Line 41: warning: exported function And should have comment or be unexported (golint)
    • Line 48: warning: exported function Not should have comment or be unexported (golint)
    • Line 55: warning: exported function NotEqualTo should have comment or be unexported (golint)
    • Line 58: warning: exported function EqualTo should have comment or be unexported (golint)
    • Line 66: warning: exported function NotGreaterThan should have comment or be unexported (golint)
    • Line 69: warning: exported function GreaterThan should have comment or be unexported (golint)
    • Line 76: warning: exported function NotGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 79: warning: exported function GreaterThanOrEqualTo should have comment or be unexported (golint)
    • ccloud-go-sdk/telemetry/api-path.go
    • Line 11: warning: exported const APIPathQuery should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported type TelemetryAPIPath should have comment or be unexported (golint)
    • Line 20: warning: exported method TelemetryAPIPath.Format should have comment or be unexported (golint)
    • ccloud-go-sdk/telemetry/labels/resourcelabel.go
    • Line 11: warning: exported var ResourceConnector should have comment or be unexported (golint)
    • Line 30: warning: exported method Resource.MarshalJSON should have comment or be unexported (golint)
    • Line 33: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • ccloud-go-sdk/telemetry/query/filter/field.go
    • Line 8: warning: exported const OpGt should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: comment on exported type FieldFilter should be of the form "FieldFilter ..." (with optional leading article) (golint)
    • Line 19: warning: exported method FieldFilter.Not should have comment or be unexported (golint)
    • Line 23: warning: exported method FieldFilter.And should have comment or be unexported (golint)
    • Line 26: warning: exported method FieldFilter.AndEqualTo should have comment or be unexported (golint)
    • Line 29: warning: exported method FieldFilter.AndNotEqualTo should have comment or be unexported (golint)
    • Line 32: warning: exported method FieldFilter.AndGreaterThan should have comment or be unexported (golint)
    • Line 35: warning: exported method FieldFilter.AndNotGreaterThan should have comment or be unexported (golint)
    • Line 38: warning: exported method FieldFilter.AndGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 41: warning: exported method FieldFilter.AndNotGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 45: warning: exported method FieldFilter.Or should have comment or be unexported (golint)
    • Line 48: warning: exported method FieldFilter.OrEqualTo should have comment or be unexported (golint)
    • Line 51: warning: exported method FieldFilter.OrNotEqualTo should have comment or be unexported (golint)
    • Line 54: warning: exported method FieldFilter.OrGreaterThan should have comment or be unexported (golint)
    • Line 57: warning: exported method FieldFilter.OrNotGreaterThan should have comment or be unexported (golint)
    • Line 60: warning: exported method FieldFilter.OrGreaterThanOrEqualTo should have comment or be unexported (golint)
    • Line 63: warning: exported method FieldFilter.OrNotGreaterThanOrEqualTo should have comment or be unexported (golint)
    • ccloud-go-sdk/telemetry/client-descriptors.go
    • Line 11: warning: exported method TelemetryClient.SendDesc should have comment or be unexported (golint)
    • Line 19: warning: exported method TelemetryClient.SendDescMetrics should have comment or be unexported (golint)
    • Line 31: warning: exported method TelemetryClient.SendDescResources should have comment or be unexported (golint)
    • ccloud-go-sdk/telemetry/client-query-metric-kafka.go
    • Line 17: warning: comment on exported method TelemetryClient.QueryKafkaMetricAndType should be of the form "QueryKafkaMetricAndType ..." (golint)
    • Line 22: warning: comment on exported method TelemetryClient.QueryKafkaMetricAndTopic should be of the form "QueryKafkaMetricAndTopic ..." (golint)
    • Line 30: warning: comment on exported method TelemetryClient.QueryKafkaMetricAndTopicWithPartitions should be of the form "QueryKafkaMetricAndTopicWithPartitions ..." (golint)
    • Line 50: warning: comment on exported method TelemetryClient.QueryKafkaMetricForAllTopics should be of the form "QueryKafkaMetricForAllTopics ..." (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!