dotcloud/docker

View on GitHub
daemon/logger/syslog/syslog.go

Summary

Maintainability
A
1 hr
Test Coverage

Function New has 7 return statements (exceeds 4 allowed).
Open

func New(info logger.Info) (logger.Logger, error) {
    tag, err := loggerutils.ParseLogTag(info, loggerutils.DefaultTemplate)
    if err != nil {
        return nil, err
    }
Severity: Major
Found in daemon/logger/syslog/syslog.go - About 45 mins to fix

    Function parseAddress has 7 return statements (exceeds 4 allowed).
    Open

    func parseAddress(address string) (string, string, error) {
        if address == "" {
            return "", "", nil
        }
        addr, err := url.Parse(address)
    Severity: Major
    Found in daemon/logger/syslog/syslog.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status