Preparing report...

Report for github.com/kubernetes-incubator/external-dns

A+    Excellent!    Found 36 issues across 158 files

Tweet

gofmt97%

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!


gocyclo85%

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.

    • external-dns/provider/aws/aws.go
    • Line 309: warning: cyclomatic complexity 23 of function (*AWSProvider).records() is high (> 15) (gocyclo)
    • Line 607: warning: cyclomatic complexity 17 of function (*AWSProvider).newChange() is high (> 15) (gocyclo)
    • external-dns/source/service.go
    • Line 254: warning: cyclomatic complexity 23 of function (*serviceSource).extractHeadlessEndpoints() is high (> 15) (gocyclo)
    • Line 160: warning: cyclomatic complexity 21 of function (*serviceSource).Endpoints() is high (> 15) (gocyclo)
    • Line 558: warning: cyclomatic complexity 18 of function (*serviceSource).extractNodePortTargets() is high (> 15) (gocyclo)
    • Line 443: warning: cyclomatic complexity 16 of function (*serviceSource).generateEndpoints() is high (> 15) (gocyclo)

golint91%

Golint is a linter for Go source code.

    • external-dns/endpoint/endpoint.go
    • Line 222: warning: exported type DNSEndpoint should have comment or be unexported (golint)
    • Line 230: warning: comment on exported type DNSEndpointList should be of the form "DNSEndpointList ..." (with optional leading article) (golint)
    • external-dns/provider/provider.go
    • Line 36: warning: exported type BaseProvider should have comment or be unexported (golint)
    • Line 39: warning: exported method BaseProvider.AdjustEndpoints should have comment or be unexported (golint)
    • Line 43: warning: exported method BaseProvider.PropertyValuesEqual should have comment or be unexported (golint)
    • external-dns/provider/zonefinder.go
    • Line 21: warning: exported type ZoneIDName should have comment or be unexported (golint)
    • Line 23: warning: exported method ZoneIDName.Add should have comment or be unexported (golint)
    • Line 27: warning: exported method ZoneIDName.FindZone should have comment or be unexported (golint)
    • external-dns/provider/akamai/akamai.go
    • Line 42: warning: comment on exported type AkamaiDNSService should be of the form "AkamaiDNSService ..." (with optional leading article) (golint)
    • Line 52: warning: exported type AkamaiConfig should have comment or be unexported (golint)
    • Line 163: warning: exported method AkamaiProvider.ListZones should have comment or be unexported (golint)
    • Line 167: warning: exported method AkamaiProvider.GetRecordsets should have comment or be unexported (golint)
    • Line 171: warning: exported method AkamaiProvider.CreateRecordsets should have comment or be unexported (golint)
    • Line 175: warning: exported method AkamaiProvider.GetRecord should have comment or be unexported (golint)
    • Line 179: warning: exported method AkamaiProvider.DeleteRecord should have comment or be unexported (golint)
    • Line 183: warning: exported method AkamaiProvider.UpdateRecord should have comment or be unexported (golint)
    • external-dns/provider/hetzner/hetzner.go
    • Line 37: warning: exported type HetznerChanges should have comment or be unexported (golint)
    • Line 44: warning: exported type HetznerProvider should have comment or be unexported (golint)
    • Line 51: warning: exported function NewHetznerProvider should have comment or be unexported (golint)
    • Line 67: warning: exported method HetznerProvider.Records should have comment or be unexported (golint)
    • Line 95: warning: exported method HetznerProvider.ApplyChanges should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign99%

IneffAssign detects ineffectual assignments in Go code.


misspell0%

Misspell Finds commonly misspelled English words

An error occurred while running this test (exit status 2)