koki-develop/qiita-cli

View on GitHub
internal/notify/notify.go

Summary

Maintainability
A
1 hr
Test Coverage

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

func loadCache() (*cache, error) {
    p, err := cachePath()
    if err != nil {
        return nil, err
    }
Severity: Major
Found in internal/notify/notify.go - About 40 mins to fix

    Function NotifyNewRelease has 5 return statements (exceeds 4 allowed).
    Open

    func NotifyNewRelease(w io.Writer, version string) error {
        c, err := loadCache()
        if err != nil {
            return err
        }
    Severity: Major
    Found in internal/notify/notify.go - About 35 mins to fix

      Function saveCache has 5 return statements (exceeds 4 allowed).
      Open

      func saveCache(c *cache) error {
          p, err := cachePath()
          if err != nil {
              return err
          }
      Severity: Major
      Found in internal/notify/notify.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status