42Atomys/webhooked

View on GitHub
pkg/storage/rabbitmq/rabbitmq.go

Summary

Maintainability
A
0 mins
Test Coverage

Function NewStorage has 5 return statements (exceeds 4 allowed).
Invalid

func NewStorage(configRaw map[string]interface{}) (*storage, error) {
    var err error

    newClient := storage{
        config: &config{},
Severity: Major
Found in pkg/storage/rabbitmq/rabbitmq.go - About 35 mins to fix

    exported func NewStorage returns unexported type *rabbitmq.storage, which can be annoying to use
    Open

    func NewStorage(configRaw map[string]interface{}) (*storage, error) {
    Severity: Minor
    Found in pkg/storage/rabbitmq/rabbitmq.go by golint

    There are no issues that match your filters.

    Category
    Status