client/pkg/repo/client.go

Summary

Maintainability
A
1 hr
Test Coverage
D
60%

Method Client.findChannelReleaseBinPath has 6 return statements (exceeds 4 allowed).
Open

func (c Client) findChannelReleaseBinPath(group, channel, optionalBinName string) (string, error) {
    dir, releaseName, err := c.findChannelReleaseBinDir(group, channel)
    if err != nil {
        return "", err
    }
Severity: Major
Found in client/pkg/repo/client.go - About 40 mins to fix

    Method Client.findChannelReleaseDir has 5 return statements (exceeds 4 allowed).
    Open

    func (c Client) findChannelReleaseDir(group, channel string) (dir, release string, err error) {
        release, err = c.GetChannelRelease(group, channel)
        if err != nil {
            return "", "", err
        }
    Severity: Major
    Found in client/pkg/repo/client.go - About 35 mins to fix

      Method Client.GetChannelRelease has 5 return statements (exceeds 4 allowed).
      Open

      func (c Client) GetChannelRelease(group, channel string) (string, error) {
          channelFilePath := c.channelPath(group, channel)
          exist, err := util.IsRegularFileExist(channelFilePath)
          if err != nil {
              return "", fmt.Errorf("unable to check existence of file %q: %w", channelFilePath, err)
      Severity: Major
      Found in client/pkg/repo/client.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status