corvus-ch/rabbitmq-cli-consumer

View on GitHub
config/config.go

Summary

Maintainability
A
3 hrs
Test Coverage
F
23%

Config has 26 methods (exceeds 20 allowed). Consider refactoring.
Open

type Config struct {
    RabbitMq struct {
        AmqpUrl      string
        Host         string
        Username     string
Severity: Minor
Found in config/config.go - About 3 hrs to fix

    exported function CreateFromString should have comment or be unexported
    Open

    func CreateFromString(data string) (*Config, error) {
    Severity: Minor
    Found in config/config.go by golint

    exported method Config.AmqpUrl should have comment or be unexported
    Open

    func (c *Config) AmqpUrl() string {
    Severity: Minor
    Found in config/config.go by golint

    method AmqpUrl should be AmqpURL
    Open

    func (c *Config) AmqpUrl() string {
    Severity: Minor
    Found in config/config.go by golint

    struct field AmqpUrl should be AmqpURL
    Open

            AmqpUrl      string
    Severity: Minor
    Found in config/config.go by golint

    exported type Config should have comment or be unexported
    Open

    type Config struct {
    Severity: Minor
    Found in config/config.go by golint

    There are no issues that match your filters.

    Category
    Status