docker/swarmkit

View on GitHub
template/context.go

Summary

Maintainability
A
1 hr
Test Coverage

Method PayloadContext.secretGetter has 5 return statements (exceeds 4 allowed).
Open

func (ctx *PayloadContext) secretGetter(target string) (string, error) {
    if ctx.restrictedSecrets == nil {
        return "", errors.New("secrets unavailable")
    }

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

    Method PayloadContext.configGetter has 5 return statements (exceeds 4 allowed).
    Open

    func (ctx *PayloadContext) configGetter(target string) (string, error) {
        if ctx.restrictedConfigs == nil {
            return "", errors.New("configs unavailable")
        }
    
    
    Severity: Major
    Found in template/context.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status