Mirantis/virtlet

View on GitHub

Showing 52 of 52 total issues

Avoid deeply nested control flow statements.
Open

                        if err != nil {
                            glog.V(2).Infof("error decoding private key #%d from transport profile %s", i, rule.Transport)
                        } else {
                            privateKey = k
                        }
Severity: Major
Found in pkg/imagetranslation/translator.go - About 45 mins to fix

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    /*
    Severity: Minor
    Found in pkg/nettools/nettools.go by gofmt

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build !linux
    Severity: Minor
    Found in pkg/stream/utils_unsupported.go by gofmt

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    /*
    Severity: Minor
    Found in pkg/utils/waitproc.go by gofmt

    don't use ALL_CAPS in Go names; use CamelCase
    Open

        RTPROT_KERNEL  = 0
    Severity: Minor
    Found in pkg/nettools/nettools_unsupported.go by golint

    exported method TestCommand.Pid should have comment or be unexported
    Open

    func (tc *TestCommand) Pid() int {
    Severity: Minor
    Found in pkg/utils/testing/runprocess.go by golint

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build !linux
    Severity: Minor
    Found in pkg/utils/netns_unsupported.go by gofmt

    should replace nextToUseHostdevNo += 1 with nextToUseHostdevNo++
    Open

                        nextToUseHostdevNo += 1
    Severity: Minor
    Found in cmd/vmwrapper/vmwrapper.go by golint

    don't use ALL_CAPS in Go names; use CamelCase
    Open

        SCOPE_LINK     = 0
    Severity: Minor
    Found in pkg/nettools/nettools_unsupported.go by golint

    type name will be used as fake.FakeDomainConnection by other packages, and that stutters; consider calling this DomainConnection
    Open

    type FakeDomainConnection struct {
    Severity: Minor
    Found in pkg/virt/fake/fake_domain.go by golint

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build linux
    Severity: Minor
    Found in pkg/fs/fsstat_linux.go by gofmt

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build !ignore_autogenerated

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build !linux
    Severity: Minor
    Found in pkg/nettools/nettools_unsupported.go by gofmt

    don't use ALL_CAPS in Go names; use CamelCase
    Open

        SCOPE_UNIVERSE = netlink.SCOPE_UNIVERSE
    Severity: Minor
    Found in pkg/nettools/nettools_linux.go by golint

    don't use ALL_CAPS in Go names; use CamelCase
    Open

        SCOPE_UNIVERSE = 0
    Severity: Minor
    Found in pkg/nettools/nettools_unsupported.go by golint

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build !linux
    Severity: Minor
    Found in cmd/virtlet/pdeathsig_unsupported.go by gofmt

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build !linux
    Severity: Minor
    Found in pkg/fs/fs_unsupported.go by gofmt

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build !linux
    Severity: Minor
    Found in pkg/nettools/tap_unsupported.go by gofmt

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build linux
    Severity: Minor
    Found in pkg/fs/fs_linux.go by gofmt

    Your code does not pass gofmt in 1 place. Go fmt your code!
    Open

    // +build linux
    Severity: Minor
    Found in pkg/nettools/nettools_linux.go by gofmt
    Severity
    Category
    Status
    Source
    Language