Preparing report...

Report for gitlab.com/dominikstraessle/homelab-dns

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


golint33%

Golint is a linter for Go source code.

    • /gitlab.com/dominikstraessle/homelab-dns/cloudlfare_api.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type Client should have comment or be unexported (golint)
    • Line 14: warning: comment on exported method Client.GetARecords should be of the form "GetARecords ..." (golint)
    • Line 24: warning: comment on exported method Client.UpdateRecordContent should be of the form "UpdateRecordContent ..." (golint)
    • Line 51: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 58: warning: exported type CloudflareAPI should have comment or be unexported (golint)
    • /gitlab.com/dominikstraessle/homelab-dns/resolver.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 9: warning: exported type Lookup should have comment or be unexported (golint)
    • Line 13: warning: exported type LookupFunc should have comment or be unexported (golint)
    • Line 15: warning: exported method LookupFunc.LookupIP should have comment or be unexported (golint)
    • Line 19: warning: exported type Resolver should have comment or be unexported (golint)
    • Line 23: warning: exported function NewResolver should have comment or be unexported (golint)
    • Line 29: warning: comment on exported method Resolver.Resolve should be of the form "Resolve ..." (golint)
    • /gitlab.com/dominikstraessle/homelab-dns/testing.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 12: warning: exported type SpyApp should have comment or be unexported (golint)
    • Line 17: warning: exported method SpyApp.CheckAndUpdateRecords should have comment or be unexported (golint)
    • Line 22: warning: exported type SpyLookup should have comment or be unexported (golint)
    • Line 28: warning: exported method SpyLookup.LookupIP should have comment or be unexported (golint)
    • Line 33: warning: exported type SpyApi should have comment or be unexported (golint)
    • Line 41: warning: exported type ConcurrentSpyApi should have comment or be unexported (golint)
    • Line 49: warning: exported type GetApiCall should have comment or be unexported (golint)
    • Line 54: warning: exported type UpdateApiCall should have comment or be unexported (golint)
    • Line 60: warning: exported method SpyApi.DNSRecords should have comment or be unexported (golint)
    • Line 65: warning: exported method SpyApi.UpdateDNSRecord should have comment or be unexported (golint)
    • Line 75: warning: exported method ConcurrentSpyApi.DNSRecords should have comment or be unexported (golint)
    • Line 80: warning: exported method ConcurrentSpyApi.UpdateDNSRecord should have comment or be unexported (golint)
    • Line 90: warning: exported function AssertResponseBody should have comment or be unexported (golint)
    • Line 97: warning: exported function AssertStatus should have comment or be unexported (golint)
    • Line 104: warning: exported function NewPutCheckAndUpdateRequest should have comment or be unexported (golint)
    • /gitlab.com/dominikstraessle/homelab-dns/app.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 11: warning: exported type AppServer should have comment or be unexported (golint)
    • Line 26: warning: exported type App should have comment or be unexported (golint)
    • Line 30: warning: exported type DefaultApp should have comment or be unexported (golint)
    • Line 35: warning: comment on exported method DefaultApp.CheckAndUpdateRecords should be of the form "CheckAndUpdateRecords ..." (golint)
    • Line 78: warning: should replace errors.New(fmt.Sprintf(...)) with fmt.Errorf(...) (golint)
    • Line 83: warning: exported function NewDefaultApp should have comment or be unexported (golint)
    • Line 90: warning: exported function NewAppServer 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!