Gofmt formats Go programs. We run gofmt -s
on your code, where -s
is for the "simplify" command
No problems detected. Good job!
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!
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.
Golint is a linter for Go source code.
-
go-telegram-flow/list/list.go
- Line 10: warning: comment on exported type Callback should be of the form "Callback ..." (with optional leading article) (golint)
- Line 17: warning: exported var ErrInvalidTextPath should have comment or be unexported (golint)
- Line 21: warning: comment on exported type List should be of the form "List ..." (with optional leading article) (golint)
- Line 37: warning: comment on exported function NewListFlow should be of the form "NewListFlow ..." (golint)
- Line 57: warning: comment on exported method List.Build should be of the form "Build ..." (golint)
- Line 81: warning: comment on exported method List.GetMarkup should be of the form "GetMarkup ..." (golint)
- Line 88: warning: comment on exported method List.GetId should be of the form "GetId ..." (golint)
- Line 95: warning: comment on exported method List.GetBot should be of the form "GetBot ..." (golint)
- Line 102: warning: comment on exported method List.Start should be of the form "Start ..." (golint)
- Line 114: warning: comment on exported method List.StartWithText should be of the form "StartWithText ..." (golint)
- Line 123: warning: comment on exported method List.GetSession should be of the form "GetSession ..." (golint)
-
go-telegram-flow/chain/chain.go
- Line 15: warning: comment on exported type Chain should be of the form "Chain ..." (with optional leading article) (golint)
- Line 28: warning: exported var ErrChainIsEmpty should have comment or be unexported (golint)
- Line 30: warning: comment on exported function NewChainFlow should be of the form "NewChainFlow ..." (golint)
- Line 45: warning: comment on exported method Chain.GetId should be of the form "GetId ..." (golint)
- Line 52: warning: comment on exported method Chain.GetBot should be of the form "GetBot ..." (golint)
- Line 59: warning: comment on exported method Chain.GetRoot should be of the form "GetRoot ..." (golint)
- Line 66: warning: comment on exported method Chain.GetPosition should be of the form "GetPosition ..." (golint)
- Line 76: warning: comment on exported method Chain.SetPosition should be of the form "SetPosition ..." (golint)
- Line 85: warning: comment on exported method Chain.DeletePosition should be of the form "DeletePosition ..." (golint)
- Line 94: warning: comment on exported method Chain.Search should be of the form "Search ..." (golint)
- Line 101: warning: comment on exported method Chain.SetDefaultHandler should be of the form "SetDefaultHandler ..." (golint)
- Line 109: warning: comment on exported method Chain.Start should be of the form "Start ..." (golint)
- Line 129: warning: comment on exported method Chain.Process should be of the form "Process ..." (golint)
-
go-telegram-flow/chain/node.go
- Line 7: warning: comment on exported type Callback should be of the form "Callback ..." (with optional leading article) (golint)
- Line 12: warning: comment on exported type Node should be of the form "Node ..." (with optional leading article) (golint)
- Line 24: warning: comment on exported method Node.Then should be of the form "Then ..." (golint)
- Line 40: warning: comment on exported method Node.GetFlow should be of the form "GetFlow ..." (golint)
- Line 47: warning: comment on exported method Node.GetId should be of the form "GetId ..." (golint)
- Line 54: warning: comment on exported method Node.GetEndpoint should be of the form "GetEndpoint ..." (golint)
- Line 61: warning: comment on exported method Node.Previous should be of the form "Previous ..." (golint)
- Line 68: warning: comment on exported method Node.Next should be of the form "Next ..." (golint)
- Line 75: warning: comment on exported method Node.SearchDown should be of the form "SearchDown ..." (golint)
- Line 92: warning: comment on exported method Node.SearchUp should be of the form "SearchUp ..." (golint)
- Line 109: warning: comment on exported method Node.CheckEvent should be of the form "CheckEvent ..." (golint)
-
go-telegram-flow/menu/menu.go
- Line 18: warning: comment on exported type Menu should be of the form "Menu ..." (with optional leading article) (golint)
- Line 32: warning: comment on exported type Dialog should be of the form "Dialog ..." (with optional leading article) (golint)
- Line 42: warning: comment on exported function NewMenuFlow should be of the form "NewMenuFlow ..." (golint)
- Line 62: warning: comment on exported method Menu.GetId should be of the form "GetId ..." (golint)
- Line 69: warning: comment on exported method Menu.CountNodes should be of the form "CountNodes ..." (golint)
- Line 76: warning: comment on exported method Menu.GetBot should be of the form "GetBot ..." (golint)
- Line 83: warning: comment on exported method Menu.GetRoot should be of the form "GetRoot ..." (golint)
- Line 90: warning: comment on exported method Menu.GetDialog should be of the form "GetDialog ..." (golint)
- Line 120: warning: comment on exported method Menu.SetCaption should be of the form "SetCaption ..." (golint)
- Line 138: warning: comment on exported method Menu.HandleForward should be of the form "HandleForward ..." (golint)
- Line 145: warning: comment on exported method Menu.HandleBack should be of the form "HandleBack ..." (golint)
- Line 152: warning: comment on exported method Menu.NewNode should be of the form "NewNode ..." (golint)
- Line 159: warning: comment on exported method Menu.NewBackNode should be of the form "NewBackNode ..." (golint)
- Line 167: warning: comment on exported method Menu.Build should be of the form "Build ..." (golint)
- Line 175: warning: comment on exported method Menu.Start should be of the form "Start ..." (golint)
- Line 191: warning: comment on exported method Menu.StartAt should be of the form "StartAt ..." (golint)
- Line 213: warning: comment on exported method Menu.MoveTo should be of the form "MoveTo ..." (golint)
- Line 232: warning: comment on exported method Menu.Stop should be of the form "Stop ..." (golint)
-
go-telegram-flow/menu/node.go
- Line 12: warning: comment on exported type Callback should be of the form "Callback ..." (with optional leading article) (golint)
- Line 19: warning: exported const Stay should have comment (or a comment on this block) or be unexported (golint)
- Line 24: warning: comment on exported type Node should be of the form "Node ..." (with optional leading article) (golint)
- Line 57: warning: comment on exported method Node.GetFlow should be of the form "GetFlow ..." (golint)
- Line 64: warning: comment on exported method Node.GetId should be of the form "GetId ..." (golint)
- Line 71: warning: comment on exported method Node.GetText should be of the form "GetText ..." (golint)
- Line 78: warning: comment on exported method Node.GetPath should be of the form "GetPath ..." (golint)
- Line 85: warning: comment on exported method Node.GetEndpoint should be of the form "GetEndpoint ..." (golint)
- Line 92: warning: comment on exported method Node.Previous should be of the form "Previous ..." (golint)
- Line 99: warning: comment on exported method Node.GetNodes should be of the form "GetNodes ..." (golint)
- Line 106: warning: comment on exported method Node.GetMarkup should be of the form "GetMarkup ..." (golint)
- Line 114: warning: comment on exported method Node.Add should be of the form "Add ..." (golint)
- Line 123: warning: comment on exported method Node.AddWith should be of the form "AddWith ..." (golint)
- Line 133: warning: comment on exported method Node.AddSub should be of the form "AddSub ..." (golint)
- Line 148: warning: comment on exported method Node.AddManySub should be of the form "AddManySub ..." (golint)
- Line 165: warning: comment on exported method Node.SetCaption should be of the form "SetCaption ..." (golint)
- Line 183: warning: comment on exported method Node.GetLanguage should be of the form "GetLanguage ..." (golint)
- Line 193: warning: comment on exported method Node.SetLanguage should be of the form "SetLanguage ..." (golint)
Checks whether your project has a LICENSE file.
No problems detected. Good job!
IneffAssign detects ineffectual assignments in Go code.
No problems detected. Good job!
Misspell Finds commonly misspelled English words
No problems detected. Good job!