Preparing report...

Report for github.com/coredns/coredns

(v1.10.1)

A+    Excellent!    Found 72 issues across 585 files

Tweet

gofmt96%

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


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!


ineffassign100%

IneffAssign detects ineffectual assignments in Go code.

No problems detected. Good job!


gocyclo90%

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.

    • plugin/backend_lookup.go
    • Line 165: warning: cyclomatic complexity 20 of function SRV() is high (> 15) (gocyclo)
    • Line 17: warning: cyclomatic complexity 16 of function A() is high (> 15) (gocyclo)
    • Line 90: warning: cyclomatic complexity 16 of function AAAA() is high (> 15) (gocyclo)
    • core/dnsserver/register.go
    • Line 134: warning: cyclomatic complexity 17 of function (*dnsContext).MakeServers() is high (> 15) (gocyclo)
    • Line 55: warning: cyclomatic complexity 16 of function (*dnsContext).InspectServerBlocks() is high (> 15) (gocyclo)
    • plugin/tsig/setup.go
    • Line 42: warning: cyclomatic complexity 19 of function parse() is high (> 15) (gocyclo)
    • Line 113: warning: cyclomatic complexity 16 of function parseKeyFile() is high (> 15) (gocyclo)
    • plugin/azure/azure.go
    • Line 139: warning: cyclomatic complexity 18 of function updateZoneFromPublicResourceSet() is high (> 15) (gocyclo)
    • Line 225: warning: cyclomatic complexity 16 of function updateZoneFromPrivateResourceSet() is high (> 15) (gocyclo)
    • plugin/rewrite/name.go
    • Line 295: warning: cyclomatic complexity 18 of function newNameRule() is high (> 15) (gocyclo)
    • Line 358: warning: cyclomatic complexity 17 of function parseAnswerRules() is high (> 15) (gocyclo)
    • plugin/kubernetes/kubernetes.go
    • Line 478: warning: cyclomatic complexity 30 of function (*Kubernetes).findServices() is high (> 15) (gocyclo)
    • Line 96: warning: cyclomatic complexity 18 of function (*Kubernetes).Services() is high (> 15) (gocyclo)
    • Line 229: warning: cyclomatic complexity 16 of function (*Kubernetes).InitKubeCache() is high (> 15) (gocyclo)
    • test/presubmit_test.go
    • Line 204: warning: cyclomatic complexity 28 of function (*testImportOrderingWalker).walk() is high (> 15) (gocyclo)
    • Line 112: warning: cyclomatic complexity 22 of function (logfmt).Visit() is high (> 15) (gocyclo)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!