Preparing report...

Report for github.com/piclemx/sdk-go

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


golint50%

Golint is a linter for Go source code.

    • sdk-go/client/client.go
    • Line 25: warning: comment on exported type APIRequest should be of the form "APIRequest ..." (with optional leading article) (golint)
    • Line 32: warning: comment on exported method APIRequest.WithParam should be of the form "WithParam ..." (golint)
    • Line 69: warning: comment on exported function BaseAPIReq should be of the form "BaseAPIReq ..." (golint)
    • Line 75: warning: comment on exported method APIRequest.WithResource should be of the form "WithResource ..." (golint)
    • Line 76: warning: receiver name apiRep should be consistent with previous receiver name apiReq for APIRequest (golint)
    • sdk-go/discovery/parameters/parameters.go
    • Line 4: warning: comment on exported const Sort should be of the form "Sort ..." (golint)
    • Line 6: warning: comment on exported const Latlong should be of the form "Latlong ..." (golint)
    • Line 12: warning: comment on exported const StartDateTime should be of the form "StartDateTime ..." (golint)
    • Line 14: warning: comment on exported const EndDateTime should be of the form "EndDateTime ..." (golint)
    • Line 16: warning: comment on exported const OnsaleStartDateTime should be of the form "OnsaleStartDateTime ..." (golint)
    • Line 18: warning: comment on exported const OnsaleEndDateTime should be of the form "OnsaleEndDateTime ..." (golint)
    • Line 20: warning: comment on exported const CountryCode should be of the form "CountryCode ..." (golint)
    • Line 22: warning: comment on exported const StateCode should be of the form "StateCode ..." (golint)
    • Line 24: warning: comment on exported const VenueId should be of the form "VenueId ..." (golint)
    • Line 26: warning: comment on exported const AttractionId should be of the form "AttractionId ..." (golint)
    • Line 28: warning: comment on exported const SegmentId should be of the form "SegmentId ..." (golint)
    • Line 30: warning: comment on exported const SegmentName should be of the form "SegmentName ..." (golint)
    • Line 32: warning: comment on exported const ClassificationName should be of the form "ClassificationName ..." (golint)
    • Line 34: warning: comment on exported const ClassificationId should be of the form "ClassificationId ..." (golint)
    • Line 36: warning: comment on exported const MarketId should be of the form "MarketId ..." (golint)
    • Line 38: warning: comment on exported const PromoterId should be of the form "PromoterId ..." (golint)
    • Line 40: warning: comment on exported const DmaId should be of the form "DmaId ..." (golint)
    • Line 42: warning: comment on exported const IncludeTBA should be of the form "IncludeTBA ..." (golint)
    • Line 44: warning: comment on exported const IncludeTBD should be of the form "IncludeTBD ..." (golint)
    • Line 46: warning: comment on exported const ClientVisibility should be of the form "ClientVisibility ..." (golint)
    • Line 50: warning: comment on exported const Id should be of the form "Id ..." (golint)
    • Line 52: warning: comment on exported const Source should be of the form "Source ..." (golint)
    • Line 54: warning: comment on exported const IncludeTest should be of the form "IncludeTest ..." (golint)
    • Line 58: warning: comment on exported const Size should be of the form "Size ..." (golint)
    • Line 60: warning: comment on exported const Locale should be of the form "Locale ..." (golint)
    • sdk-go/discovery/domain/common.go
    • Line 3: warning: exported type Link should have comment or be unexported (golint)
    • Line 8: warning: exported type Links should have comment or be unexported (golint)
    • Line 14: warning: exported type Location should have comment or be unexported (golint)
    • Line 19: warning: exported type Image should have comment or be unexported (golint)
    • sdk-go/discovery/domain/event.go
    • Line 3: warning: exported type Event should have comment or be unexported (golint)
    • Line 20: warning: exported type Events should have comment or be unexported (golint)
    • Line 24: warning: exported type EventResponse should have comment or be unexported (golint)
    • sdk-go/discovery/events.go
    • Line 12: warning: comment on exported function BuildEventSearchReq should be of the form "BuildEventSearchReq ..." (golint)
    • Line 17: warning: comment on exported function BuildGetEventDetReq should be of the form "BuildGetEventDetReq ..." (golint)
    • Line 22: warning: comment on exported function BuildGetEventImgReq should be of the form "BuildGetEventImgReq ..." (golint)
    • Line 27: warning: comment on exported function CallForEvents should be of the form "CallForEvents ..." (golint)
    • Line 44: warning: comment on exported function CallForEvent should be of the form "CallForEvent ..." (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!