Preparing report...

Report for github.com/minus5/go-uof-sdk

A+    Excellent!    Found 30 issues across 47 files

Tweet

gofmt97%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command


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!


gocyclo93%

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.


golint40%

Golint is a linter for Go source code.

    • go-uof-sdk/producers_change.go
    • Line 3: warning: exported type ProducersChange should have comment or be unexported (golint)
    • Line 5: warning: exported type ProducerChange should have comment or be unexported (golint)
    • Line 12: warning: exported method ProducersChange.Add should have comment or be unexported (golint)
    • Line 16: warning: exported type ProducerStatus should have comment or be unexported (golint)
    • Line 19: warning: exported const ProducerStatusDown should have comment (or a comment on this block) or be unexported (golint)
    • go-uof-sdk/error.go
    • Line 5: warning: comment on exported type Error should be of the form "Error ..." (with optional leading article) (golint)
    • Line 30: warning: exported type APIError should have comment or be unexported (golint)
    • Line 56: warning: exported function E should have comment or be unexported (golint)
    • Line 64: warning: exported function Notice should have comment or be unexported (golint)
    • Line 72: warning: exported type ErrorSeverity should have comment or be unexported (golint)
    • Line 75: warning: exported const LogSeverity should have comment (or a comment on this block) or be unexported (golint)
    • go-uof-sdk/lang.go
    • Line 5: warning: exported type Lang should have comment or be unexported (golint)
    • Line 59: warning: exported const LangNone should have comment (or a comment on this block) or be unexported (golint)
    • Line 134: warning: exported method Lang.Code should have comment or be unexported (golint)
    • Line 143: warning: exported method Lang.Name should have comment or be unexported (golint)
    • go-uof-sdk/player.go
    • Line 8: warning: exported type PlayerProfile should have comment or be unexported (golint)
    • Line 13: warning: exported type Player should have comment or be unexported (golint)
    • Line 28: warning: exported method Player.UnmarshalXML should have comment or be unexported (golint)
    • go-uof-sdk/fixture.go
    • Line 9: warning: exported type FixtureRsp should have comment or be unexported (golint)
    • Line 14: warning: comment on exported type Fixture should be of the form "Fixture ..." (with optional leading article) (golint)
    • Line 58: warning: exported type Tournament should have comment or be unexported (golint)
    • Line 63: warning: exported type Sport should have comment or be unexported (golint)
    • Line 68: warning: exported type Category should have comment or be unexported (golint)
    • Line 74: warning: exported type Competitor should have comment or be unexported (golint)
    • Line 86: warning: exported type CompetitorPlayer should have comment or be unexported (golint)
    • Line 93: warning: exported type Venue should have comment or be unexported (golint)
    • Line 103: warning: exported type TvChannel should have comment or be unexported (golint)
    • Line 109: warning: exported type StreamingChannel should have comment or be unexported (golint)
    • Line 113: warning: exported type ProductInfoLink should have comment or be unexported (golint)
    • Line 118: warning: exported type Round should have comment or be unexported (golint)
    • Line 131: warning: exported type Season should have comment or be unexported (golint)
    • Line 158: warning: exported type ProductInfo should have comment or be unexported (golint)
    • Line 184: warning: exported method Fixture.UnmarshalXML should have comment or be unexported (golint)
    • Line 219: warning: exported method Sport.UnmarshalXML should have comment or be unexported (golint)
    • Line 233: warning: exported method Category.UnmarshalXML should have comment or be unexported (golint)
    • Line 247: warning: exported method Season.UnmarshalXML should have comment or be unexported (golint)
    • Line 261: warning: exported method Venue.UnmarshalXML should have comment or be unexported (golint)
    • Line 275: warning: exported method Competitor.UnmarshalXML should have comment or be unexported (golint)
    • Line 289: warning: exported method CompetitorPlayer.UnmarshalXML should have comment or be unexported (golint)
    • go-uof-sdk/market.go
    • Line 8: warning: comment on exported type MarketsRsp should be of the form "MarketsRsp ..." (with optional leading article) (golint)
    • Line 16: warning: exported type MarketDescriptions should have comment or be unexported (golint)
    • Line 18: warning: exported method MarketDescriptions.Find should have comment or be unexported (golint)
    • Line 27: warning: exported method MarketDescriptions.Groups should have comment or be unexported (golint)
    • Line 39: warning: exported type MarketDescription should have comment or be unexported (golint)
    • Line 54: warning: exported type MarketOutcome should have comment or be unexported (golint)
    • Line 60: warning: exported type MarketSpecifier should have comment or be unexported (golint)
    • Line 66: warning: exported type MarketAttribute should have comment or be unexported (golint)
    • Line 88: warning: exported method MarketDescription.UnmarshalXML should have comment or be unexported (golint)
    • Line 105: warning: exported method MarketOutcome.UnmarshalXML should have comment or be unexported (golint)
    • Line 119: warning: exported method MarketSpecifier.UnmarshalXML should have comment or be unexported (golint)
    • go-uof-sdk/sport_event_status.go
    • Line 3: warning: comment on exported type SportEventStatus should be of the form "SportEventStatus ..." (with optional leading article) (golint)
    • Line 72: warning: comment on exported type Clock should be of the form "Clock ..." (with optional leading article) (golint)
    • Line 94: warning: exported type PeriodScore should have comment or be unexported (golint)
    • Line 109: warning: exported type Result should have comment or be unexported (golint)
    • Line 115: warning: exported type Statistics should have comment or be unexported (golint)
    • Line 122: warning: exported type StatisticsScore should have comment or be unexported (golint)
    • go-uof-sdk/pipe/store.go
    • Line 14: warning: exported function InnerFileStore should have comment or be unexported (golint)
    • Line 32: warning: exported function FileStore should have comment or be unexported (golint)
    • go-uof-sdk/bet_stop.go
    • Line 7: warning: comment on exported type BetStop should be of the form "BetStop ..." (with optional leading article) (golint)
    • Line 29: warning: exported method BetStop.UnmarshalXML should have comment or be unexported (golint)
    • go-uof-sdk/fixture_change.go
    • Line 8: warning: comment on exported type FixtureChange should be of the form "FixtureChange ..." (with optional leading article) (golint)
    • Line 29: warning: exported method FixtureChange.UnmarshalXML should have comment or be unexported (golint)
    • Line 42: warning: exported method FixtureChange.Schedule should have comment or be unexported (golint)
    • go-uof-sdk/bet_cancel.go
    • Line 5: warning: comment on exported type BetCancel should be of the form "BetCancel ..." (with optional leading article) (golint)
    • Line 26: warning: exported type BetCancelMarket should have comment or be unexported (golint)
    • Line 32: warning: comment on exported type RollbackBetCancel should be of the form "RollbackBetCancel ..." (with optional leading article) (golint)
    • Line 47: warning: comment on exported method BetCancel.UnmarshalXML should be of the form "UnmarshalXML ..." (golint)
    • Line 61: warning: comment on exported method BetCancelMarket.UnmarshalXML should be of the form "UnmarshalXML ..." (golint)
    • Line 77: warning: comment on exported method RollbackBetCancel.UnmarshalXML should be of the form "UnmarshalXML ..." (golint)
    • go-uof-sdk/bet_settlement.go
    • Line 5: warning: exported type BetSettlement should have comment or be unexported (golint)
    • Line 18: warning: exported type BetSettlementMarket should have comment or be unexported (golint)
    • Line 31: warning: exported type BetSettlementOutcome should have comment or be unexported (golint)
    • Line 38: warning: exported type RollbackBetSettlement should have comment or be unexported (golint)
    • Line 47: warning: exported method BetSettlement.UnmarshalXML should have comment or be unexported (golint)
    • Line 60: warning: exported method RollbackBetSettlement.UnmarshalXML should have comment or be unexported (golint)
    • Line 73: warning: exported method BetSettlementMarket.UnmarshalXML should have comment or be unexported (golint)
    • Line 89: warning: exported method BetSettlementOutcome.UnmarshalXML should have comment or be unexported (golint)
    • go-uof-sdk/enum.go
    • Line 10: warning: exported type Producer should have comment or be unexported (golint)
    • Line 13: warning: exported const ProducerUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 44: warning: exported method Producer.Name should have comment or be unexported (golint)
    • Line 53: warning: exported method Producer.Description should have comment or be unexported (golint)
    • Line 62: warning: exported method Producer.Code should have comment or be unexported (golint)
    • Line 88: warning: exported const InvalidName should have comment (or a comment on this block) or be unexported (golint)
    • Line 93: warning: exported type URN should have comment or be unexported (golint)
    • Line 95: warning: exported method URN.ID should have comment or be unexported (golint)
    • Line 149: warning: exported method URN.Empty should have comment or be unexported (golint)
    • Line 153: warning: exported function NewEventURN should have comment or be unexported (golint)
    • Line 161: warning: exported method URN.Parse should have comment or be unexported (golint)
    • Line 169: warning: exported const NoURN should have comment or be unexported (golint)
    • Line 267: warning: exported function Hash should have comment or be unexported (golint)
    • Line 271: warning: exported type EventReporting should have comment or be unexported (golint)
    • Line 274: warning: exported const EventReportingNotAvailable should have comment (or a comment on this block) or be unexported (golint)
    • Line 279: warning: comment on exported type ClockTime should be of the form "ClockTime ..." (with optional leading article) (golint)
    • Line 282: warning: exported method ClockTime.Minute should have comment or be unexported (golint)
    • Line 294: warning: exported method ClockTime.PtrVal should have comment or be unexported (golint)
    • Line 302: warning: comment on exported type FixtureChangeType should be of the form "FixtureChangeType ..." (with optional leading article) (golint)
    • Line 311: warning: comment on exported const FixtureChangeTypeNew should be of the form "FixtureChangeTypeNew ..." (golint)
    • Line 313: warning: comment on exported const FixtureChangeTypeTime should be of the form "FixtureChangeTypeTime ..." (golint)
    • Line 315: warning: comment on exported const FixtureChangeTypeCancelled should be of the form "FixtureChangeTypeCancelled ..." (golint)
    • Line 317: warning: comment on exported const FixtureChangeTypeFromat should be of the form "FixtureChangeTypeFromat ..." (golint)
    • Line 320: warning: comment on exported const FixtureChangeTypeCoverage should be of the form "FixtureChangeTypeCoverage ..." (golint)
    • Line 325: warning: exported type MessageType should have comment or be unexported (golint)
    • Line 328: warning: exported const MessageTypeUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 399: warning: exported method MessageType.Parse should have comment or be unexported (golint)
    • Line 419: warning: exported method MessageType.Kind should have comment or be unexported (golint)
    • Line 429: warning: exported type MessageKind should have comment or be unexported (golint)
    • Line 432: warning: exported const MessageKindEvent should have comment (or a comment on this block) or be unexported (golint)
    • Line 437: warning: exported type MessageScope should have comment or be unexported (golint)
    • Line 448: warning: exported method MessageScope.Parse should have comment or be unexported (golint)
    • Line 467: warning: exported type MessagePriority should have comment or be unexported (golint)
    • Line 470: warning: exported const MessagePriorityLow should have comment (or a comment on this block) or be unexported (golint)
    • Line 474: warning: exported method MessagePriority.Parse should have comment or be unexported (golint)
    • Line 486: warning: exported type Environment should have comment or be unexported (golint)
    • Line 489: warning: exported const Production should have comment (or a comment on this block) or be unexported (golint)
    • go-uof-sdk/api/api.go
    • Line 22: warning: exported var RequestTimeout should have comment or be unexported (golint)
    • Line 24: warning: exported type API should have comment or be unexported (golint)
    • Line 70: warning: exported method API.RequestRecovery should have comment or be unexported (golint)
    • Line 102: warning: exported method API.Ping should have comment or be unexported (golint)
    • go-uof-sdk/pipe/pipe.go
    • Line 10: warning: comment on exported const ConcurentAPICallsLimit should be of the form "ConcurentAPICallsLimit ..." (golint)
    • Line 30: warning: exported type InnerStage should have comment or be unexported (golint)
    • Line 31: warning: exported type ConsumerStage should have comment or be unexported (golint)
    • Line 35: warning: exported function Build should have comment or be unexported (golint)
    • Line 92: warning: exported function Consumer should have comment or be unexported (golint)
    • Line 96: warning: exported function BufferedConsumer should have comment or be unexported (golint)
    • Line 126: warning: exported function Stage should have comment or be unexported (golint)
    • Line 144: warning: exported function StageWithSubProcesses should have comment or be unexported (golint)
    • Line 200: warning: exported function StageWithSubProcessesSync should have comment or be unexported (golint)
    • Line 219: warning: exported function Simple should have comment or be unexported (golint)
    • go-uof-sdk/internal.go
    • Line 3: warning: exported type Connection should have comment or be unexported (golint)
    • Line 8: warning: exported type ConnectionStatus should have comment or be unexported (golint)
    • Line 11: warning: exported const ConnectionStatusUp should have comment (or a comment on this block) or be unexported (golint)
    • go-uof-sdk/queue/queue.go
    • Line 3: warning: package comment should be of the form "Package queue ..." (golint)
    • Line 39: warning: comment on exported function DialProduction should be of the form "DialProduction ..." (golint)
    • Line 54: warning: exported type Connection should have comment or be unexported (golint)
    • Line 60: warning: exported method Connection.Listen should have comment or be unexported (golint)
    • go-uof-sdk/api/replay.go
    • Line 30: warning: exported type ReplayAPI should have comment or be unexported (golint)
    • Line 34: warning: comment on exported method ReplayAPI.StartScenario should be of the form "StartScenario ..." (golint)
    • Line 59: warning: comment on exported method ReplayAPI.Add should be of the form "Add ..." (golint)
    • Line 64: warning: comment on exported method ReplayAPI.Play should be of the form "Play ..." (golint)
    • Line 83: warning: comment on exported method ReplayAPI.Reset should be of the form "Reset ..." (golint)
    • go-uof-sdk/odds_change.go
    • Line 33: warning: comment on exported type OddsGenerationProperties should be of the form "OddsGenerationProperties ..." (with optional leading article) (golint)
    • Line 66: warning: exported type MarketMetadata should have comment or be unexported (golint)
    • Line 70: warning: exported type Outcome should have comment or be unexported (golint)
    • Line 79: warning: comment on exported method OddsChange.UnmarshalXML should be of the form "UnmarshalXML ..." (golint)
    • Line 103: warning: comment on exported method Market.UnmarshalXML should be of the form "UnmarshalXML ..." (golint)
    • Line 136: warning: exported method Outcome.UnmarshalXML should have comment or be unexported (golint)
    • Line 151: warning: exported method Market.VariantSpecifier should have comment or be unexported (golint)
    • Line 199: warning: exported method OddsChange.EachPlayer should have comment or be unexported (golint)
    • Line 221: warning: exported method OddsChange.EachVariantMarket should have comment or be unexported (golint)
    • go-uof-sdk/api/sports.go
    • Line 25: warning: exported method API.MarketVariant should have comment or be unexported (golint)
    • Line 39: warning: exported method API.Player should have comment or be unexported (golint)
    • go-uof-sdk/enums.go
    • Line 3: warning: comment on exported type MarketStatus should be of the form "MarketStatus ..." (with optional leading article) (golint)
    • Line 47: warning: exported method MarketStatus.Val should have comment or be unexported (golint)
    • Line 51: warning: exported method MarketStatus.PtrVal should have comment or be unexported (golint)
    • Line 59: warning: exported type CashoutStatus should have comment or be unexported (golint)
    • Line 62: warning: comment on exported const CashoutStatusAvailable should be of the form "CashoutStatusAvailable ..." (golint)
    • Line 64: warning: comment on exported const CashoutStatusUnavailable should be of the form "CashoutStatusUnavailable ..." (golint)
    • Line 66: warning: comment on exported const CashoutStatusClosed should be of the form "CashoutStatusClosed ..." (golint)
    • Line 70: warning: exported method CashoutStatus.PtrVal should have comment or be unexported (golint)
    • Line 78: warning: exported type Team should have comment or be unexported (golint)
    • Line 81: warning: exported const TeamHome should have comment (or a comment on this block) or be unexported (golint)
    • Line 85: warning: exported method Team.PtrVal should have comment or be unexported (golint)
    • Line 93: warning: exported type EventStatus should have comment or be unexported (golint)
    • Line 96: warning: exported const EventStatusNotStarted should have comment (or a comment on this block) or be unexported (golint)
    • Line 101: warning: comment on exported const EventStatusCancelled should be of the form "EventStatusCancelled ..." (golint)
    • Line 111: warning: exported method EventStatus.Val should have comment or be unexported (golint)
    • Line 115: warning: exported method EventStatus.PtrVal should have comment or be unexported (golint)
    • Line 123: warning: exported type OutcomeResult should have comment or be unexported (golint)
    • Line 126: warning: exported const OutcomeResultUnknown should have comment (or a comment on this block) or be unexported (golint)
    • Line 135: warning: exported type OutcomeType should have comment or be unexported (golint)
    • Line 138: warning: exported const OutcomeTypeDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 146: warning: exported type SpecifierType should have comment or be unexported (golint)
    • Line 149: warning: exported const SpecifierTypeString should have comment (or a comment on this block) or be unexported (golint)
    • Line 156: warning: exported type Gender should have comment or be unexported (golint)
    • Line 159: warning: exported const GenderUnknown should have comment (or a comment on this block) or be unexported (golint)
    • go-uof-sdk/message.go
    • Line 14: warning: exported type Header should have comment or be unexported (golint)
    • Line 28: warning: exported type Body should have comment or be unexported (golint)
    • Line 49: warning: exported type Message should have comment or be unexported (golint)
    • Line 82: warning: exported function NewQueueMessage should have comment or be unexported (golint)
    • Line 218: warning: exported function NewAPIMessage should have comment or be unexported (golint)
    • Line 233: warning: exported function NewMarketsMessage should have comment or be unexported (golint)
    • Line 246: warning: exported function NewPlayerMessage should have comment or be unexported (golint)
    • Line 258: warning: exported function NewConnnectionMessage should have comment or be unexported (golint)
    • Line 275: warning: exported function NewProducersChangeMessage should have comment or be unexported (golint)
    • Line 286: warning: exported function NewFixtureMessage should have comment or be unexported (golint)
    • Line 322: warning: exported method Message.NewFixtureMessage should have comment or be unexported (golint)
    • Line 334: warning: exported method Message.Marshal should have comment or be unexported (golint)
    • Line 344: warning: exported method Message.Unmarshal should have comment or be unexported (golint)
    • Line 372: warning: exported function UIDWithLang should have comment or be unexported (golint)
    • Line 379: warning: exported method Message.Is should have comment or be unexported (golint)

license100%

Checks whether your project has a LICENSE file.

No problems detected. Good job!


ineffassign97%

IneffAssign detects ineffectual assignments in Go code.


misspell100%

Misspell Finds commonly misspelled English words

No problems detected. Good job!