Preparing report...

Report for github.com/markdingo/autoreverse

(v1.3.0)

A+    Excellent!    Found 14 issues across 97 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!


gocyclo87%

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.

    • chaos_test.go
    • Line 15: warning: cyclomatic complexity 16 of function TestDNSChaos() is high (> 15) (gocyclo)
    • validate.go
    • Line 15: warning: cyclomatic complexity 30 of function (*autoReverse).ValidateCommandLineOptions() is high (> 15) (gocyclo)
    • stats_test.go
    • Line 29: warning: cyclomatic complexity 30 of function TestStatsGeneral() is high (> 15) (gocyclo)
    • dns.go
    • Line 44: warning: cyclomatic complexity 46 of function (*server).ServeDNS() is high (> 15) (gocyclo)
    • dns_test.go
    • Line 502: warning: cyclomatic complexity 45 of function TestDNSAuthorityLookups() is high (> 15) (gocyclo)
    • loadzones.go
    • Line 21: warning: cyclomatic complexity 16 of function newPTRZoneFromURL() is high (> 15) (gocyclo)

golint96%

Golint is a linter for Go source code.

    • manpage.go
    • Line 7: warning: comment on exported var Manpage should be of the form "Manpage ..." (golint)
    • dnsutil/consts.go
    • Line 4: warning: exported const V4Suffix should have comment (or a comment on this block) or be unexported (golint)
    • dns.go
    • Line 22: warning: exported const NoError should have comment (or a comment on this block) 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!