Preparing report...

Report for github.com/faetools/go-hubspot

(v0.0.0-20220123150112-1d3b2a369cbf)

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


golint98%

Golint is a linter for Go source code.

    • pkg/crm/contacts/types.go
    • Line 3: warning: exported type Contact should have comment or be unexported (golint)
    • Line 5: warning: exported type Contacts should have comment or be unexported (golint)

gocyclo84%

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.

    • pkg/crm/contacts/client.gen.go
    • Line 316: warning: cyclomatic complexity 30 of function newListContactsRequest() is high (> 15) (gocyclo)
    • Line 749: warning: cyclomatic complexity 26 of function newGetByIdContactRequest() is high (> 15) (gocyclo)
    • Line 908: warning: cyclomatic complexity 17 of function newGetAllToObjectTypeRequest() is high (> 15) (gocyclo)
    • pkg/crm/lineitems/client.gen.go
    • Line 292: warning: cyclomatic complexity 30 of function newListLineItemsRequest() is high (> 15) (gocyclo)
    • Line 685: warning: cyclomatic complexity 26 of function newGetByIdLineItemRequest() is high (> 15) (gocyclo)
    • Line 844: warning: cyclomatic complexity 17 of function newGetAllToObjectTypeRequest() is high (> 15) (gocyclo)
    • pkg/crm/products/client.gen.go
    • Line 292: warning: cyclomatic complexity 30 of function newListProductsRequest() is high (> 15) (gocyclo)
    • Line 685: warning: cyclomatic complexity 26 of function newGetByIdProductRequest() is high (> 15) (gocyclo)
    • Line 844: warning: cyclomatic complexity 17 of function newGetAllToObjectTypeRequest() is high (> 15) (gocyclo)
    • pkg/crm/companies/client.gen.go
    • Line 292: warning: cyclomatic complexity 30 of function newListCompaniesRequest() is high (> 15) (gocyclo)
    • Line 685: warning: cyclomatic complexity 26 of function newGetByIdCompanyRequest() is high (> 15) (gocyclo)
    • Line 844: warning: cyclomatic complexity 17 of function newGetAllToObjectTypeRequest() is high (> 15) (gocyclo)
    • pkg/crm/deals/client.gen.go
    • Line 292: warning: cyclomatic complexity 30 of function newListDealsRequest() is high (> 15) (gocyclo)
    • Line 685: warning: cyclomatic complexity 26 of function newGetByIdDealRequest() is high (> 15) (gocyclo)
    • Line 844: warning: cyclomatic complexity 17 of function newGetAllToObjectTypeRequest() is high (> 15) (gocyclo)
    • pkg/crm/owners/client.gen.go
    • Line 74: warning: cyclomatic complexity 25 of function newListRequest() is high (> 15) (gocyclo)
    • Line 161: warning: cyclomatic complexity 16 of function newGetByIdOwnerRequest() is high (> 15) (gocyclo)
    • pkg/crm/imports/client.gen.go
    • Line 111: warning: cyclomatic complexity 20 of function newListRequest() is high (> 15) (gocyclo)
    • Line 281: warning: cyclomatic complexity 16 of function newGetErrorsRequest() is high (> 15) (gocyclo)
    • pkg/crm/objects/client.gen.go
    • Line 316: warning: cyclomatic complexity 31 of function newListObjectTypeRequest() is high (> 15) (gocyclo)
    • Line 812: warning: cyclomatic complexity 27 of function newGetByIdObjectRequest() is high (> 15) (gocyclo)
    • Line 985: warning: cyclomatic complexity 18 of function newGetAllToObjectTypeRequest() is high (> 15) (gocyclo)
    • pkg/crm/quotes/client.gen.go
    • Line 136: warning: cyclomatic complexity 30 of function newListQuotesRequest() is high (> 15) (gocyclo)
    • Line 335: warning: cyclomatic complexity 26 of function newGetByIdQuoteRequest() is high (> 15) (gocyclo)
    • Line 429: warning: cyclomatic complexity 17 of function newGetAllToObjectTypeRequest() is high (> 15) (gocyclo)
    • pkg/crm/tickets/client.gen.go
    • Line 292: warning: cyclomatic complexity 30 of function newListTicketsRequest() is high (> 15) (gocyclo)
    • Line 685: warning: cyclomatic complexity 26 of function newGetByIdTicketRequest() is high (> 15) (gocyclo)
    • Line 844: warning: cyclomatic complexity 17 of function newGetAllToObjectTypeRequest() is high (> 15) (gocyclo)

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!


misspell98%

Misspell Finds commonly misspelled English words