Preparing report...

Report for github.com/cohenjo/replicator

A    Great!    Found 15 issues across 21 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.


golint33%

Golint is a linter for Go source code.

    • replicator/pkg/streams/stream.go
    • Line 13: warning: exported type Stream should have comment or be unexported (golint)
    • Line 19: warning: exported type StreamManagment should have comment or be unexported (golint)
    • Line 30: warning: exported var StreamManager should have comment or be unexported (golint)
    • Line 34: warning: exported function SetupStreamManager should have comment or be unexported (golint)
    • Line 42: warning: exported method StreamManagment.NewStream should have comment or be unexported (golint)
    • Line 59: warning: exported method StreamManagment.StartListening should have comment or be unexported (golint)
    • Line 59: warning: receiver name em should be consistent with previous receiver name sm for StreamManagment (golint)
    • Line 70: warning: exported method StreamManagment.Quit should have comment or be unexported (golint)
    • Line 70: warning: receiver name em should be consistent with previous receiver name sm for StreamManagment (golint)
    • replicator/pkg/estuary/estuary.go
    • Line 19: warning: exported type Endpoint should have comment or be unexported (golint)
    • Line 23: warning: exported function WriteEndpoints should have comment or be unexported (golint)
    • Line 27: warning: exported type EndpointManagment should have comment or be unexported (golint)
    • Line 34: warning: exported var EndpointManager should have comment or be unexported (golint)
    • Line 42: warning: exported function SetupEndpointManager should have comment or be unexported (golint)
    • Line 50: warning: exported method EndpointManagment.NewEstuary should have comment or be unexported (golint)
    • Line 68: warning: exported method EndpointManagment.RegisterEndpoint should have comment or be unexported (golint)
    • Line 72: warning: exported method EndpointManagment.PublishEvents should have comment or be unexported (golint)
    • Line 87: warning: exported method EndpointManagment.PublishEvent should have comment or be unexported (golint)
    • Line 91: warning: exported method EndpointManagment.Quit should have comment or be unexported (golint)
    • Line 95: warning: exported type StdoutEndpoint should have comment or be unexported (golint)
    • Line 98: warning: exported method StdoutEndpoint.WriteEvent should have comment or be unexported (golint)
    • replicator/pkg/config/config.go
    • Line 10: warning: exported type WaterFlowsConfig should have comment or be unexported (golint)
    • Line 18: warning: exported type TransformOperation should have comment or be unexported (golint)
    • replicator/pkg/transform/kazaam.go
    • Line 11: warning: exported type TransformationManager should have comment or be unexported (golint)
    • Line 16: warning: exported function NewTransformer should have comment or be unexported (golint)
    • Line 22: warning: comment on exported method TransformationManager.Transform should be of the form "Transform ..." (golint)
    • Line 33: warning: exported method TransformationManager.RegisterOperation should have comment or be unexported (golint)
    • Line 37: warning: exported method TransformationManager.InitializeTransformer should have comment or be unexported (golint)
    • replicator/pkg/replicator/replicator.go
    • Line 16: warning: exported type Replicator should have comment or be unexported (golint)
    • Line 93: warning: exported method Replicator.Quit should have comment or be unexported (golint)
    • Line 93: warning: receiver name re should be consistent with previous receiver name replicator for Replicator (golint)
    • replicator/pkg/streams/mongo.go
    • Line 18: warning: exported type MongoStream should have comment or be unexported (golint)
    • Line 25: warning: exported function NewMongoStream should have comment or be unexported (golint)
    • Line 33: warning: exported method MongoStream.StreamType should have comment or be unexported (golint)
    • Line 37: warning: exported method MongoStream.Listen should have comment or be unexported (golint)
    • replicator/pkg/streams/mysql.go
    • Line 11: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 22: warning: exported type MySQLStream should have comment or be unexported (golint)
    • Line 31: warning: exported function NewMySQLStream should have comment or be unexported (golint)
    • Line 39: warning: exported method MySQLStream.Configure should have comment or be unexported (golint)
    • Line 46: warning: exported method MySQLStream.Listen should have comment or be unexported (golint)
    • Line 116: warning: exported function GetMasterGTIDSet should have comment or be unexported (golint)
    • Line 133: warning: exported method MySQLStream.StreamType should have comment or be unexported (golint)
    • replicator/pkg/estuary/elastic.go
    • Line 20: warning: exported type ElasticEndpoint should have comment or be unexported (golint)
    • Line 25: warning: exported function NewElasticEndpoint should have comment or be unexported (golint)
    • Line 50: warning: exported method ElasticEndpoint.WriteEvent should have comment or be unexported (golint)
    • replicator/pkg/estuary/kafka.go
    • Line 22: warning: exported type KafkaEndpoint should have comment or be unexported (golint)
    • Line 27: warning: exported method KafkaEndpoint.WriteEvent should have comment or be unexported (golint)
    • Line 51: warning: exported function NewKafkaEndpoint should have comment or be unexported (golint)
    • Line 90: warning: exported method KafkaEndpoint.Close should have comment or be unexported (golint)
    • replicator/pkg/estuary/mongo.go
    • Line 15: warning: exported type MongoEndpoint should have comment or be unexported (golint)
    • Line 22: warning: exported function NewMongoEndpoint should have comment or be unexported (golint)
    • Line 47: warning: exported method MongoEndpoint.WriteEvent should have comment or be unexported (golint)
    • replicator/pkg/streams/kafka.go
    • Line 19: warning: exported type KafkaStream should have comment or be unexported (golint)
    • Line 27: warning: exported function NewKafkaStream should have comment or be unexported (golint)
    • Line 35: warning: exported method KafkaStream.StreamType should have comment or be unexported (golint)
    • Line 39: warning: exported method KafkaStream.Listen should have comment or be unexported (golint)
    • replicator/pkg/estuary/mysql.go
    • Line 15: warning: exported type MySQLEndpoint should have comment or be unexported (golint)
    • Line 25: warning: exported function NewMySQLEndpoint should have comment or be unexported (golint)
    • Line 46: warning: exported method MySQLEndpoint.WriteEvent should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell90%

Misspell Finds commonly misspelled English words