simonmittag/jabba

View on GitHub
acmehandler.go

Summary

Maintainability
A
2 hrs
Test Coverage
C
78%

Method Runtime.loadAcmeCertAndKeyFromCache has 7 return statements (exceeds 4 allowed).
Confirmed

func (runtime *Runtime) loadAcmeCertAndKeyFromCache(provider string) error {
    var e error

    if !runtime.cacheDirIsActive() {
        return errors.New("cache directory not active, cannot load TLS from cache")
Severity: Major
Found in acmehandler.go - About 45 mins to fix

    Method Runtime.fetchAcmeCertAndKey has 6 return statements (exceeds 4 allowed).
    Confirmed

    func (runtime *Runtime) fetchAcmeCertAndKey(url string) error {
        var e error
    
        defer func() {
            if r := recover(); r != nil {
    Severity: Major
    Found in acmehandler.go - About 40 mins to fix

      Method Runtime.cacheAcmeCertAndKey has 5 return statements (exceeds 4 allowed).
      Confirmed

      func (runtime *Runtime) cacheAcmeCertAndKey(provider string) error {
          var e error
      
          if !runtime.cacheDirIsActive() {
              return errors.New("cache directory not active, cannot cache keys")
      Severity: Major
      Found in acmehandler.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status