Preparing report...

Report for github.com/lovego/kafka

A    Great!    Found 4 issues across 4 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!


golint25%

Golint is a linter for Go source code.

    • kafka/consumer.go
    • Line 11: warning: comment on exported type Consumer should be of the form "Consumer ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported method Consumer.Consume should be of the form "Consume ..." (golint)
    • Line 81: warning: comment on exported method Consumer.Produce should be of the form "Produce ..." (golint)
    • Line 92: warning: comment on exported method Consumer.Close should be of the form "Close ..." (golint)
    • kafka/processor.go
    • Line 12: warning: exported type Result should have comment or be unexported (golint)
    • Line 19: warning: comment on exported type Processor should be of the form "Processor ..." (with optional leading article) (golint)
    • Line 28: warning: comment on exported function Process should be of the form "Process ..." (golint)
    • Line 41: warning: comment on exported method Processor.WorkFunc should be of the form "WorkFunc ..." (golint)
    • Line 56: warning: comment on exported method Processor.FieldsFunc should be of the form "FieldsFunc ..." (golint)
    • kafka/produce_consume.go
    • Line 11: warning: comment on exported function Produce should be of the form "Produce ..." (golint)
    • Line 30: warning: comment on exported function Consume should be of the form "Consume ..." (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign75%

IneffAssign detects ineffectual assignments in Go code.

    • kafka/consumer.go
    • Line 6: warning: cannot find package "." in: (ineffassign)
    • Line 7: warning: cannot find package "." in: (ineffassign)
    • Line 8: warning: cannot find package "." in: (ineffassign)
    • Line 6: warning: could not import github.com/Shopify/sarama (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/bsm/sarama-cluster (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/lovego/logger (invalid package name: "") (ineffassign)
    • Line 6: warning: could not import github.com/Shopify/sarama (invalid package name: "") (ineffassign)
    • Line 7: warning: could not import github.com/bsm/sarama-cluster (invalid package name: "") (ineffassign)
    • Line 8: warning: could not import github.com/lovego/logger (invalid package name: "") (ineffassign)

misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!