Preparing report...

Report for github.com/Oppodelldog/docker-dns

A    Great!    Found 7 issues across 11 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint45%

Golint is a linter for Go source code.

    • docker-dns/dnsserver/survey.go
    • Line 7: warning: exported type ContainerDNSSurvey should have comment or be unexported (golint)
    • Line 13: warning: exported function NewContainerDNSSurvey should have comment or be unexported (golint)
    • Line 23: warning: exported method ContainerDNSSurvey.Run should have comment or be unexported (golint)
    • docker-dns/dnsserver/update.go
    • Line 15: warning: exported var ErrGettingContainerName should have comment or be unexported (golint)
    • Line 16: warning: exported var ErrGettingContainerIP should have comment or be unexported (golint)
    • Line 17: warning: exported var ErrGettingContainerByID should have comment or be unexported (golint)
    • Line 18: warning: exported var ErrNoContainerFoundForID should have comment or be unexported (golint)
    • Line 20: warning: exported type DNSUpdater should have comment or be unexported (golint)
    • Line 27: warning: exported function NewDNSUpdater should have comment or be unexported (golint)
    • docker-dns/dnsserver/docker.go
    • Line 12: warning: exported type RunningContainersGetter should have comment or be unexported (golint)
    • Line 15: warning: exported type NetworkIDsGetter should have comment or be unexported (golint)
    • Line 18: warning: exported type NetworkIPsGetter should have comment or be unexported (golint)
    • Line 21: warning: exported type DockerClientAdapter should have comment or be unexported (golint)
    • Line 69: warning: exported method DockerClientAdapter.GetContainerNetworkIps should have comment or be unexported (golint)
    • docker-dns/dnsserver/registry.go
    • Line 10: warning: exported type DNSRegisterer should have comment or be unexported (golint)
    • Line 13: warning: exported type DNSUnRegisterer should have comment or be unexported (golint)
    • Line 16: warning: exported type DNSRegistrar should have comment or be unexported (golint)
    • Line 20: warning: exported type IPResolver should have comment or be unexported (golint)
    • Line 35: warning: exported type DNSRegistry should have comment or be unexported (golint)
    • Line 40: warning: exported type AliasProvider should have comment or be unexported (golint)
    • Line 45: warning: exported method DNSRegistry.LookupIP should have comment or be unexported (golint)
    • Line 60: warning: exported method DNSRegistry.Unregister should have comment or be unexported (golint)
    • Line 67: warning: exported method DNSRegistry.Register should have comment or be unexported (golint)
    • Line 81: warning: exported type ContainerDNSRegistry should have comment or be unexported (golint)
    • Line 85: warning: exported method ContainerDNSRegistry.Unregister should have comment or be unexported (golint)
    • Line 91: warning: exported method ContainerDNSRegistry.Register should have comment or be unexported (golint)

license0%

Checks whether your project has a LICENSE file.


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!