Preparing report...

Report for github.com/Financial-Times/publish-failure-resolver-go

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


gocyclo93%

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.


golint37%

Golint is a linter for Go source code.

    • publish-failure-resolver-go/pkg/republisher/collection_metadata.go
    • Line 4: warning: exported const ScopeBoth should have comment (or a comment on this block) or be unexported (golint)
    • Line 11: warning: exported type Collections should have comment or be unexported (golint)
    • Line 13: warning: exported type CollectionMetadata should have comment or be unexported (golint)
    • Line 20: warning: exported var DefaultCollections should have comment or be unexported (golint)
    • publish-failure-resolver-go/pkg/republisher/uuid_republisher.go
    • Line 13: warning: exported type UUIDRepublisher should have comment or be unexported (golint)
    • Line 17: warning: exported type NotifyingUUIDRepublisher should have comment or be unexported (golint)
    • Line 23: warning: exported function NewNotifyingUUIDRepublisher should have comment or be unexported (golint)
    • Line 31: warning: exported method NotifyingUUIDRepublisher.Republish should have comment or be unexported (golint)
    • publish-failure-resolver-go/pkg/http/api/notifier_client.go
    • Line 23: warning: exported type NotifierClient should have comment or be unexported (golint)
    • Line 27: warning: exported type HTTPNotifier should have comment or be unexported (golint)
    • Line 33: warning: exported function NewHTTPNotifier should have comment or be unexported (golint)
    • Line 41: warning: exported method HTTPNotifier.Notify should have comment or be unexported (golint)
    • publish-failure-resolver-go/pkg/http/api/native_client.go
    • Line 14: warning: exported type NativeMSG should have comment or be unexported (golint)
    • Line 22: warning: exported type NativeStoreClientInterface should have comment or be unexported (golint)
    • Line 26: warning: exported type NativeStoreClient should have comment or be unexported (golint)
    • Line 32: warning: exported function NewNativeStoreClient should have comment or be unexported (golint)
    • Line 40: warning: exported method NativeStoreClient.GetNative should have comment or be unexported (golint)
    • publish-failure-resolver-go/pkg/republisher/uuid_collection_republisher.go
    • Line 10: warning: exported type UUIDCollectionRepublisher should have comment or be unexported (golint)
    • Line 14: warning: exported type NotifyingUCRepublisher should have comment or be unexported (golint)
    • Line 20: warning: exported function NewNotifyingUCRepublisher should have comment or be unexported (golint)
    • Line 24: warning: exported type OKMsg should have comment or be unexported (golint)
    • Line 38: warning: exported method NotifyingUCRepublisher.RepublishUUIDFromCollection should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign93%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!