Preparing report...

Report for github.com/captainGeech42/hotline

(v0.0.0-20211223165124-0b4b82d78d8c)

A+    Excellent!    Found 16 issues across 23 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.

    • cmd/client.go
    • Line 10: warning: exported var CallbackName should have comment or be unexported (golint)
    • Line 20: warning: exported var ClientCommand should have comment or be unexported (golint)
    • cmd/server.go
    • Line 18: warning: exported var ServerCommand should have comment or be unexported (golint)
    • internal/web/schema/schema.go
    • Line 5: warning: exported type Response should have comment or be unexported (golint)
    • Line 10: warning: comment on exported type NewCallbackRequest should be of the form "NewCallbackRequest ..." (with optional leading article) (golint)
    • Line 15: warning: comment on exported type NewCallbackResponse should be of the form "NewCallbackResponse ..." (with optional leading article) (golint)
    • Line 23: warning: comment on exported type GetCbRequestsRequest should be of the form "GetCbRequestsRequest ..." (with optional leading article) (golint)
    • Line 38: warning: comment on exported type GetCbRequestsResponse should be of the form "GetCbRequestsResponse ..." (with optional leading article) (golint)
    • Line 46: warning: exported type CbRequest should have comment or be unexported (golint)
    • Line 54: warning: exported type CbDnsRequest should have comment or be unexported (golint)
    • Line 64: warning: exported type CbHttpRequest should have comment or be unexported (golint)
    • internal/config/types.go
    • Line 3: warning: exported type Http should have comment or be unexported (golint)
    • Line 8: warning: exported type Dns should have comment or be unexported (golint)
    • Line 14: warning: exported type Callback should have comment or be unexported (golint)
    • Line 20: warning: exported type Web should have comment or be unexported (golint)
    • Line 24: warning: exported type Database should have comment or be unexported (golint)
    • Line 32: warning: exported type Server should have comment or be unexported (golint)
    • Line 38: warning: exported type Client should have comment or be unexported (golint)
    • Line 42: warning: exported type Config should have comment or be unexported (golint)
    • cmd/root.go
    • Line 17: warning: exported function Execute should have comment or be unexported (golint)
    • internal/db/models.go
    • Line 5: warning: exported type Callback should have comment or be unexported (golint)
    • Line 10: warning: exported type HttpRequest should have comment or be unexported (golint)
    • Line 22: warning: exported type DnsRequest should have comment or be unexported (golint)
    • internal/db/actions.go
    • Line 8: warning: exported function GetCallback should have comment or be unexported (golint)
    • Line 23: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 28: warning: exported function CreateCallback should have comment or be unexported (golint)
    • Line 45: warning: exported function AddDnsRequest should have comment or be unexported (golint)
    • Line 68: warning: comment on exported function AddHttpRequest should be of the form "AddHttpRequest ..." (golint)
    • Line 92: warning: exported function GetHttpRequests should have comment or be unexported (golint)
    • Line 110: warning: exported function GetDnsRequests should have comment or be unexported (golint)
    • internal/web/backend/requests.go
    • Line 63: warning: exported function ConvertDnsDbToJson should have comment or be unexported (golint)
    • Line 83: warning: exported function ConvertHttpDbToJson should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign95%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!