Preparing report...

Report for github.com/wneessen/sotbot

A    Great!    Found 62 issues across 74 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!


gocyclo95%

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.


golint18%

Golint is a linter for Go source code.

    • sotbot/httpclient/httpclient.go
    • Line 15: warning: exported function NewHttpClient should have comment or be unexported (golint)
    • Line 35: warning: comment on exported function HttpReqGet should be of the form "HttpReqGet ..." (golint)
    • sotbot/api/sot_dailydeed.go
    • Line 13: warning: exported type EventApiResponse should have comment or be unexported (golint)
    • Line 17: warning: exported type EventData should have comment or be unexported (golint)
    • Line 21: warning: exported type EventDataComponent should have comment or be unexported (golint)
    • Line 25: warning: exported type EventDataComponentData should have comment or be unexported (golint)
    • Line 29: warning: exported type BountyListApi should have comment or be unexported (golint)
    • Line 41: warning: exported type BountyList should have comment or be unexported (golint)
    • Line 53: warning: exported type DailyDeedImg should have comment or be unexported (golint)
    • Line 57: warning: exported function GetDailyDeed should have comment or be unexported (golint)
    • sotbot/version/version.go
    • Line 3: warning: exported var BuildUser should have comment or be unexported (golint)
    • Line 4: warning: exported var Version should have comment or be unexported (golint)
    • Line 5: warning: exported var BuildDate should have comment or be unexported (golint)
    • Line 6: warning: exported var BuildOs should have comment or be unexported (golint)
    • Line 7: warning: exported var BuildArch should have comment or be unexported (golint)
    • sotbot/database/cache.go
    • Line 8: warning: exported function StoreBotCache should have comment or be unexported (golint)
    • Line 32: warning: exported function ReadBotCache should have comment or be unexported (golint)
    • sotbot/database/models/sot.go
    • Line 3: warning: exported type SotBalance should have comment or be unexported (golint)
    • Line 13: warning: exported type SotBalanceHistory should have comment or be unexported (golint)
    • sotbot/api/sot_stats.go
    • Line 10: warning: exported type UserStats should have comment or be unexported (golint)
    • Line 18: warning: exported type ApiOverview should have comment or be unexported (golint)
    • Line 22: warning: exported function GetStats should have comment or be unexported (golint)
    • sotbot/api/sot_reputation.go
    • Line 11: warning: exported type Factions should have comment or be unexported (golint)
    • Line 22: warning: exported type FactionReputation should have comment or be unexported (golint)
    • Line 31: warning: exported type FactionNextLevel should have comment or be unexported (golint)
    • Line 36: warning: exported function GetFactionReputation should have comment or be unexported (golint)
    • sotbot/handler/sot_code.go
    • Line 10: warning: exported type SotCodeArticle should have comment or be unexported (golint)
    • Line 16: warning: comment on exported function GetSotRandomCode should be of the form "GetSotRandomCode ..." (golint)
    • sotbot/handler/user_mgmt.go
    • Line 9: warning: comment on exported function RegisterUser should be of the form "RegisterUser ..." (golint)
    • Line 23: warning: comment on exported function UnregisterUser should be of the form "UnregisterUser ..." (golint)
    • sotbot/api/sot_season.go
    • Line 10: warning: exported type SeasonProgress should have comment or be unexported (golint)
    • Line 18: warning: exported function GetSeasonProgress should have comment or be unexported (golint)
    • sotbot/response/convert.go
    • Line 5: warning: exported function Icon should have comment or be unexported (golint)
    • Line 24: warning: exported function IconKey should have comment or be unexported (golint)
    • Line 43: warning: exported function IconValue should have comment or be unexported (golint)
    • Line 62: warning: exported function IsBalanceValue should have comment or be unexported (golint)
    • Line 76: warning: exported function BalanceIcon should have comment or be unexported (golint)
    • sotbot/handler/tmdb_rand.go
    • Line 12: warning: exported function TMDbRandMovie should have comment or be unexported (golint)
    • Line 54: warning: exported function TMDbRandTvShow should have comment or be unexported (golint)
    • sotbot/api/urbandict_term.go
    • Line 12: warning: exported type UrbanDictEntry should have comment or be unexported (golint)
    • Line 20: warning: exported type UrbanDict should have comment or be unexported (golint)
    • Line 24: warning: exported function GetUrbanDict should have comment or be unexported (golint)
    • sotbot/database/user.go
    • Line 14: warning: exported function GetUser should have comment or be unexported (golint)
    • Line 28: warning: exported function GetUsers should have comment or be unexported (golint)
    • Line 38: warning: exported function CreateUser should have comment or be unexported (golint)
    • Line 52: warning: exported function DeleteUser should have comment or be unexported (golint)
    • Line 63: warning: exported function UserSetPref should have comment or be unexported (golint)
    • Line 89: warning: exported function UserSetPrefEnc should have comment or be unexported (golint)
    • Line 102: warning: exported function UserDelPref should have comment or be unexported (golint)
    • Line 115: warning: exported function UserGetPrefString should have comment or be unexported (golint)
    • Line 120: warning: exported function UserGetPrefEncString should have comment or be unexported (golint)
    • sotbot/response/slashcmd.go
    • Line 17: warning: exported function SlashCmdResponseEphemeral should have comment or be unexported (golint)
    • Line 21: warning: exported function SlashCmdResponseEphemeralMention should have comment or be unexported (golint)
    • Line 25: warning: exported function SlashCmdResponseMention should have comment or be unexported (golint)
    • Line 29: warning: exported function SlashCmdResponseDeferred should have comment or be unexported (golint)
    • Line 33: warning: exported function SlashCmdResponseDeferredEphemeral should have comment or be unexported (golint)
    • Line 37: warning: exported function SlashCmdResponseEdit should have comment or be unexported (golint)
    • Line 56: warning: exported function SlashCmdEmbed should have comment or be unexported (golint)
    • Line 74: warning: exported function SlashCmdEmbedDeferred should have comment or be unexported (golint)
    • Line 89: warning: exported function SlashCmdDel should have comment or be unexported (golint)
    • sotbot/bot/bot.go
    • Line 23: warning: exported type Bot should have comment or be unexported (golint)
    • Line 37: warning: exported type Audio should have comment or be unexported (golint)
    • Line 41: warning: exported function NewBot should have comment or be unexported (golint)
    • Line 114: warning: exported method Bot.Run should have comment or be unexported (golint)
    • Line 247: warning: exported method Bot.ResetSlashCmds should have comment or be unexported (golint)
    • sotbot/cache/serialize.go
    • Line 9: warning: exported function SerializeObj should have comment or be unexported (golint)
    • Line 20: warning: exported function DeserializeObj should have comment or be unexported (golint)
    • sotbot/handler/sot_ratcookie.go
    • Line 15: warning: exported type UserRat should have comment or be unexported (golint)
    • Line 20: warning: comment on exported function UserSetRatCookie should be of the form "UserSetRatCookie ..." (golint)
    • sotbot/handler/tmdb_search.go
    • Line 10: warning: exported function TMDbSearchMovie should have comment or be unexported (golint)
    • Line 40: warning: exported function TMDbSearchTvShow should have comment or be unexported (golint)
    • sotbot/database/sot.go
    • Line 8: warning: exported function GetFailedRatCookieTries should have comment or be unexported (golint)
    • Line 22: warning: exported function IncreaseFailedRatCookieTries should have comment or be unexported (golint)
    • sotbot/cache/readwrite.go
    • Line 9: warning: exported function Store should have comment or be unexported (golint)
    • Line 21: warning: exported function Read 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!