Preparing report...

Report for github.com/xDWart/mqtg-bot

A    Great!    Found 38 issues across 39 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!


gocyclo87%

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.

    • mqtg-bot/internal/users/process_callback.go
    • Line 233: warning: cyclomatic complexity 26 of function (*User).processButtonMenuCallback() is high (> 15) (gocyclo)
    • Line 23: warning: cyclomatic complexity 19 of function (*User).ProcessCallback() is high (> 15) (gocyclo)
    • Line 106: warning: cyclomatic complexity 18 of function (*User).processSubscriptionCallback() is high (> 15) (gocyclo)

golint2%

Golint is a linter for Go source code.

    • mqtg-bot/internal/metrics.go
    • Line 8: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 12: warning: exported const DEFAULT_PORT should have comment or be unexported (golint)
    • Line 14: warning: exported type Metrics should have comment or be unexported (golint)
    • Line 21: warning: exported function InitPrometheusMetrics should have comment or be unexported (golint)
    • Line 30: warning: exported method TelegramBot.StartPprofAndMetricsListener should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/button_types/button_types.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 3: warning: exported type ButtonType should have comment or be unexported (golint)
    • Line 6: warning: exported const SYSTEM should have comment (or a comment on this block) or be unexported (golint)
    • Line 16: warning: don't use underscores in Go names; var button_types_strs should be buttonTypesStrs (golint)
    • Line 31: warning: exported method ButtonType.TypeString should have comment or be unexported (golint)
    • Line 35: warning: exported method ButtonType.NextType should have comment or be unexported (golint)
    • mqtg-bot/internal/models/subscription.go
    • Line 9: warning: exported type Subscription should have comment or be unexported (golint)
    • Line 26: warning: exported type SubscriptionData should have comment or be unexported (golint)
    • Line 34: warning: exported type SubscriptionDataType should have comment or be unexported (golint)
    • Line 37: warning: exported const TEXT_DATA_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 53: warning: exported method SubscriptionDataType.GetNext should have comment or be unexported (golint)
    • Line 57: warning: exported type SubscriptionType should have comment or be unexported (golint)
    • Line 60: warning: exported const PRINT_MESSAGE_WITHOUT_STORING_SUBSCRIPTION_TYPE should have comment (or a comment on this block) or be unexported (golint)
    • Line 78: warning: exported method SubscriptionType.GetNext should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/button_interface/button_toggle.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type ToggleButton should have comment or be unexported (golint)
    • Line 17: warning: exported method ToggleButton.GetType should have comment or be unexported (golint)
    • Line 21: warning: exported method ToggleButton.GetName should have comment or be unexported (golint)
    • Line 25: warning: exported method ToggleButton.GetFullName should have comment or be unexported (golint)
    • Line 29: warning: exported method ToggleButton.SetMainName should have comment or be unexported (golint)
    • Line 34: warning: exported method ToggleButton.GetCurrentCommand should have comment or be unexported (golint)
    • Line 38: warning: exported method ToggleButton.GetCommands should have comment or be unexported (golint)
    • Line 41: warning: exported method ToggleButton.AddNewCommand should have comment or be unexported (golint)
    • Line 42: warning: exported method ToggleButton.DeleteCommand should have comment or be unexported (golint)
    • Line 44: warning: exported method ToggleButton.SwitchState should have comment or be unexported (golint)
    • Line 48: warning: exported method ToggleButton.SetNameForCommand should have comment or be unexported (golint)
    • Line 52: warning: exported method ToggleButton.SetTopicForCommand should have comment or be unexported (golint)
    • Line 56: warning: exported method ToggleButton.SetValueForCommand should have comment or be unexported (golint)
    • Line 60: warning: exported method ToggleButton.SetQosForCommand should have comment or be unexported (golint)
    • Line 64: warning: exported method ToggleButton.SetRetainedForCommand should have comment or be unexported (golint)
    • Line 69: warning: exported method ToggleButton.GetSubscriptions should have comment or be unexported (golint)
    • Line 72: warning: exported method ToggleButton.SetSubscription should have comment or be unexported (golint)
    • Line 74: warning: exported method ToggleButton.SetParent should have comment or be unexported (golint)
    • Line 78: warning: exported method ToggleButton.GetParent should have comment or be unexported (golint)
    • Line 82: warning: exported method ToggleButton.GetButtons should have comment or be unexported (golint)
    • Line 86: warning: exported method ToggleButton.AddButton should have comment or be unexported (golint)
    • Line 89: warning: exported method ToggleButton.DelButton should have comment or be unexported (golint)
    • Line 92: warning: exported method ToggleButton.MarshalJSON should have comment or be unexported (golint)
    • Line 97: warning: exported method ToggleButton.UnmarshalJSON should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/main_menu.go
    • Line 9: warning: exported type MainMenu should have comment or be unexported (golint)
    • Line 15: warning: exported method MainMenu.ResetCurrentPath should have comment or be unexported (golint)
    • Line 19: warning: exported method MainMenu.AppendCommonMenuAndSetParentLinks should have comment or be unexported (golint)
    • Line 26: warning: exported method MainMenu.Marshal should have comment or be unexported (golint)
    • Line 30: warning: exported method MainMenu.Unmarshal should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/button_interface/button_print_last_value.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type PrintLastValueButton should have comment or be unexported (golint)
    • Line 17: warning: exported method PrintLastValueButton.GetType should have comment or be unexported (golint)
    • Line 20: warning: exported method PrintLastValueButton.GetName should have comment or be unexported (golint)
    • Line 23: warning: exported method PrintLastValueButton.GetFullName should have comment or be unexported (golint)
    • Line 26: warning: exported method PrintLastValueButton.SetMainName should have comment or be unexported (golint)
    • Line 30: warning: exported method PrintLastValueButton.GetCurrentCommand should have comment or be unexported (golint)
    • Line 33: warning: exported method PrintLastValueButton.GetCommands should have comment or be unexported (golint)
    • Line 36: warning: exported method PrintLastValueButton.AddNewCommand should have comment or be unexported (golint)
    • Line 37: warning: exported method PrintLastValueButton.DeleteCommand should have comment or be unexported (golint)
    • Line 39: warning: exported method PrintLastValueButton.SwitchState should have comment or be unexported (golint)
    • Line 40: warning: exported method PrintLastValueButton.SetNameForCommand should have comment or be unexported (golint)
    • Line 41: warning: exported method PrintLastValueButton.SetTopicForCommand should have comment or be unexported (golint)
    • Line 42: warning: exported method PrintLastValueButton.SetValueForCommand should have comment or be unexported (golint)
    • Line 43: warning: exported method PrintLastValueButton.SetQosForCommand should have comment or be unexported (golint)
    • Line 44: warning: exported method PrintLastValueButton.SetRetainedForCommand should have comment or be unexported (golint)
    • Line 46: warning: exported method PrintLastValueButton.GetSubscriptions should have comment or be unexported (golint)
    • Line 49: warning: exported method PrintLastValueButton.SetSubscription should have comment or be unexported (golint)
    • Line 53: warning: exported method PrintLastValueButton.SetParent should have comment or be unexported (golint)
    • Line 57: warning: exported method PrintLastValueButton.GetParent should have comment or be unexported (golint)
    • Line 61: warning: exported method PrintLastValueButton.GetButtons should have comment or be unexported (golint)
    • Line 65: warning: exported method PrintLastValueButton.AddButton should have comment or be unexported (golint)
    • Line 68: warning: exported method PrintLastValueButton.DelButton should have comment or be unexported (golint)
    • Line 71: warning: exported method PrintLastValueButton.MarshalJSON should have comment or be unexported (golint)
    • Line 76: warning: exported method PrintLastValueButton.UnmarshalJSON should have comment or be unexported (golint)
    • mqtg-bot/internal/users/state/state.go
    • Line 9: warning: exported type StateStruct should have comment or be unexported (golint)
    • Line 23: warning: exported type StateType should have comment or be unexported (golint)
    • Line 26: warning: exported const NIL_STATE should have comment (or a comment on this block) or be unexported (golint)
    • Line 42: warning: exported method StateStruct.Reset should have comment or be unexported (golint)
    • mqtg-bot/internal/common/metrics.go
    • Line 8: warning: exported type MetricCollectors should have comment or be unexported (golint)
    • Line 12: warning: exported method MetricCollectors.InitMetric should have comment or be unexported (golint)
    • Line 23: warning: exported method MetricCollectors.GetPrometheusMetrics should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/methods.go
    • Line 10: warning: exported method MainMenu.Back should have comment or be unexported (golint)
    • Line 19: warning: exported method MainMenu.SetPressedButtonLikeCurrentPath should have comment or be unexported (golint)
    • Line 52: warning: exported method MainMenu.GetCurrPathMainMenu should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/button_interface/button_multi_value.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type MultiValueButton should have comment or be unexported (golint)
    • Line 17: warning: exported method MultiValueButton.GetType should have comment or be unexported (golint)
    • Line 21: warning: exported method MultiValueButton.GetName should have comment or be unexported (golint)
    • Line 24: warning: exported method MultiValueButton.GetFullName should have comment or be unexported (golint)
    • Line 27: warning: exported method MultiValueButton.SetMainName should have comment or be unexported (golint)
    • Line 31: warning: exported method MultiValueButton.GetCurrentCommand should have comment or be unexported (golint)
    • Line 34: warning: exported method MultiValueButton.GetCommands should have comment or be unexported (golint)
    • Line 38: warning: exported method MultiValueButton.AddNewCommand should have comment or be unexported (golint)
    • Line 41: warning: exported method MultiValueButton.DeleteCommand should have comment or be unexported (golint)
    • Line 45: warning: exported method MultiValueButton.SwitchState should have comment or be unexported (golint)
    • Line 47: warning: exported method MultiValueButton.SetNameForCommand should have comment or be unexported (golint)
    • Line 51: warning: exported method MultiValueButton.SetTopicForCommand should have comment or be unexported (golint)
    • Line 55: warning: exported method MultiValueButton.SetValueForCommand should have comment or be unexported (golint)
    • Line 59: warning: exported method MultiValueButton.SetQosForCommand should have comment or be unexported (golint)
    • Line 63: warning: exported method MultiValueButton.SetRetainedForCommand should have comment or be unexported (golint)
    • Line 68: warning: exported method MultiValueButton.GetSubscriptions should have comment or be unexported (golint)
    • Line 71: warning: exported method MultiValueButton.SetSubscription should have comment or be unexported (golint)
    • Line 73: warning: exported method MultiValueButton.SetParent should have comment or be unexported (golint)
    • Line 77: warning: exported method MultiValueButton.GetParent should have comment or be unexported (golint)
    • Line 81: warning: exported method MultiValueButton.GetButtons should have comment or be unexported (golint)
    • Line 85: warning: exported method MultiValueButton.AddButton should have comment or be unexported (golint)
    • Line 88: warning: exported method MultiValueButton.DelButton should have comment or be unexported (golint)
    • Line 91: warning: exported method MultiValueButton.MarshalJSON should have comment or be unexported (golint)
    • Line 96: warning: exported method MultiValueButton.UnmarshalJSON should have comment or be unexported (golint)
    • mqtg-bot/internal/users/user.go
    • Line 18: warning: exported type User should have comment or be unexported (golint)
    • Line 33: warning: exported method User.Start should have comment or be unexported (golint)
    • Line 47: warning: exported method User.ConfigureConnection should have comment or be unexported (golint)
    • Line 64: warning: exported method User.Back should have comment or be unexported (golint)
    • Line 142: warning: exported method User.SaveMenuIntoDB should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/button_interface/button_folder.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type FolderButton should have comment or be unexported (golint)
    • Line 17: warning: exported method FolderButton.GetType should have comment or be unexported (golint)
    • Line 21: warning: exported method FolderButton.GetName should have comment or be unexported (golint)
    • Line 24: warning: exported method FolderButton.GetFullName should have comment or be unexported (golint)
    • Line 27: warning: exported method FolderButton.SetMainName should have comment or be unexported (golint)
    • Line 31: warning: exported method FolderButton.GetCurrentCommand should have comment or be unexported (golint)
    • Line 34: warning: exported method FolderButton.GetCommands should have comment or be unexported (golint)
    • Line 38: warning: exported method FolderButton.AddNewCommand should have comment or be unexported (golint)
    • Line 39: warning: exported method FolderButton.DeleteCommand should have comment or be unexported (golint)
    • Line 41: warning: exported method FolderButton.SwitchState should have comment or be unexported (golint)
    • Line 42: warning: exported method FolderButton.SetNameForCommand should have comment or be unexported (golint)
    • Line 43: warning: exported method FolderButton.SetTopicForCommand should have comment or be unexported (golint)
    • Line 44: warning: exported method FolderButton.SetValueForCommand should have comment or be unexported (golint)
    • Line 45: warning: exported method FolderButton.SetQosForCommand should have comment or be unexported (golint)
    • Line 46: warning: exported method FolderButton.SetRetainedForCommand should have comment or be unexported (golint)
    • Line 48: warning: exported method FolderButton.GetSubscriptions should have comment or be unexported (golint)
    • Line 51: warning: exported method FolderButton.SetSubscription should have comment or be unexported (golint)
    • Line 53: warning: exported method FolderButton.SetParent should have comment or be unexported (golint)
    • Line 60: warning: exported method FolderButton.GetParent should have comment or be unexported (golint)
    • Line 64: warning: exported method FolderButton.GetButtons should have comment or be unexported (golint)
    • Line 68: warning: exported method FolderButton.AddButton should have comment or be unexported (golint)
    • Line 73: warning: exported method FolderButton.DelButton should have comment or be unexported (golint)
    • Line 77: warning: exported method FolderButton.MarshalJSON should have comment or be unexported (golint)
    • Line 82: warning: exported method FolderButton.UnmarshalJSON should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/button_interface/button_draw_chart.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type DrawChartButton should have comment or be unexported (golint)
    • Line 17: warning: exported method DrawChartButton.GetType should have comment or be unexported (golint)
    • Line 20: warning: exported method DrawChartButton.GetName should have comment or be unexported (golint)
    • Line 23: warning: exported method DrawChartButton.GetFullName should have comment or be unexported (golint)
    • Line 26: warning: exported method DrawChartButton.SetMainName should have comment or be unexported (golint)
    • Line 30: warning: exported method DrawChartButton.GetCurrentCommand should have comment or be unexported (golint)
    • Line 33: warning: exported method DrawChartButton.GetCommands should have comment or be unexported (golint)
    • Line 36: warning: exported method DrawChartButton.AddNewCommand should have comment or be unexported (golint)
    • Line 37: warning: exported method DrawChartButton.DeleteCommand should have comment or be unexported (golint)
    • Line 39: warning: exported method DrawChartButton.SwitchState should have comment or be unexported (golint)
    • Line 40: warning: exported method DrawChartButton.SetNameForCommand should have comment or be unexported (golint)
    • Line 41: warning: exported method DrawChartButton.SetTopicForCommand should have comment or be unexported (golint)
    • Line 42: warning: exported method DrawChartButton.SetValueForCommand should have comment or be unexported (golint)
    • Line 43: warning: exported method DrawChartButton.SetQosForCommand should have comment or be unexported (golint)
    • Line 44: warning: exported method DrawChartButton.SetRetainedForCommand should have comment or be unexported (golint)
    • Line 46: warning: exported method DrawChartButton.GetSubscriptions should have comment or be unexported (golint)
    • Line 49: warning: exported method DrawChartButton.SetSubscription should have comment or be unexported (golint)
    • Line 63: warning: exported method DrawChartButton.SetParent should have comment or be unexported (golint)
    • Line 67: warning: exported method DrawChartButton.GetParent should have comment or be unexported (golint)
    • Line 71: warning: exported method DrawChartButton.GetButtons should have comment or be unexported (golint)
    • Line 75: warning: exported method DrawChartButton.AddButton should have comment or be unexported (golint)
    • Line 78: warning: exported method DrawChartButton.DelButton should have comment or be unexported (golint)
    • Line 81: warning: exported method DrawChartButton.MarshalJSON should have comment or be unexported (golint)
    • Line 86: warning: exported method DrawChartButton.UnmarshalJSON should have comment or be unexported (golint)
    • mqtg-bot/internal/users/manager.go
    • Line 14: warning: exported type Manager should have comment or be unexported (golint)
    • Line 22: warning: exported function InitManager should have comment or be unexported (golint)
    • Line 31: warning: exported method Manager.LoadAllConnectedUsers should have comment or be unexported (golint)
    • Line 45: warning: exported method Manager.UpdateTotalUsers should have comment or be unexported (golint)
    • Line 51: warning: exported method Manager.GetUserByChatIdFromUpdate should have comment or be unexported (golint)
    • Line 86: warning: exported method Manager.LoadDatabaseUserIntoBotUsers should have comment or be unexported (golint)
    • Line 118: warning: exported method Manager.GetPrometheusMetrics should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/button_interface/button_single_value.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type SingleValueButton should have comment or be unexported (golint)
    • Line 16: warning: exported method SingleValueButton.GetType should have comment or be unexported (golint)
    • Line 20: warning: exported method SingleValueButton.GetName should have comment or be unexported (golint)
    • Line 23: warning: exported method SingleValueButton.GetFullName should have comment or be unexported (golint)
    • Line 26: warning: exported method SingleValueButton.SetMainName should have comment or be unexported (golint)
    • Line 30: warning: exported method SingleValueButton.GetCurrentCommand should have comment or be unexported (golint)
    • Line 33: warning: exported method SingleValueButton.GetCommands should have comment or be unexported (golint)
    • Line 36: warning: exported method SingleValueButton.AddNewCommand should have comment or be unexported (golint)
    • Line 37: warning: exported method SingleValueButton.DeleteCommand should have comment or be unexported (golint)
    • Line 39: warning: exported method SingleValueButton.SwitchState should have comment or be unexported (golint)
    • Line 41: warning: exported method SingleValueButton.SetNameForCommand should have comment or be unexported (golint)
    • Line 44: warning: exported method SingleValueButton.SetTopicForCommand should have comment or be unexported (golint)
    • Line 47: warning: exported method SingleValueButton.SetValueForCommand should have comment or be unexported (golint)
    • Line 50: warning: exported method SingleValueButton.SetQosForCommand should have comment or be unexported (golint)
    • Line 53: warning: exported method SingleValueButton.SetRetainedForCommand should have comment or be unexported (golint)
    • Line 57: warning: exported method SingleValueButton.GetSubscriptions should have comment or be unexported (golint)
    • Line 60: warning: exported method SingleValueButton.SetSubscription should have comment or be unexported (golint)
    • Line 62: warning: exported method SingleValueButton.SetParent should have comment or be unexported (golint)
    • Line 66: warning: exported method SingleValueButton.GetParent should have comment or be unexported (golint)
    • Line 70: warning: exported method SingleValueButton.GetButtons should have comment or be unexported (golint)
    • Line 74: warning: exported method SingleValueButton.AddButton should have comment or be unexported (golint)
    • Line 77: warning: exported method SingleValueButton.DelButton should have comment or be unexported (golint)
    • Line 80: warning: exported method SingleValueButton.MarshalJSON should have comment or be unexported (golint)
    • Line 85: warning: exported method SingleValueButton.UnmarshalJSON should have comment or be unexported (golint)
    • mqtg-bot/internal/users/menu/button_interface/button_system.go
    • Line 1: warning: don't use an underscore in package name (golint)
    • Line 10: warning: exported type SystemButton should have comment or be unexported (golint)
    • Line 16: warning: exported method SystemButton.GetType should have comment or be unexported (golint)
    • Line 19: warning: exported method SystemButton.GetName should have comment or be unexported (golint)
    • Line 22: warning: exported method SystemButton.GetFullName should have comment or be unexported (golint)
    • Line 25: warning: exported method SystemButton.SetMainName should have comment or be unexported (golint)
    • Line 29: warning: exported method SystemButton.GetCurrentCommand should have comment or be unexported (golint)
    • Line 32: warning: exported method SystemButton.GetCommands should have comment or be unexported (golint)
    • Line 35: warning: exported method SystemButton.AddNewCommand should have comment or be unexported (golint)
    • Line 36: warning: exported method SystemButton.DeleteCommand should have comment or be unexported (golint)
    • Line 38: warning: exported method SystemButton.SwitchState should have comment or be unexported (golint)
    • Line 39: warning: exported method SystemButton.SetNameForCommand should have comment or be unexported (golint)
    • Line 40: warning: exported method SystemButton.SetTopicForCommand should have comment or be unexported (golint)
    • Line 41: warning: exported method SystemButton.SetValueForCommand should have comment or be unexported (golint)
    • Line 42: warning: exported method SystemButton.SetQosForCommand should have comment or be unexported (golint)
    • Line 43: warning: exported method SystemButton.SetRetainedForCommand should have comment or be unexported (golint)
    • Line 45: warning: exported method SystemButton.GetSubscriptions should have comment or be unexported (golint)
    • Line 48: warning: exported method SystemButton.SetSubscription should have comment or be unexported (golint)
    • Line 50: warning: exported method SystemButton.SetParent should have comment or be unexported (golint)
    • Line 54: warning: exported method SystemButton.GetParent should have comment or be unexported (golint)
    • Line 58: warning: exported method SystemButton.GetButtons should have comment or be unexported (golint)
    • Line 62: warning: exported method SystemButton.AddButton should have comment or be unexported (golint)
    • Line 65: warning: exported method SystemButton.DelButton should have comment or be unexported (golint)
    • Line 68: warning: exported method SystemButton.MarshalJSON should have comment or be unexported (golint)
    • Line 73: warning: exported method SystemButton.UnmarshalJSON should have comment or be unexported (golint)
    • mqtg-bot/internal/send.go
    • Line 11: warning: exported method TelegramBot.SendAnswer should have comment or be unexported (golint)
    • Line 39: warning: exported method TelegramBot.NewPhotoUpload should have comment or be unexported (golint)
    • Line 50: warning: exported method TelegramBot.EditMessageText should have comment or be unexported (golint)
    • Line 59: warning: exported method TelegramBot.EditPhotoMessage should have comment or be unexported (golint)
    • Line 70: warning: exported method TelegramBot.EditInlineKeyboard should have comment or be unexported (golint)
    • Line 79: warning: exported method TelegramBot.SendMessage should have comment or be unexported (golint)
    • Line 92: warning: exported method TelegramBot.DownloadPhoto should have comment or be unexported (golint)
    • Line 107: warning: exported method TelegramBot.ConfigureAndSend should have comment or be unexported (golint)
    • Line 125: warning: exported method TelegramBot.Send should have comment or be unexported (golint)
    • mqtg-bot/internal/database/connection.go
    • Line 16: warning: exported const DEFAULT_SQLITE_PATH should have comment or be unexported (golint)
    • Line 18: warning: exported function NewDatabaseConnection should have comment or be unexported (golint)
    • Line 34: warning: exported function NewPostgreConnection should have comment or be unexported (golint)
    • Line 56: warning: exported function NewSQLiteConnection should have comment or be unexported (golint)
    • mqtg-bot/internal/users/keyboard/button.go
    • Line 14: warning: exported function GetButtonsKeyboard should have comment or be unexported (golint)
    • Line 355: warning: exported function GetAddButtonKeyboard should have comment or be unexported (golint)
    • Line 381: warning: exported function GetEditButtonNameKeyboard should have comment or be unexported (golint)
    • Line 399: warning: exported function GetDeleteButtonKeyboard should have comment or be unexported (golint)
    • Line 422: warning: exported function GetMultiValueCommandsKeyboard should have comment or be unexported (golint)
    • Line 466: warning: exported function GetCommandAddKeyboard should have comment or be unexported (golint)
    • Line 501: warning: exported function GetCommandEditKeyboard should have comment or be unexported (golint)
    • Line 583: warning: exported function GetDeleteCommandKeyboard should have comment or be unexported (golint)
    • Line 609: warning: exported function GetDeleteSubscriptionKeyboard should have comment or be unexported (golint)
    • Line 646: warning: exported function GetEditCommandNameKeyboard should have comment or be unexported (golint)
    • Line 666: warning: exported function GetEditCommandTopicKeyboard should have comment or be unexported (golint)
    • Line 690: warning: exported function GetEditCommandValueKeyboard should have comment or be unexported (golint)
    • mqtg-bot/internal/users/mqtt/mqtt.go
    • Line 11: warning: exported type Client should have comment or be unexported (golint)
    • Line 16: warning: exported type SubscriptionMessage should have comment or be unexported (golint)
    • Line 21: warning: exported function Connect should have comment or be unexported (golint)
    • Line 49: warning: exported method Client.Subscribe should have comment or be unexported (golint)
    • Line 60: warning: exported method Client.Unsubscribe should have comment or be unexported (golint)
    • Line 65: warning: exported method Client.Publish should have comment or be unexported (golint)
    • mqtg-bot/internal/users/keyboard/subscription.go
    • Line 11: warning: exported function GetSubscriptionsKeyboard should have comment or be unexported (golint)
    • Line 38: warning: exported function GetAddSubscriptionKeyboard should have comment or be unexported (golint)
    • Line 84: warning: exported function GetSubscriptionTopicEditKeyboard should have comment or be unexported (golint)
    • Line 106: warning: exported function GetSubscriptionDeleteKeyboard should have comment or be unexported (golint)
    • Line 131: warning: exported function GetSubscriptionBeforeAfterValueTextEditKeyboard should have comment or be unexported (golint)
    • Line 168: warning: exported function GetSubscriptionJsonPathEditKeyboard should have comment or be unexported (golint)
    • Line 189: warning: exported function GetSubscriptionEditKeyboard should have comment or be unexported (golint)
    • mqtg-bot/internal/init.go
    • Line 17: warning: exported type TelegramBot should have comment or be unexported (golint)
    • Line 31: warning: exported function InitTelegramBot should have comment or be unexported (golint)
    • Line 100: warning: exported method TelegramBot.Shutdown should have comment or be unexported (golint)
    • Line 112: warning: exported method TelegramBot.Wait 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!