Preparing report...

Report for github.com/edgexfoundry/go-mod-messaging

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


golint67%

Golint is a linter for Go source code.

    • go-mod-messaging/internal/pkg/errors.go
    • Line 47: warning: exported type PublishHostURLErr should have comment or be unexported (golint)
    • Line 55: warning: exported function NewPublishHostURLErr should have comment or be unexported (golint)
    • Line 59: warning: exported type SubscribeHostURLErr should have comment or be unexported (golint)
    • Line 67: warning: exported function NewSubscribeHostURLErr should have comment or be unexported (golint)
    • Line 71: warning: exported type MissingConfigurationErr should have comment or be unexported (golint)
    • Line 80: warning: exported function NewMissingConfigurationErr should have comment or be unexported (golint)
    • Line 87: warning: exported type InvalidTopicErr should have comment or be unexported (golint)
    • Line 96: warning: exported function NewInvalidTopicErr should have comment or be unexported (golint)
    • go-mod-messaging/internal/pkg/mqtt/client_test.go
    • Line 452: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 681: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 766: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • go-mod-messaging/internal/pkg/config.go
    • Line 25: warning: exported var TlsSchemes should have comment or be unexported (golint)
    • Line 33: warning: exported type TlsConfigurationOptions should have comment or be unexported (golint)
    • Line 41: warning: exported function CreateDefaultTlsConfigurationOptions should have comment or be unexported (golint)
    • Line 51: warning: comment on exported function GenerateTLSForClientClientOptions should be of the form "GenerateTLSForClientClientOptions ..." (golint)
    • Line 116: warning: comment on exported function Load should be of the form "Load ..." (golint)
    • go-mod-messaging/messaging/mqtt/constants.go
    • Line 21: warning: comment on exported const Username should be of the form "Username ..." (golint)
    • Line 23: warning: exported const Password should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: comment on exported const Qos should be of the form "Qos ..." (golint)
    • Line 33: warning: comment on exported const SkipCertVerify should be of the form "SkipCertVerify ..." (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell97%

Misspell Finds commonly misspelled English words