Preparing report...

Report for github.com/czerwonk/dns-drain

A+    Excellent!    Found 9 issues across 13 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!


golint30%

Golint is a linter for Go source code.

    • dns-drain/changelog/file_change_log.go
    • Line 8: warning: exported type FileChangeLog should have comment or be unexported (golint)
    • Line 12: warning: exported function NewFileChangeLog should have comment or be unexported (golint)
    • Line 16: warning: exported method FileChangeLog.GetChanges should have comment or be unexported (golint)
    • dns-drain/changelog/dns_change_set.go
    • Line 4: warning: exported const Add should have comment (or a comment on this block) or be unexported (golint)
    • Line 8: warning: exported type DnsChangeSet should have comment or be unexported (golint)
    • Line 12: warning: exported type DnsChange should have comment or be unexported (golint)
    • Line 21: warning: exported method DnsChangeSet.GroupByZone should have comment or be unexported (golint)
    • dns-drain/changelog/file_change_logger.go
    • Line 10: warning: exported type FileChangeLogger should have comment or be unexported (golint)
    • Line 16: warning: exported function NewFileChangeLogger should have comment or be unexported (golint)
    • Line 25: warning: exported method FileChangeLogger.LogChange should have comment or be unexported (golint)
    • Line 34: warning: exported method FileChangeLogger.Flush should have comment or be unexported (golint)
    • Line 57: warning: exported method FileChangeLogger.Close should have comment or be unexported (golint)
    • dns-drain/gcloud/drainer.go
    • Line 19: warning: exported type GoogleDnsDrainer should have comment or be unexported (golint)
    • Line 32: warning: exported type DrainFilter should have comment or be unexported (golint)
    • Line 34: warning: exported function NewDrainer should have comment or be unexported (golint)
    • Line 40: warning: exported method GoogleDnsDrainer.DrainWithIpNet should have comment or be unexported (golint)
    • Line 53: warning: exported method GoogleDnsDrainer.DrainWithValue should have comment or be unexported (golint)
    • Line 61: warning: exported method GoogleDnsDrainer.DrainWithRegex should have comment or be unexported (golint)
    • dns-drain/gcloud/undrainer.go
    • Line 18: warning: exported type GoogleDnsUndrainer should have comment or be unexported (golint)
    • Line 33: warning: exported function NewUndrainer should have comment or be unexported (golint)
    • Line 37: warning: exported method GoogleDnsUndrainer.Undrain should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


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!