Preparing report...

Report for github.com/cloudhut/kowl

A+    Excellent!    Found 56 issues across 108 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!


gocyclo95%

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.


golint49%

Golint is a linter for Go source code.

    • kowl/backend/pkg/owl/list_offsets.go
    • Line 9: warning: exported type TopicOffset should have comment or be unexported (golint)
    • Line 14: warning: exported type PartitionOffset should have comment or be unexported (golint)
    • Line 21: warning: exported method Service.ListOffsets should have comment or be unexported (golint)
    • kowl/backend/pkg/schema/service.go
    • Line 144: warning: exported method Service.GetAvroSchemaByID should have comment or be unexported (golint)
    • Line 181: warning: exported method Service.GetSubjects should have comment or be unexported (golint)
    • Line 185: warning: exported method Service.GetSchemaTypes should have comment or be unexported (golint)
    • Line 189: warning: exported method Service.GetSubjectVersions should have comment or be unexported (golint)
    • Line 193: warning: exported method Service.GetSchemaBySubject should have comment or be unexported (golint)
    • Line 197: warning: exported method Service.GetMode should have comment or be unexported (golint)
    • Line 201: warning: exported method Service.GetConfig should have comment or be unexported (golint)
    • Line 205: warning: exported method Service.GetSubjectConfig should have comment or be unexported (golint)
    • kowl/backend/pkg/proto/config.go
    • Line 10: warning: exported type Config should have comment or be unexported (golint)
    • Line 27: warning: exported method Config.Validate should have comment or be unexported (golint)
    • Line 43: warning: exported method Config.SetDefaults should have comment or be unexported (golint)
    • kowl/backend/pkg/owl/delete_consumer_group_offsets.go
    • Line 9: warning: exported type DeleteConsumerGroupOffsetsResponseTopic should have comment or be unexported (golint)
    • Line 14: warning: exported type DeleteConsumerGroupOffsetsResponseTopicPartition should have comment or be unexported (golint)
    • Line 19: warning: comment on exported method Service.DeleteConsumerGroupOffsets should be of the form "DeleteConsumerGroupOffsets ..." (golint)
    • kowl/backend/pkg/owl/broker_config.go
    • Line 14: warning: exported type BrokerConfig should have comment or be unexported (golint)
    • Line 21: warning: exported type BrokerConfigEntry should have comment or be unexported (golint)
    • Line 35: warning: exported type BrokerConfigSynonym should have comment or be unexported (golint)
    • Line 41: warning: exported method Service.GetAllBrokerConfigs should have comment or be unexported (golint)
    • Line 79: warning: exported method Service.GetBrokerConfig should have comment or be unexported (golint)
    • kowl/backend/pkg/owl/list_messages.go
    • Line 19: warning: comment on exported const StartOffsetRecent should be of the form "StartOffsetRecent ..." (golint)
    • Line 21: warning: comment on exported const StartOffsetOldest should be of the form "StartOffsetOldest ..." (golint)
    • Line 23: warning: comment on exported const StartOffsetNewest should be of the form "StartOffsetNewest ..." (golint)
    • Line 25: warning: comment on exported const StartOffsetTimestamp should be of the form "StartOffsetTimestamp ..." (golint)
    • kowl/backend/pkg/proto/service.go
    • Line 18: warning: exported type RecordPropertyType should have comment or be unexported (golint)
    • Line 21: warning: exported const RecordKey should have comment (or a comment on this block) or be unexported (golint)
    • Line 25: warning: exported type Service should have comment or be unexported (golint)
    • Line 43: warning: exported function NewService should have comment or be unexported (golint)
    • Line 103: warning: exported method Service.Start should have comment or be unexported (golint)
    • Line 171: warning: exported method Service.UnmarshalPayload should have comment or be unexported (golint)
    • kowl/backend/pkg/owl/endpoint_compatibility.go
    • Line 10: warning: exported type EndpointCompatibility should have comment or be unexported (golint)
    • Line 15: warning: exported type EndpointCompatibilityEndpoint should have comment or be unexported (golint)
    • Line 21: warning: exported method Service.GetEndpointCompatibility should have comment or be unexported (golint)
    • kowl/backend/pkg/owl/topic_partitions.go
    • Line 17: warning: exported type TopicDetails should have comment or be unexported (golint)
    • Line 43: warning: exported type TopicPartitionMetadata should have comment or be unexported (golint)
    • Line 63: warning: exported type TopicPartitionMarks should have comment or be unexported (golint)
    • Line 76: warning: exported type TopicPartitionLogDirs should have comment or be unexported (golint)
    • Line 83: warning: exported type TopicPartitionLogDirRequestError should have comment or be unexported (golint)
    • kowl/backend/pkg/kafka/log_dir.go
    • Line 9: warning: exported type LogDirResponseSharded should have comment or be unexported (golint)
    • Line 22: warning: comment on exported method Service.DescribeLogDirs should be of the form "DescribeLogDirs ..." (golint)
    • kowl/backend/pkg/api/handle_topic_messages.go
    • Line 21: warning: comment on exported type ListMessagesRequest should be of the form "ListMessagesRequest ..." (with optional leading article) (golint)
    • Line 32: warning: exported method ListMessagesRequest.OK should have comment or be unexported (golint)
    • Line 56: warning: exported method ListMessagesRequest.DecodeInterpreterCode should have comment or be unexported (golint)
    • kowl/backend/pkg/owl/config_topic_documentation.go
    • Line 9: warning: exported type ConfigTopicDocumentation should have comment or be unexported (golint)
    • Line 14: warning: exported method ConfigTopicDocumentation.RegisterFlags should have comment or be unexported (golint)
    • Line 18: warning: exported method ConfigTopicDocumentation.Validate should have comment or be unexported (golint)
    • Line 29: warning: exported method ConfigTopicDocumentation.SetDefaults should have comment or be unexported (golint)
    • kowl/backend/pkg/owl/partition_reassignments.go
    • Line 11: warning: comment on exported type PartitionReassignments should be of the form "PartitionReassignments ..." (with optional leading article) (golint)
    • Line 17: warning: comment on exported type PartitionReassignmentsPartition should be of the form "PartitionReassignmentsPartition ..." (with optional leading article) (golint)
    • Line 58: warning: comment on exported type AlterPartitionReassignmentsResponse should be of the form "AlterPartitionReassignmentsResponse ..." (with optional leading article) (golint)
    • Line 64: warning: comment on exported type AlterPartitionReassignmentsPartitionResponse should be of the form "AlterPartitionReassignmentsPartitionResponse ..." (with optional leading article) (golint)
    • Line 71: warning: comment on exported method Service.AlterPartitionAssignments should be of the form "AlterPartitionAssignments ..." (golint)
    • kowl/backend/pkg/schema/client.go
    • Line 21: warning: exported type RestError should have comment or be unexported (golint)
    • Line 103: warning: exported type SchemaResponse should have comment or be unexported (golint)
    • Line 109: warning: exported type Reference should have comment or be unexported (golint)
    • Line 183: warning: exported type SubjectsResponse should have comment or be unexported (golint)
    • Line 213: warning: exported type SubjectVersionsResponse should have comment or be unexported (golint)
    • Line 217: warning: exported method Client.GetSubjectVersions should have comment or be unexported (golint)
    • Line 242: warning: exported type ModeResponse should have comment or be unexported (golint)
    • Line 270: warning: exported type ConfigResponse should have comment or be unexported (golint)
    • Line 352: warning: exported method Client.GetSchemas should have comment or be unexported (golint)
    • kowl/backend/pkg/owl/edit_consumer_group_offsets.go
    • Line 15: warning: exported type EditConsumerGroupOffsetsResponse should have comment or be unexported (golint)
    • Line 20: warning: exported type EditConsumerGroupOffsetsResponseTopic should have comment or be unexported (golint)
    • Line 25: warning: exported type EditConsumerGroupOffsetsResponseTopicPartition should have comment or be unexported (golint)
    • kowl/backend/pkg/owl/log_dir_broker.go
    • Line 9: warning: exported type LogDirsByBroker should have comment or be unexported (golint)
    • Line 21: warning: exported type LogDir should have comment or be unexported (golint)
    • Line 29: warning: exported type LogDirTopic should have comment or be unexported (golint)
    • Line 35: warning: exported type LogDirPartition should have comment or be unexported (golint)
    • kowl/backend/pkg/kafka/list_consumer_groups.go
    • Line 11: warning: exported type ListConsumerGroupsResponseSharded should have comment or be unexported (golint)
    • Line 17: warning: exported method ListConsumerGroupsResponseSharded.GetGroupIDs should have comment or be unexported (golint)
    • Line 30: warning: comment on exported type ListConsumerGroupsResponse should be of the form "ListConsumerGroupsResponse ..." (with optional leading article) (golint)
    • kowl/backend/pkg/api/handle_topics.go
    • Line 4: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 10: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • kowl/backend/pkg/owl/config.go
    • Line 8: warning: exported type Config should have comment or be unexported (golint)
    • Line 12: warning: exported method Config.SetDefaults should have comment or be unexported (golint)
    • Line 16: warning: exported method Config.RegisterFlags should have comment or be unexported (golint)
    • Line 20: warning: exported method Config.Validate should have comment or be unexported (golint)
    • kowl/backend/pkg/kafka/water_mark.go
    • Line 13: warning: exported const TimestampLatest should have comment (or a comment on this block) or be unexported (golint)
    • Line 27: warning: comment on exported method Service.GetPartitionMarksBulk should be of the form "GetPartitionMarksBulk ..." (golint)
    • kowl/backend/pkg/kafka/describe_consumer_groups.go
    • Line 11: warning: exported type DescribeConsumerGroupsResponseSharded should have comment or be unexported (golint)
    • Line 17: warning: exported method DescribeConsumerGroupsResponseSharded.GetGroupIDs should have comment or be unexported (golint)
    • Line 34: warning: exported method DescribeConsumerGroupsResponseSharded.GetDescribedGroups should have comment or be unexported (golint)
    • Line 46: warning: exported type DescribeConsumerGroupsResponse should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell99%

Misspell Finds commonly misspelled English words