docker/swarmkit

View on GitHub
template/getter.go

Summary

Maintainability
A
1 hr
Test Coverage

Method templatedConfigGetter.GetAndFlagSecretData has 5 return statements (exceeds 4 allowed).
Open

func (t templatedConfigGetter) GetAndFlagSecretData(configID string) (*api.Config, bool, error) {
    if t.dependencies == nil {
        return nil, false, errors.New("no config provider available")
    }

Severity: Major
Found in template/getter.go - About 35 mins to fix

    Method templatedSecretGetter.Get has 5 return statements (exceeds 4 allowed).
    Open

    func (t templatedSecretGetter) Get(secretID string) (*api.Secret, error) {
        if t.dependencies == nil {
            return nil, errors.New("no secret provider available")
        }
    
    
    Severity: Major
    Found in template/getter.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status