Preparing report...

Report for github.com/rollulus/kafcat

A+    Excellent!    Found 5 issues across 11 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!


gocyclo90%

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.


golint54%

Golint is a linter for Go source code.

    • kafcat/pkg/consumer/consumer.go
    • Line 13: warning: exported type Consumer should have comment or be unexported (golint)
    • Line 22: warning: exported type ConsumerOption should have comment or be unexported (golint)
    • Line 24: warning: exported function SpecificPartitions should have comment or be unexported (golint)
    • Line 32: warning: exported function AllPartitions should have comment or be unexported (golint)
    • Line 48: warning: exported function UntilTime should have comment or be unexported (golint)
    • Line 56: warning: exported function BeyondHighWaterMark should have comment or be unexported (golint)
    • Line 64: warning: exported function FromTime should have comment or be unexported (golint)
    • Line 75: warning: exported function FromCurrentOffset should have comment or be unexported (golint)
    • Line 84: warning: exported function FromOldestOffset should have comment or be unexported (golint)
    • Line 93: warning: exported function Nop should have comment or be unexported (golint)
    • Line 100: warning: exported function New should have comment or be unexported (golint)
    • Line 132: warning: exported method Consumer.Messages should have comment or be unexported (golint)
    • kafcat/pkg/chisel/util.go
    • Line 62: warning: exported type SerializeFunc should have comment or be unexported (golint)
    • Line 63: warning: exported type DeserializeFunc should have comment or be unexported (golint)
    • Line 92: warning: comment on exported function Deserialize should be of the form "Deserialize ..." (golint)
    • Line 128: warning: comment on exported function Serialize should be of the form "Serialize ..." (golint)
    • kafcat/pkg/kafcat/formatter.go
    • Line 13: warning: exported type Formatter should have comment or be unexported (golint)
    • Line 18: warning: exported type ConsumerMessage should have comment or be unexported (golint)
    • Line 34: warning: exported method Formatter.FormatConsumerMessage should have comment or be unexported (golint)
    • kafcat/pkg/kafcat/topics.go
    • Line 7: warning: exported type TopicInfo should have comment or be unexported (golint)
    • Line 13: warning: exported type LeaderInfo should have comment or be unexported (golint)
    • Line 18: warning: exported type OffsetInfo should have comment or be unexported (golint)
    • Line 23: warning: exported type PartitionInfo should have comment or be unexported (golint)
    • Line 31: warning: exported function GetTopicInfos 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!