42Atomys/webhooked

View on GitHub
internal/config/configuration.go

Summary

Maintainability
A
1 hr
Test Coverage

Function Load has 7 return statements (exceeds 4 allowed).
Open

func Load(cfgFile string) error {
    var k = koanf.New(".")

    // Load YAML config.
    if err := k.Load(file.Provider(cfgFile), yaml.Parser()); err != nil {
Severity: Major
Found in internal/config/configuration.go - About 45 mins to fix

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

    func loadTemplate(spec, parentSpec *FormattingSpec, defaultTemplate string) (*FormattingSpec, error) {
        if spec == nil {
            spec = &FormattingSpec{}
        }
    
    
    Severity: Major
    Found in internal/config/configuration.go - About 40 mins to fix

      var uniquenessUrl should be uniquenessURL
      Open

          var uniquenessUrl = make(map[string]bool)
      Severity: Minor
      Found in internal/config/configuration.go by golint

      There are no issues that match your filters.

      Category
      Status