Preparing report...

Report for github.com/Financial-Times/methode-content-placeholder-mapper

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


golint41%

Golint is a linter for Go source code.

    • methode-content-placeholder-mapper/model/testsMocks.go
    • Line 8: warning: exported type MockNativeMapper should have comment or be unexported (golint)
    • Line 12: warning: exported method MockNativeMapper.Map should have comment or be unexported (golint)
    • Line 17: warning: exported type MockCPHAggregateMapper should have comment or be unexported (golint)
    • Line 21: warning: exported method MockCPHAggregateMapper.MapContentPlaceholder should have comment or be unexported (golint)
    • Line 26: warning: exported type MockProducer should have comment or be unexported (golint)
    • Line 30: warning: exported method MockProducer.SendMessage should have comment or be unexported (golint)
    • Line 35: warning: exported method MockProducer.ConnectivityCheck should have comment or be unexported (golint)
    • Line 40: warning: exported type MockMessageCreator should have comment or be unexported (golint)
    • Line 44: warning: exported method MockMessageCreator.ToPublicationEventMessage should have comment or be unexported (golint)
    • Line 49: warning: exported method MockMessageCreator.ToPublicationEvent should have comment or be unexported (golint)
    • Line 54: warning: exported type MockDocStoreClient should have comment or be unexported (golint)
    • Line 58: warning: exported method MockDocStoreClient.ContentQuery should have comment or be unexported (golint)
    • Line 63: warning: exported method MockDocStoreClient.GetContent should have comment or be unexported (golint)
    • Line 68: warning: exported method MockDocStoreClient.ConnectivityCheck should have comment or be unexported (golint)
    • Line 73: warning: exported method MockDocStoreClient.ContentExists should have comment or be unexported (golint)
    • Line 78: warning: exported type MockIResolver should have comment or be unexported (golint)
    • Line 82: warning: exported method MockIResolver.ContentExists should have comment or be unexported (golint)
    • Line 87: warning: exported method MockIResolver.ResolveIdentifier should have comment or be unexported (golint)
    • Line 92: warning: exported type MockCPHMapper should have comment or be unexported (golint)
    • Line 96: warning: exported method MockCPHMapper.MapContentPlaceholder should have comment or be unexported (golint)
    • Line 101: warning: exported type MockCPHValidator should have comment or be unexported (golint)
    • Line 105: warning: exported method MockCPHValidator.Validate should have comment or be unexported (golint)
    • methode-content-placeholder-mapper/mapper/aggregateMapper.go
    • Line 13: warning: exported type CPHAggregateMapper should have comment or be unexported (golint)
    • Line 17: warning: exported type CPHMapper should have comment or be unexported (golint)
    • Line 21: warning: exported type DefaultCPHAggregateMapper should have comment or be unexported (golint)
    • Line 27: warning: exported function NewAggregateCPHMapper should have comment or be unexported (golint)
    • Line 31: warning: exported method DefaultCPHAggregateMapper.MapContentPlaceholder should have comment or be unexported (golint)
    • methode-content-placeholder-mapper/mapper/identifierResolver.go
    • Line 17: warning: exported type IResolver should have comment or be unexported (golint)
    • Line 22: warning: exported type HTTPIResolver should have comment or be unexported (golint)
    • Line 27: warning: exported function NewHttpIResolver should have comment or be unexported (golint)
    • Line 31: warning: exported method HTTPIResolver.ResolveIdentifier should have comment or be unexported (golint)
    • Line 66: warning: exported method HTTPIResolver.ContentExists should have comment or be unexported (golint)
    • methode-content-placeholder-mapper/model/uppCoreContent.go
    • Line 3: warning: exported type UppContent should have comment or be unexported (golint)
    • Line 8: warning: exported type UppCoreContent should have comment or be unexported (golint)
    • Line 16: warning: exported method UppCoreContent.GetUUID should have comment or be unexported (golint)
    • Line 20: warning: exported method UppCoreContent.GetUppCoreContent should have comment or be unexported (golint)
    • methode-content-placeholder-mapper/message/messagecreator.go
    • Line 12: warning: exported type MessageCreator should have comment or be unexported (golint)
    • Line 17: warning: exported type CPHMessageCreator should have comment or be unexported (golint)
    • Line 20: warning: exported function NewDefaultCPHMessageCreator should have comment or be unexported (golint)
    • Line 24: warning: exported method CPHMessageCreator.ToPublicationEventMessage should have comment or be unexported (golint)
    • Line 44: warning: exported method CPHMessageCreator.ToPublicationEvent should have comment or be unexported (golint)
    • methode-content-placeholder-mapper/handler/queuehandler.go
    • Line 18: warning: exported type MessageHandler should have comment or be unexported (golint)
    • Line 23: warning: exported type CPHMessageHandler should have comment or be unexported (golint)
    • Line 31: warning: exported function NewCPHMessageHandler should have comment or be unexported (golint)
    • Line 46: warning: exported method CPHMessageHandler.HandleMessage should have comment or be unexported (golint)
    • Line 91: warning: exported method CPHMessageHandler.StartHandlingMessages 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!