internal/handler/handler.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Handler.Start has 53 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (h *Handler) Start(c *Config) error {
    if err := h.setLogging(viper.GetString("log_level"), viper.GetStringSlice("log_output")...); err != nil {
        return err
    }

Severity: Minor
Found in internal/handler/handler.go - About 1 hr to fix

    Method Handler.Start has 6 return statements (exceeds 4 allowed).
    Open

    func (h *Handler) Start(c *Config) error {
        if err := h.setLogging(viper.GetString("log_level"), viper.GetStringSlice("log_output")...); err != nil {
            return err
        }
    
    
    Severity: Major
    Found in internal/handler/handler.go - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status