Preparing report...

Report for gomodules.xyz/dns

A+    Excellent!    Found 9 issues across 17 files

Tweet

gofmt94%

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!


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!


golint47%

Golint is a linter for Go source code.

    • /gomodules.xyz/dns/aws/aws.go
    • Line 1: warning: package comment should be of the form "Package aws ..." (golint)
    • Line 59: warning: exported type Options should have comment or be unexported (golint)
    • Line 65: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 94: warning: exported function New should have comment or be unexported (golint)
    • Line 114: warning: exported method DNSProvider.EnsureARecord should have comment or be unexported (golint)
    • Line 173: warning: exported method DNSProvider.DeleteARecords should have comment or be unexported (golint)
    • Line 211: warning: exported method DNSProvider.DeleteARecord should have comment or be unexported (golint)
    • /gomodules.xyz/dns/linode/linode.go
    • Line 39: warning: exported type Options should have comment or be unexported (golint)
    • Line 45: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 56: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 95: warning: exported method DNSProvider.EnsureARecord should have comment or be unexported (golint)
    • Line 125: warning: exported method DNSProvider.DeleteARecords should have comment or be unexported (golint)
    • Line 151: warning: exported method DNSProvider.DeleteARecord should have comment or be unexported (golint)
    • /gomodules.xyz/dns/googlecloud/googlecloud.go
    • Line 27: warning: exported type Options should have comment or be unexported (golint)
    • Line 36: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 47: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 91: warning: exported method DNSProvider.EnsureARecord should have comment or be unexported (golint)
    • Line 143: warning: exported method DNSProvider.DeleteARecords should have comment or be unexported (golint)
    • Line 173: warning: exported method DNSProvider.DeleteARecord should have comment or be unexported (golint)
    • /gomodules.xyz/dns/azure/azure.go
    • Line 31: warning: exported type Options should have comment or be unexported (golint)
    • Line 39: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 50: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 66: warning: exported method DNSProvider.EnsureARecord should have comment or be unexported (golint)
    • Line 108: warning: exported method DNSProvider.DeleteARecords should have comment or be unexported (golint)
    • Line 131: warning: exported method DNSProvider.DeleteARecord should have comment or be unexported (golint)
    • /gomodules.xyz/dns/digitalocean/digitalocean.go
    • Line 25: warning: exported type Options should have comment or be unexported (golint)
    • Line 35: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 47: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 62: warning: exported method DNSProvider.EnsureARecord should have comment or be unexported (golint)
    • Line 98: warning: exported method DNSProvider.DeleteARecords should have comment or be unexported (golint)
    • Line 132: warning: exported method DNSProvider.DeleteARecord should have comment or be unexported (golint)
    • /gomodules.xyz/dns/vultr/vultr.go
    • Line 23: warning: exported type Options should have comment or be unexported (golint)
    • Line 29: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 40: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 54: warning: exported method DNSProvider.EnsureARecord should have comment or be unexported (golint)
    • Line 74: warning: exported method DNSProvider.DeleteARecords should have comment or be unexported (golint)
    • Line 96: warning: exported method DNSProvider.DeleteARecord should have comment or be unexported (golint)
    • /gomodules.xyz/dns/cloudflare/cloudflare.go
    • Line 21: warning: exported type Options should have comment or be unexported (golint)
    • Line 28: warning: comment on exported function Default should be of the form "Default ..." (golint)
    • Line 40: warning: comment on exported function New should be of the form "New ..." (golint)
    • Line 69: warning: exported method DNSProvider.EnsureARecord should have comment or be unexported (golint)
    • Line 95: warning: exported method DNSProvider.DeleteARecords should have comment or be unexported (golint)
    • Line 117: warning: exported method DNSProvider.DeleteARecord should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign94%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!