Preparing report...

Report for github.com/tucnak/telebot

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


golint70%

Golint is a linter for Go source code.

    • telebot/inline_types.go
    • Line 39: warning: exported method ResultBase.Process should have comment or be unexported (golint)
    • Line 103: warning: comment on exported type ContactResult should be of the form "ContactResult ..." (with optional leading article) (golint)
    • Line 220: warning: comment on exported type Mpeg4GifResult should be of the form "Mpeg4GifResult ..." (with optional leading article) (golint)
    • Line 259: warning: comment on exported type PhotoResult should be of the form "PhotoResult ..." (with optional leading article) (golint)
    • telebot/input_types.go
    • Line 25: warning: exported method InputTextMessageContent.IsInputMessageContent should have comment or be unexported (golint)
    • Line 37: warning: exported method InputLocationMessageContent.IsInputMessageContent should have comment or be unexported (golint)
    • Line 58: warning: exported method InputVenueMessageContent.IsInputMessageContent should have comment or be unexported (golint)
    • Line 76: warning: exported method InputContactMessageContent.IsInputMessageContent should have comment or be unexported (golint)
    • telebot/options.go
    • Line 177: warning: exported method ReplyMarkup.Inline should have comment or be unexported (golint)
    • Line 196: warning: exported method ReplyMarkup.Reply should have comment or be unexported (golint)
    • Line 215: warning: exported method ReplyMarkup.Text should have comment or be unexported (golint)
    • Line 219: warning: exported method ReplyMarkup.Contact should have comment or be unexported (golint)
    • Line 223: warning: exported method ReplyMarkup.Location should have comment or be unexported (golint)
    • Line 227: warning: exported method ReplyMarkup.Poll should have comment or be unexported (golint)
    • Line 231: warning: exported method ReplyMarkup.Data should have comment or be unexported (golint)
    • Line 239: warning: exported method ReplyMarkup.URL should have comment or be unexported (golint)
    • Line 243: warning: exported method ReplyMarkup.Query should have comment or be unexported (golint)
    • Line 247: warning: exported method ReplyMarkup.QueryChat should have comment or be unexported (golint)
    • Line 251: warning: exported method ReplyMarkup.Login should have comment or be unexported (golint)
    • Line 269: warning: exported method Btn.Inline should have comment or be unexported (golint)
    • Line 281: warning: exported method Btn.Reply should have comment or be unexported (golint)
    • telebot/payments.go
    • Line 117: warning: exported method Currency.FromTotal should have comment or be unexported (golint)
    • Line 121: warning: exported method Currency.ToTotal should have comment or be unexported (golint)
    • Line 125: warning: exported var SupportedCurrencies should have comment or be unexported (golint)
    • telebot/errors.go
    • Line 8: warning: exported type APIError should have comment or be unexported (golint)
    • Line 15: warning: exported type FloodError should have comment or be unexported (golint)
    • Line 54: warning: comment on exported var ErrUnauthorized should be of the form "ErrUnauthorized ..." (golint)
    • Line 56: warning: exported var ErrNotStartedByUser should have comment or be unexported (golint)
    • Line 62: warning: comment on exported var ErrTooLarge should be of the form "ErrTooLarge ..." (golint)
    • Line 88: warning: comment on exported var ErrNoRightsToRestrict should be of the form "ErrNoRightsToRestrict ..." (golint)
    • Line 97: warning: comment on exported var ErrBotKickedFromGroup should be of the form "ErrBotKickedFromGroup ..." (golint)
    • telebot/telebot.go
    • Line 34: warning: exported var ErrBadRecipient should have comment or be unexported (golint)
    • Line 40: warning: exported const DefaultApiURL should have comment or be unexported (golint)
    • Line 168: warning: exported const Typing should have comment (or a comment on this block) or be unexported (golint)
    • Line 184: warning: exported const ModeDefault should have comment (or a comment on this block) or be unexported (golint)
    • Line 194: warning: exported const EntityMention should have comment (or a comment on this block) or be unexported (golint)
    • Line 215: warning: exported const ChatPrivate should have comment (or a comment on this block) or be unexported (golint)
    • Line 226: warning: exported const Creator should have comment (or a comment on this block) or be unexported (golint)
    • Line 238: warning: exported const FeatureForehead should have comment (or a comment on this block) or be unexported (golint)
    • Line 248: warning: comment on exported const PollAny should be of the form "PollAny ..." (golint)
    • Line 252: warning: exported const PollQuiz should have comment (or a comment on this block) or be unexported (golint)
    • Line 256: warning: exported type DiceType should have comment or be unexported (golint)
    • Line 259: warning: exported var Cube 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!