Preparing report...

Report for github.com/jimsmart/chapi

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


golint57%

Golint is a linter for Go source code.

    • chapi/ch/resources.go
    • Line 8: warning: exported type ErrorResource should have comment or be unexported (golint)
    • Line 18: warning: exported type CompanyProfileResource should have comment or be unexported (golint)
    • Line 125: warning: exported type RegisteredOfficeAddressResource should have comment or be unexported (golint)
    • Line 138: warning: exported type OfficerListResource should have comment or be unexported (golint)
    • Line 193: warning: exported type FilingHistoryListResource should have comment or be unexported (golint)
    • Line 203: warning: exported type FilingHistoryItemResource should have comment or be unexported (golint)
    • Line 237: warning: exported type CompanyInsolvencyResource should have comment or be unexported (golint)
    • Line 263: warning: exported type ChargeListResource should have comment or be unexported (golint)
    • Line 272: warning: exported type ChargeDetailsResource should have comment or be unexported (golint)
    • Line 333: warning: exported type AppointmentListResource should have comment or be unexported (golint)
    • Line 398: warning: exported type NaturalDisqualificationResource should have comment or be unexported (golint)
    • Line 450: warning: exported type CorporateDisqualificationResource should have comment or be unexported (golint)
    • Line 498: warning: exported type CompanyUKEstablishmentsResource should have comment or be unexported (golint)
    • Line 515: warning: exported type PSCListResource should have comment or be unexported (golint)
    • Line 565: warning: exported type PSCIndividualResource should have comment or be unexported (golint)
    • Line 602: warning: exported type PSCCorporateEntityResource should have comment or be unexported (golint)
    • Line 633: warning: exported type PSCLegalPersonResource should have comment or be unexported (golint)
    • Line 661: warning: exported type PSCStatementListResource should have comment or be unexported (golint)
    • Line 676: warning: exported type PSCStatementResource should have comment or be unexported (golint)
    • Line 690: warning: exported type PSCSuperSecureResource should have comment or be unexported (golint)
    • Line 700: warning: exported type CompanyRegisterResource should have comment or be unexported (golint)
    • Line 802: warning: exported type CompanyExemptionsResource should have comment or be unexported (golint)
    • Line 832: warning: exported type DocumentMetadataResource should have comment or be unexported (golint)
    • Line 845: warning: exported type ResourceMetadata should have comment or be unexported (golint)
    • Line 859: warning: exported type SearchResource should have comment or be unexported (golint)
    • Line 894: warning: exported type CompanySearchResource should have comment or be unexported (golint)
    • Line 933: warning: exported type OfficerSearchResource should have comment or be unexported (golint)
    • Line 974: warning: exported type DisqualifiedOfficerSearchResource should have comment or be unexported (golint)
    • chapi/client.go
    • Line 221: warning: exported method Client.CompanyCharges should have comment or be unexported (golint)
    • Line 231: warning: exported method Client.CompanyCharge should have comment or be unexported (golint)
    • Line 241: warning: exported method Client.OfficerAppointments should have comment or be unexported (golint)
    • Line 251: warning: exported method Client.OfficerNaturalDisqualifications should have comment or be unexported (golint)
    • Line 261: warning: exported method Client.OfficerCorporateDisqualifications should have comment or be unexported (golint)
    • Line 271: warning: exported method Client.CompanyUKEstablishments should have comment or be unexported (golint)
    • Line 281: warning: exported method Client.PSCs should have comment or be unexported (golint)
    • Line 291: warning: exported method Client.PSCIndividual should have comment or be unexported (golint)
    • Line 301: warning: exported method Client.PSCCorporateEntity should have comment or be unexported (golint)
    • Line 311: warning: exported method Client.PSCLegalPerson should have comment or be unexported (golint)
    • Line 321: warning: exported method Client.PSCStatements should have comment or be unexported (golint)
    • Line 331: warning: exported method Client.PSCStatement should have comment or be unexported (golint)
    • Line 341: warning: exported method Client.PSCSuperSecure should have comment or be unexported (golint)
    • Line 351: warning: exported method Client.CompanyRegisters should have comment or be unexported (golint)
    • Line 361: warning: exported method Client.CompanyExemptions should have comment or be unexported (golint)
    • Line 371: warning: exported method Client.DocumentMetadata should have comment or be unexported (golint)
    • Line 381: warning: exported method Client.DocumentContent should have comment or be unexported (golint)
    • chapi/restclient.go
    • Line 15: warning: exported var APIKey should have comment or be unexported (golint)
    • Line 81: warning: exported method RESTClient.Search should have comment or be unexported (golint)
    • Line 86: warning: exported method RESTClient.SearchCompanies should have comment or be unexported (golint)
    • Line 91: warning: exported method RESTClient.SearchOfficers should have comment or be unexported (golint)
    • Line 96: warning: exported method RESTClient.SearchDisqualifiedOfficers should have comment or be unexported (golint)
    • Line 101: warning: exported method RESTClient.CompanyProfile should have comment or be unexported (golint)
    • Line 105: warning: exported method RESTClient.CompanyRegisteredOfficeAddress should have comment or be unexported (golint)
    • Line 109: warning: exported method RESTClient.CompanyOfficers should have comment or be unexported (golint)
    • Line 121: warning: exported method RESTClient.CompanyFilingHistory should have comment or be unexported (golint)
    • Line 129: warning: exported method RESTClient.CompanyFilingHistoryTransaction should have comment or be unexported (golint)
    • Line 133: warning: exported method RESTClient.CompanyInsolvency should have comment or be unexported (golint)
    • Line 137: warning: exported method RESTClient.CompanyCharges should have comment or be unexported (golint)
    • Line 142: warning: exported method RESTClient.CompanyCharge should have comment or be unexported (golint)
    • Line 146: warning: exported method RESTClient.OfficerAppointments should have comment or be unexported (golint)
    • Line 151: warning: exported method RESTClient.OfficerNaturalDisqualifications should have comment or be unexported (golint)
    • Line 155: warning: exported method RESTClient.OfficerCorporateDisqualifications should have comment or be unexported (golint)
    • Line 159: warning: exported method RESTClient.CompanyUKEstablishments should have comment or be unexported (golint)
    • Line 163: warning: exported method RESTClient.PSCs should have comment or be unexported (golint)
    • Line 171: warning: exported method RESTClient.PSCIndividual should have comment or be unexported (golint)
    • Line 175: warning: exported method RESTClient.PSCCorporateEntity should have comment or be unexported (golint)
    • Line 179: warning: exported method RESTClient.PSCLegalPerson should have comment or be unexported (golint)
    • Line 183: warning: exported method RESTClient.PSCStatements should have comment or be unexported (golint)
    • Line 191: warning: exported method RESTClient.PSCStatement should have comment or be unexported (golint)
    • Line 195: warning: exported method RESTClient.PSCSuperSecure should have comment or be unexported (golint)
    • Line 199: warning: exported method RESTClient.CompanyRegisters should have comment or be unexported (golint)
    • Line 203: warning: exported method RESTClient.CompanyExemptions should have comment or be unexported (golint)
    • Line 207: warning: exported method RESTClient.DocumentMetadata should have comment or be unexported (golint)
    • Line 211: warning: exported method RESTClient.DocumentContent 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!