Preparing report...

Report for github.com/cockroachdb/watermill-crdb

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


gocyclo91%

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.


golint50%

Golint is a linter for Go source code.

    • watermill-crdb/pkg/crdb/session.go
    • Line 16: warning: exported type Session should have comment or be unexported (golint)
    • Line 29: warning: exported function NewSession should have comment or be unexported (golint)
    • Line 44: warning: exported method Session.Run should have comment or be unexported (golint)
    • Line 69: warning: exported method Session.Observe should have comment or be unexported (golint)
    • Line 84: warning: exported method Session.TableName should have comment or be unexported (golint)
    • Line 88: warning: exported method Session.Close should have comment or be unexported (golint)
    • watermill-crdb/pkg/crdb/subscriber.go
    • Line 18: warning: exported var ErrSubscriberClosed should have comment or be unexported (golint)
    • Line 20: warning: exported type CRDBEnvelope should have comment or be unexported (golint)
    • Line 24: warning: exported type ResolvedTimestamp should have comment or be unexported (golint)
    • Line 39: warning: exported function NewSubscriber should have comment or be unexported (golint)
    • watermill-crdb/pkg/crdb/publisher.go
    • Line 17: warning: exported var ErrPublisherClosed should have comment or be unexported (golint)
    • Line 19: warning: exported type DB should have comment or be unexported (golint)
    • Line 23: warning: exported type PublisherConfig should have comment or be unexported (golint)
    • Line 38: warning: exported function NewPublisher should have comment or be unexported (golint)
    • watermill-crdb/pkg/crdb/schema.go
    • Line 13: warning: exported function InitializeSessionSchema should have comment or be unexported (golint)
    • Line 24: warning: exported function InitializeMessageSchema should have comment or be unexported (golint)
    • Line 50: warning: exported function InitializeClaimsSchema should have comment or be unexported (golint)
    • Line 72: warning: exported function InitializeCursorsSchema should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign91%

IneffAssign detects ineffectual assignments in Go code.


misspell91%

Misspell Finds commonly misspelled English words