dotcloud/docker

View on GitHub
api/types/filters/parse.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Args.GetBoolOrDefault has 6 return statements (exceeds 4 allowed).
Open

func (args Args) GetBoolOrDefault(key string, defaultValue bool) (bool, error) {
    fieldValues, ok := args.fields[key]

    if !ok {
        return defaultValue, nil
Severity: Major
Found in api/types/filters/parse.go - About 40 mins to fix

    Method Args.MatchKVList has 5 return statements (exceeds 4 allowed).
    Open

    func (args Args) MatchKVList(key string, sources map[string]string) bool {
        fieldValues := args.fields[key]
    
        // do not filter if there is no filter set or cannot determine filter
        if len(fieldValues) == 0 {
    Severity: Major
    Found in api/types/filters/parse.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status