RITlug/teleirc

View on GitHub
internal/config.go

Summary

Maintainability
A
40 mins
Test Coverage

Function LoadConfig has 6 return statements (exceeds 4 allowed).
Open

func LoadConfig(path string) (*Settings, error) {
    validate = validator.New()
    if err := validate.RegisterValidation("notempty", validateEmptyString); err != nil {
        return nil, err
    }
Severity: Major
Found in internal/config.go - About 40 mins to fix

There are no issues that match your filters.

Category
Status