Preparing report...

Report for github.com/ThreeDotsLabs/watermill-kafka

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


golint62%

Golint is a linter for Go source code.

    • watermill-kafka/pkg/kafka/subscriber.go
    • Line 16: warning: exported type Subscriber should have comment or be unexported (golint)
    • Line 53: warning: exported type SubscriberConfig should have comment or be unexported (golint)
    • Line 91: warning: exported method SubscriberConfig.Validate should have comment or be unexported (golint)
    • Line 449: warning: exported method Subscriber.Close should have comment or be unexported (golint)
    • Line 588: warning: exported method Subscriber.SubscribeInitialize should have comment or be unexported (golint)
    • Line 612: warning: exported type PartitionOffset should have comment or be unexported (golint)
    • Line 614: warning: exported method Subscriber.PartitionOffset should have comment or be unexported (golint)
    • watermill-kafka/pkg/kafka/marshaler.go
    • Line 9: warning: exported const UUIDHeaderKey should have comment or be unexported (golint)
    • Line 21: warning: exported type MarshalerUnmarshaler should have comment or be unexported (golint)
    • Line 26: warning: exported type DefaultMarshaler should have comment or be unexported (golint)
    • Line 28: warning: exported method DefaultMarshaler.Marshal should have comment or be unexported (golint)
    • Line 51: warning: exported method DefaultMarshaler.Unmarshal should have comment or be unexported (golint)
    • Line 69: warning: exported type GeneratePartitionKey should have comment or be unexported (golint)
    • Line 77: warning: exported function NewWithPartitioningMarshaler should have comment or be unexported (golint)
    • watermill-kafka/pkg/kafka/publisher.go
    • Line 13: warning: exported type Publisher should have comment or be unexported (golint)
    • Line 48: warning: exported type PublisherConfig should have comment or be unexported (golint)
    • Line 65: warning: exported method PublisherConfig.Validate should have comment or be unexported (golint)
    • Line 76: warning: exported function DefaultSaramaSyncPublisherConfig should have comment or be unexported (golint)
    • Line 123: warning: exported method Publisher.Close should have comment or be unexported (golint)

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!


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!