Preparing report...

Report for github.com/tsundata/assistant

A    Great!    Found 188 issues across 223 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!


gocyclo98%

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.


golint16%

Golint is a linter for Go source code.

    • assistant/internal/app/message/trigger/user.go
    • Line 12: warning: exported type User should have comment or be unexported (golint)
    • Line 17: warning: exported function NewUser should have comment or be unexported (golint)
    • Line 21: warning: exported method User.Cond should have comment or be unexported (golint)
    • Line 43: warning: exported method User.Handle should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/webhook.go
    • Line 7: warning: exported type Webhook should have comment or be unexported (golint)
    • Line 9: warning: exported function NewWebhook should have comment or be unexported (golint)
    • Line 13: warning: exported method Webhook.Type should have comment or be unexported (golint)
    • Line 17: warning: exported method Webhook.Doc should have comment or be unexported (golint)
    • Line 21: warning: exported method Webhook.Run should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/parser.go
    • Line 7: warning: exported type Parser should have comment or be unexported (golint)
    • Line 12: warning: exported function NewParser should have comment or be unexported (golint)
    • Line 34: warning: exported method Parser.Eat should have comment or be unexported (golint)
    • Line 43: warning: exported method Parser.Program should have comment or be unexported (golint)
    • Line 52: warning: exported method Parser.StatementList should have comment or be unexported (golint)
    • Line 74: warning: exported method Parser.Statement should have comment or be unexported (golint)
    • Line 77: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 82: warning: exported method Parser.OpcodeStatement should have comment or be unexported (golint)
    • Line 96: warning: exported method Parser.Expression should have comment or be unexported (golint)
    • Line 123: warning: exported method Parser.Empty should have comment or be unexported (golint)
    • Line 127: warning: exported method Parser.Variable should have comment or be unexported (golint)
    • Line 136: warning: exported method Parser.Factor should have comment or be unexported (golint)
    • Line 184: warning: exported method Parser.Parse should have comment or be unexported (golint)
    • assistant/internal/app/task/service/task.go
    • Line 11: warning: exported type Task should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTask should have comment or be unexported (golint)
    • Line 19: warning: exported method Task.Send should have comment or be unexported (golint)
    • Line 40: warning: exported method Task.Delay should have comment or be unexported (golint)
    • assistant/internal/pkg/database/client.go
    • Line 5: warning: a blank import should be only in a main or test package, or have a comment justifying it (golint)
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 15: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 25: warning: exported function New should have comment or be unexported (golint)
    • Line 33: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/status.go
    • Line 13: warning: exported type Status should have comment or be unexported (golint)
    • Line 15: warning: exported function NewStatus should have comment or be unexported (golint)
    • Line 19: warning: exported method Status.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method Status.Doc should have comment or be unexported (golint)
    • Line 27: warning: exported method Status.Run should have comment or be unexported (golint)
    • assistant/internal/app/web/controllers/web.go
    • Line 29: warning: exported type WebController should have comment or be unexported (golint)
    • Line 38: warning: exported function NewWebController should have comment or be unexported (golint)
    • Line 43: warning: exported method WebController.Index should have comment or be unexported (golint)
    • Line 47: warning: exported method WebController.Echo should have comment or be unexported (golint)
    • Line 51: warning: exported method WebController.Robots should have comment or be unexported (golint)
    • Line 58: warning: exported method WebController.Page should have comment or be unexported (golint)
    • Line 117: warning: exported method WebController.Qr should have comment or be unexported (golint)
    • Line 139: warning: exported method WebController.Apps should have comment or be unexported (golint)
    • Line 179: warning: exported method WebController.Memo should have comment or be unexported (golint)
    • Line 234: warning: exported method WebController.Credentials should have comment or be unexported (golint)
    • Line 269: warning: exported method WebController.CredentialsCreate should have comment or be unexported (golint)
    • Line 327: warning: exported method WebController.CredentialsStore should have comment or be unexported (golint)
    • Line 346: warning: exported method WebController.Setting should have comment or be unexported (golint)
    • Line 379: warning: exported method WebController.SettingCreate should have comment or be unexported (golint)
    • Line 412: warning: exported method WebController.SettingStore should have comment or be unexported (golint)
    • Line 428: warning: exported method WebController.Action should have comment or be unexported (golint)
    • Line 464: warning: exported method WebController.ActionCreate should have comment or be unexported (golint)
    • Line 491: warning: exported method WebController.ActionRun should have comment or be unexported (golint)
    • Line 511: warning: exported method WebController.ActionStore should have comment or be unexported (golint)
    • Line 525: warning: exported method WebController.WorkflowDelete should have comment or be unexported (golint)
    • Line 539: warning: exported method WebController.App should have comment or be unexported (golint)
    • Line 544: warning: exported method WebController.OAuth should have comment or be unexported (golint)
    • Line 554: warning: exported method WebController.Webhook should have comment or be unexported (golint)
    • assistant/internal/app/message/trigger/tag.go
    • Line 10: warning: exported type Tag should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTag should have comment or be unexported (golint)
    • Line 19: warning: exported method Tag.Cond should have comment or be unexported (golint)
    • Line 48: warning: exported method Tag.Handle should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/echo.go
    • Line 10: warning: exported type Echo should have comment or be unexported (golint)
    • Line 12: warning: exported function NewEcho should have comment or be unexported (golint)
    • Line 16: warning: exported method Echo.Type should have comment or be unexported (golint)
    • Line 20: warning: exported method Echo.Doc should have comment or be unexported (golint)
    • Line 24: warning: exported method Echo.Run should have comment or be unexported (golint)
    • assistant/internal/app/message/service/message.go
    • Line 20: warning: exported type Message should have comment or be unexported (golint)
    • Line 30: warning: exported function NewManage should have comment or be unexported (golint)
    • Line 43: warning: exported method Message.List should have comment or be unexported (golint)
    • Line 64: warning: exported method Message.Get should have comment or be unexported (golint)
    • Line 79: warning: exported method Message.Create should have comment or be unexported (golint)
    • Line 148: warning: exported method Message.Delete should have comment or be unexported (golint)
    • Line 157: warning: exported method Message.Send should have comment or be unexported (golint)
    • Line 174: warning: exported method Message.Run should have comment or be unexported (golint)
    • Line 202: warning: exported method Message.GetActionMessages should have comment or be unexported (golint)
    • Line 222: warning: exported method Message.CreateActionMessage should have comment or be unexported (golint)
    • Line 264: warning: exported method Message.DeleteWorkflowMessage should have comment or be unexported (golint)
    • assistant/internal/pkg/logger/logger.go
    • Line 11: warning: exported type Logger should have comment or be unexported (golint)
    • Line 15: warning: exported function NewLogger should have comment or be unexported (golint)
    • Line 31: warning: exported method Logger.Info should have comment or be unexported (golint)
    • Line 35: warning: exported method Logger.Warn should have comment or be unexported (golint)
    • Line 39: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/message/repository/message.go
    • Line 10: warning: exported type MessageRepository should have comment or be unexported (golint)
    • Line 19: warning: exported type MysqlMessageRepository should have comment or be unexported (golint)
    • Line 24: warning: exported function NewMysqlMessageRepository should have comment or be unexported (golint)
    • Line 28: warning: exported method MysqlMessageRepository.GetByID should have comment or be unexported (golint)
    • Line 38: warning: exported method MysqlMessageRepository.GetByUUID should have comment or be unexported (golint)
    • Line 48: warning: exported method MysqlMessageRepository.ListByType should have comment or be unexported (golint)
    • Line 58: warning: exported method MysqlMessageRepository.List should have comment or be unexported (golint)
    • Line 69: warning: exported method MysqlMessageRepository.Create should have comment or be unexported (golint)
    • Line 81: warning: exported method MysqlMessageRepository.Delete should have comment or be unexported (golint)
    • assistant/internal/app/subscribe/service/subscribe.go
    • Line 13: warning: exported type Subscribe should have comment or be unexported (golint)
    • Line 17: warning: exported function NewSubscribe should have comment or be unexported (golint)
    • Line 21: warning: exported method Subscribe.List should have comment or be unexported (golint)
    • Line 45: warning: exported method Subscribe.Register should have comment or be unexported (golint)
    • Line 69: warning: exported method Subscribe.Open should have comment or be unexported (golint)
    • Line 78: warning: exported method Subscribe.Close should have comment or be unexported (golint)
    • Line 87: warning: exported method Subscribe.Status should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/inside/context.go
    • Line 9: warning: exported type Context should have comment or be unexported (golint)
    • Line 24: warning: exported function NewContext should have comment or be unexported (golint)
    • Line 28: warning: exported method Context.SetValue should have comment or be unexported (golint)
    • Line 34: warning: exported method Context.SetContinue should have comment or be unexported (golint)
    • Line 40: warning: exported method Context.SetCredential should have comment or be unexported (golint)
    • assistant/internal/app/worker/tasks/echo.go
    • Line 8: warning: exported type EchoTask should have comment or be unexported (golint)
    • Line 13: warning: exported function NewEchoTask should have comment or be unexported (golint)
    • Line 17: warning: exported method EchoTask.Echo should have comment or be unexported (golint)
    • assistant/internal/app/spider/crawler/crawler.go
    • Line 24: warning: exported type Crawler should have comment or be unexported (golint)
    • Line 35: warning: exported function New should have comment or be unexported (golint)
    • Line 42: warning: exported method Crawler.SetService should have comment or be unexported (golint)
    • Line 51: warning: exported method Crawler.LoadRule should have comment or be unexported (golint)
    • Line 99: warning: exported method Crawler.Daemon should have comment or be unexported (golint)
    • assistant/internal/pkg/utils/collection/linked_list.go
    • Line 3: warning: exported type LinkedListNode should have comment or be unexported (golint)
    • Line 10: warning: exported method LinkedListNode.Value should have comment or be unexported (golint)
    • Line 14: warning: exported type LinkedList should have comment or be unexported (golint)
    • Line 19: warning: exported function NewLinkedList should have comment or be unexported (golint)
    • Line 29: warning: exported method LinkedList.Append should have comment or be unexported (golint)
    • Line 42: warning: exported method LinkedList.Remove should have comment or be unexported (golint)
    • Line 53: warning: exported method LinkedList.Iterate should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/opcode.go
    • Line 10: warning: exported const TypeOp should have comment (or a comment on this block) or be unexported (golint)
    • Line 15: warning: exported type Opcoder should have comment or be unexported (golint)
    • Line 41: warning: exported function NewOpcode should have comment or be unexported (golint)
    • Line 48: warning: exported function Docs should have comment or be unexported (golint)
    • Line 63: warning: exported function Doc should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/ast.go
    • Line 3: warning: exported type Ast should have comment or be unexported (golint)
    • Line 5: warning: exported type IntegerConst should have comment or be unexported (golint)
    • Line 10: warning: exported function NewIntegerConst should have comment or be unexported (golint)
    • Line 14: warning: exported type FloatConst should have comment or be unexported (golint)
    • Line 19: warning: exported function NewFloatConst should have comment or be unexported (golint)
    • Line 23: warning: exported type StringConst should have comment or be unexported (golint)
    • Line 28: warning: exported function NewStringConst should have comment or be unexported (golint)
    • Line 32: warning: exported type BooleanConst should have comment or be unexported (golint)
    • Line 37: warning: exported function NewBooleanConst should have comment or be unexported (golint)
    • Line 41: warning: exported type MessageConst should have comment or be unexported (golint)
    • Line 46: warning: exported function NewMessageConst should have comment or be unexported (golint)
    • Line 50: warning: exported type Var should have comment or be unexported (golint)
    • Line 55: warning: exported function NewVar should have comment or be unexported (golint)
    • Line 59: warning: exported type NoOp should have comment or be unexported (golint)
    • Line 61: warning: exported function NewNoOp should have comment or be unexported (golint)
    • Line 65: warning: exported type Program should have comment or be unexported (golint)
    • Line 70: warning: exported function NewProgram should have comment or be unexported (golint)
    • Line 74: warning: exported type Opcode should have comment or be unexported (golint)
    • Line 80: warning: exported function NewOpcode should have comment or be unexported (golint)
    • assistant/internal/pkg/vendors/rollbar/rollbar.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 26: warning: exported type Rollbar should have comment or be unexported (golint)
    • Line 30: warning: exported function New should have comment or be unexported (golint)
    • Line 34: warning: exported method Rollbar.Config should have comment or be unexported (golint)
    • Line 41: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/subscribe/app.go
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 20: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 29: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 48: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/message.go
    • Line 13: warning: exported type Message should have comment or be unexported (golint)
    • Line 15: warning: exported function NewMessage should have comment or be unexported (golint)
    • Line 19: warning: exported method Message.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method Message.Doc should have comment or be unexported (golint)
    • Line 27: warning: exported method Message.Run should have comment or be unexported (golint)
    • assistant/internal/pkg/rulebot/rulebot.go
    • Line 13: warning: exported type RuleBot should have comment or be unexported (golint)
    • Line 29: warning: exported function New should have comment or be unexported (golint)
    • Line 55: warning: exported method RuleBot.Name should have comment or be unexported (golint)
    • Line 59: warning: exported method RuleBot.Process should have comment or be unexported (golint)
    • Line 85: warning: exported method RuleBot.MessageProviderOut should have comment or be unexported (golint)
    • Line 89: warning: exported type Option should have comment or be unexported (golint)
    • Line 91: warning: exported type RuleParser should have comment or be unexported (golint)
    • Line 98: warning: exported function RegisterRuleset should have comment or be unexported (golint)
    • assistant/internal/pkg/vendors/slack/slack.go
    • Line 12: warning: exported function SecretsVerifier should have comment or be unexported (golint)
    • Line 24: warning: exported function ResponseText should have comment or be unexported (golint)
    • Line 49: warning: exported type SlashUser should have comment or be unexported (golint)
    • Line 55: warning: exported type SlashTeam should have comment or be unexported (golint)
    • Line 60: warning: exported type SlashChannel should have comment or be unexported (golint)
    • Line 65: warning: exported type SlashMessage should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/count.go
    • Line 8: warning: exported type Count should have comment or be unexported (golint)
    • Line 10: warning: exported function NewCount should have comment or be unexported (golint)
    • Line 14: warning: exported method Count.Type should have comment or be unexported (golint)
    • Line 18: warning: exported method Count.Doc should have comment or be unexported (golint)
    • Line 22: warning: exported method Count.Run should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/env.go
    • Line 9: warning: exported type Env should have comment or be unexported (golint)
    • Line 11: warning: exported function NewEnv should have comment or be unexported (golint)
    • Line 15: warning: exported method Env.Type should have comment or be unexported (golint)
    • Line 19: warning: exported method Env.Doc should have comment or be unexported (golint)
    • Line 23: warning: exported method Env.Run should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/error.go
    • Line 5: warning: exported type ErrorType should have comment or be unexported (golint)
    • Line 8: warning: exported const LexerErrorType should have comment (or a comment on this block) or be unexported (golint)
    • Line 13: warning: exported type ErrorCode should have comment or be unexported (golint)
    • Line 16: warning: exported const UnexpectedToken should have comment (or a comment on this block) or be unexported (golint)
    • Line 21: warning: exported type Error should have comment or be unexported (golint)
    • assistant/internal/app/message/trigger/url.go
    • Line 16: warning: exported type Url should have comment or be unexported (golint)
    • Line 21: warning: exported function NewUrl should have comment or be unexported (golint)
    • Line 25: warning: exported method Url.Cond should have comment or be unexported (golint)
    • Line 44: warning: exported method Url.Handle should have comment or be unexported (golint)
    • assistant/internal/pkg/vendors/cloudflare/cloudflare.go
    • Line 11: warning: exported const ID should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type AnalyticResponse should have comment or be unexported (golint)
    • Line 34: warning: exported type Cloudflare should have comment or be unexported (golint)
    • Line 39: warning: exported function NewCloudflare should have comment or be unexported (golint)
    • Line 43: warning: exported method Cloudflare.GetAnalytics should have comment or be unexported (golint)
    • Line 81: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • assistant/internal/app/workflow/action/opcode/query.go
    • Line 13: warning: exported type Query should have comment or be unexported (golint)
    • Line 15: warning: exported function NewQuery should have comment or be unexported (golint)
    • Line 19: warning: exported method Query.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method Query.Doc should have comment or be unexported (golint)
    • Line 27: warning: exported method Query.Run should have comment or be unexported (golint)
    • Line 66: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • assistant/internal/app/workflow/action/symbol.go
    • Line 9: warning: exported type Symbol should have comment or be unexported (golint)
    • Line 11: warning: exported type BuiltinTypeSymbol should have comment or be unexported (golint)
    • Line 17: warning: exported function NewBuiltinTypeSymbol should have comment or be unexported (golint)
    • Line 25: warning: exported type OpcodeSymbol should have comment or be unexported (golint)
    • Line 30: warning: exported function NewOpcodeSymbol should have comment or be unexported (golint)
    • Line 38: warning: exported type WebhookSymbol should have comment or be unexported (golint)
    • Line 43: warning: exported function NewWebhookSymbol should have comment or be unexported (golint)
    • Line 51: warning: exported type CronSymbol should have comment or be unexported (golint)
    • Line 55: warning: exported function NewCronSymbol should have comment or be unexported (golint)
    • Line 63: warning: exported type ScopedSymbolTable should have comment or be unexported (golint)
    • Line 70: warning: exported function NewScopedSymbolTable should have comment or be unexported (golint)
    • Line 111: warning: exported method ScopedSymbolTable.Insert should have comment or be unexported (golint)
    • Line 129: warning: exported method ScopedSymbolTable.Lookup should have comment or be unexported (golint)
    • Line 146: warning: exported type SemanticAnalyzer should have comment or be unexported (golint)
    • Line 152: warning: exported function NewSemanticAnalyzer should have comment or be unexported (golint)
    • Line 165: warning: exported method SemanticAnalyzer.Visit should have comment or be unexported (golint)
    • Line 193: warning: exported method SemanticAnalyzer.VisitProgram should have comment or be unexported (golint)
    • Line 213: warning: exported method SemanticAnalyzer.VisitOpcode should have comment or be unexported (golint)
    • Line 249: warning: exported method SemanticAnalyzer.VisitIntegerConst should have comment or be unexported (golint)
    • Line 254: warning: exported method SemanticAnalyzer.VisitStringConst should have comment or be unexported (golint)
    • Line 258: warning: exported method SemanticAnalyzer.VisitMessageConst should have comment or be unexported (golint)
    • Line 263: warning: exported method SemanticAnalyzer.VisitBooleanConst should have comment or be unexported (golint)
    • Line 268: warning: exported method SemanticAnalyzer.VisitVar should have comment or be unexported (golint)
    • Line 278: warning: exported method SemanticAnalyzer.VisitNoOp should have comment or be unexported (golint)
    • assistant/internal/app/storage/app.go
    • Line 19: warning: exported type Options should have comment or be unexported (golint)
    • Line 24: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 37: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 56: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/web/components/html.go
    • Line 9: warning: exported type Html should have comment or be unexported (golint)
    • Line 19: warning: exported method Html.SetCss should have comment or be unexported (golint)
    • Line 23: warning: exported method Html.SetJs should have comment or be unexported (golint)
    • Line 29: warning: exported method Html.GetContent should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/get.go
    • Line 11: warning: exported type Get should have comment or be unexported (golint)
    • Line 13: warning: exported function NewGet should have comment or be unexported (golint)
    • Line 17: warning: exported method Get.Type should have comment or be unexported (golint)
    • Line 21: warning: exported method Get.Doc should have comment or be unexported (golint)
    • Line 25: warning: exported method Get.Run should have comment or be unexported (golint)
    • assistant/internal/app/middle/app.go
    • Line 19: warning: exported type Options should have comment or be unexported (golint)
    • Line 24: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 37: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 57: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/middle/service/middle.go
    • Line 20: warning: exported type Middle should have comment or be unexported (golint)
    • Line 27: warning: exported function NewMiddle should have comment or be unexported (golint)
    • Line 31: warning: exported method Middle.GetMenu should have comment or be unexported (golint)
    • Line 56: warning: exported method Middle.GetQrUrl should have comment or be unexported (golint)
    • Line 62: warning: exported method Middle.CreatePage should have comment or be unexported (golint)
    • Line 86: warning: exported method Middle.GetPage should have comment or be unexported (golint)
    • Line 100: warning: exported method Middle.GetApps should have comment or be unexported (golint)
    • Line 141: warning: exported method Middle.GetAvailableApp should have comment or be unexported (golint)
    • Line 171: warning: exported method Middle.StoreAppOAuth should have comment or be unexported (golint)
    • Line 205: warning: exported method Middle.GetCredential should have comment or be unexported (golint)
    • Line 239: warning: exported method Middle.GetCredentials should have comment or be unexported (golint)
    • Line 260: warning: exported method Middle.GetMaskingCredentials should have comment or be unexported (golint)
    • Line 297: warning: exported method Middle.CreateCredential should have comment or be unexported (golint)
    • Line 326: warning: exported method Middle.GetSettings should have comment or be unexported (golint)
    • Line 343: warning: exported method Middle.GetSetting should have comment or be unexported (golint)
    • Line 357: warning: exported method Middle.CreateSetting should have comment or be unexported (golint)
    • Line 365: warning: exported method Middle.Authorization should have comment or be unexported (golint)
    • Line 381: warning: exported method Middle.GetStats should have comment or be unexported (golint)
    • assistant/internal/app/workflow/service/workflow.go
    • Line 22: warning: exported type Workflow should have comment or be unexported (golint)
    • Line 31: warning: exported function NewWorkflow should have comment or be unexported (golint)
    • Line 35: warning: exported method Workflow.SyntaxCheck should have comment or be unexported (golint)
    • Line 62: warning: exported method Workflow.RunAction should have comment or be unexported (golint)
    • Line 98: warning: exported method Workflow.WebhookTrigger should have comment or be unexported (golint)
    • Line 127: warning: exported method Workflow.CronTrigger should have comment or be unexported (golint)
    • Line 180: warning: exported method Workflow.CreateTrigger should have comment or be unexported (golint)
    • Line 249: warning: exported method Workflow.DeleteTrigger should have comment or be unexported (golint)
    • Line 258: warning: exported method Workflow.ActionDoc should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/set.go
    • Line 8: warning: exported type Set should have comment or be unexported (golint)
    • Line 10: warning: exported function NewSet should have comment or be unexported (golint)
    • Line 14: warning: exported method Set.Type should have comment or be unexported (golint)
    • Line 18: warning: exported method Set.Doc should have comment or be unexported (golint)
    • Line 22: warning: exported method Set.Run should have comment or be unexported (golint)
    • assistant/internal/pkg/rabbitmq/rabbitmq.go
    • Line 10: warning: exported type Options should have comment or be unexported (golint)
    • Line 14: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 24: warning: exported function New should have comment or be unexported (golint)
    • Line 28: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/pkg/redis/client.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 16: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 43: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/pkg/utils/collection/bitset.go
    • Line 8: warning: exported type BinSet should have comment or be unexported (golint)
    • Line 13: warning: exported function NewBinSet should have comment or be unexported (golint)
    • Line 17: warning: exported method BinSet.SetTo should have comment or be unexported (golint)
    • Line 21: warning: exported method BinSet.Test should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/dedupe.go
    • Line 11: warning: exported type Dedupe should have comment or be unexported (golint)
    • Line 13: warning: exported function NewDedupe should have comment or be unexported (golint)
    • Line 17: warning: exported method Dedupe.Type should have comment or be unexported (golint)
    • Line 21: warning: exported method Dedupe.Doc should have comment or be unexported (golint)
    • Line 25: warning: exported method Dedupe.Run should have comment or be unexported (golint)
    • Line 50: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 61: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • assistant/internal/pkg/etcd/client.go
    • Line 11: warning: exported type Options should have comment or be unexported (golint)
    • Line 17: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 27: warning: exported function New should have comment or be unexported (golint)
    • Line 36: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/workflow/repository/workflow.go
    • Line 10: warning: exported type WorkflowRepository should have comment or be unexported (golint)
    • Line 17: warning: exported type MysqlWorkflowRepository should have comment or be unexported (golint)
    • Line 22: warning: exported function NewMysqlWorkflowRepository should have comment or be unexported (golint)
    • Line 26: warning: exported method MysqlWorkflowRepository.GetTriggerByFlag should have comment or be unexported (golint)
    • Line 38: warning: exported method MysqlWorkflowRepository.ListTriggersByType should have comment or be unexported (golint)
    • Line 50: warning: exported method MysqlWorkflowRepository.CreateTrigger should have comment or be unexported (golint)
    • Line 62: warning: exported method MysqlWorkflowRepository.DeleteTriggerByMessageID should have comment or be unexported (golint)
    • assistant/internal/pkg/machinery/server.go
    • Line 17: warning: exported const DefaultQueue should have comment or be unexported (golint)
    • Line 18: warning: exported const AMQPExchange should have comment or be unexported (golint)
    • Line 19: warning: exported const AMQPBindingKey should have comment or be unexported (golint)
    • Line 21: warning: exported type Options should have comment or be unexported (golint)
    • Line 30: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 43: warning: exported function New should have comment or be unexported (golint)
    • Line 60: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 83: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/web/app.go
    • Line 13: warning: exported type Options should have comment or be unexported (golint)
    • Line 18: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 31: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 41: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/interpreter.go
    • Line 15: warning: exported type Interpreter should have comment or be unexported (golint)
    • Line 21: warning: exported function NewInterpreter should have comment or be unexported (golint)
    • Line 25: warning: exported method Interpreter.SetClient should have comment or be unexported (golint)
    • Line 33: warning: exported method Interpreter.Visit should have comment or be unexported (golint)
    • Line 65: warning: exported method Interpreter.VisitProgram should have comment or be unexported (golint)
    • Line 75: warning: exported method Interpreter.VisitOpcode should have comment or be unexported (golint)
    • Line 113: warning: exported method Interpreter.VisitIntegerConst should have comment or be unexported (golint)
    • Line 117: warning: exported method Interpreter.VisitFloatConst should have comment or be unexported (golint)
    • Line 121: warning: exported method Interpreter.VisitStringConst should have comment or be unexported (golint)
    • Line 125: warning: exported method Interpreter.VisitBooleanConst should have comment or be unexported (golint)
    • Line 129: warning: exported method Interpreter.VisitMessageConst should have comment or be unexported (golint)
    • Line 141: warning: exported method Interpreter.VisitVar should have comment or be unexported (golint)
    • Line 145: warning: exported method Interpreter.VisitNoOp should have comment or be unexported (golint)
    • Line 149: warning: exported method Interpreter.Interpret should have comment or be unexported (golint)
    • Line 156: warning: exported method Interpreter.Stdout should have comment or be unexported (golint)
    • assistant/internal/pkg/transports/http/server.go
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 26: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 43: warning: exported type Server should have comment or be unexported (golint)
    • Line 50: warning: exported function New should have comment or be unexported (golint)
    • Line 59: warning: exported method Server.Application should have comment or be unexported (golint)
    • Line 63: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 106: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 114: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/cron/pipeline/result/result.go
    • Line 7: warning: exported type Kind should have comment or be unexported (golint)
    • Line 10: warning: exported const Done should have comment (or a comment on this block) or be unexported (golint)
    • Line 17: warning: exported type Result should have comment or be unexported (golint)
    • Line 28: warning: exported function ErrorResult should have comment or be unexported (golint)
    • Line 36: warning: exported function MessageResult should have comment or be unexported (golint)
    • Line 44: warning: exported function EmptyResult should have comment or be unexported (golint)
    • Line 48: warning: exported function DoneResult should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/json.go
    • Line 8: warning: exported type Json should have comment or be unexported (golint)
    • Line 10: warning: exported function NewJson should have comment or be unexported (golint)
    • Line 14: warning: exported method Json.Type should have comment or be unexported (golint)
    • Line 18: warning: exported method Json.Doc should have comment or be unexported (golint)
    • Line 22: warning: exported method Json.Run should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/task.go
    • Line 13: warning: exported type Task should have comment or be unexported (golint)
    • Line 15: warning: exported function NewTask should have comment or be unexported (golint)
    • Line 19: warning: exported method Task.Type should have comment or be unexported (golint)
    • Line 23: warning: exported method Task.Doc should have comment or be unexported (golint)
    • Line 27: warning: exported method Task.Run should have comment or be unexported (golint)
    • assistant/internal/app/middle/repository/middle.go
    • Line 11: warning: exported type MiddleRepository should have comment or be unexported (golint)
    • Line 25: warning: exported type MysqlMiddleRepository should have comment or be unexported (golint)
    • Line 30: warning: exported function NewMysqlMiddleRepository should have comment or be unexported (golint)
    • Line 34: warning: exported method MysqlMiddleRepository.CreatePage should have comment or be unexported (golint)
    • Line 46: warning: exported method MysqlMiddleRepository.GetPageByUUID should have comment or be unexported (golint)
    • Line 55: warning: exported method MysqlMiddleRepository.ListApps should have comment or be unexported (golint)
    • Line 64: warning: exported method MysqlMiddleRepository.GetAvailableAppByType should have comment or be unexported (golint)
    • Line 73: warning: exported method MysqlMiddleRepository.GetAppByType should have comment or be unexported (golint)
    • Line 82: warning: exported method MysqlMiddleRepository.UpdateAppByID should have comment or be unexported (golint)
    • Line 87: warning: exported method MysqlMiddleRepository.CreateApp should have comment or be unexported (golint)
    • Line 100: warning: exported method MysqlMiddleRepository.GetCredentialByName should have comment or be unexported (golint)
    • Line 109: warning: exported method MysqlMiddleRepository.GetCredentialByType should have comment or be unexported (golint)
    • Line 118: warning: exported method MysqlMiddleRepository.ListCredentials should have comment or be unexported (golint)
    • Line 127: warning: exported method MysqlMiddleRepository.CreateCredential should have comment or be unexported (golint)
    • assistant/internal/pkg/utils/collection/ordered_dict.go
    • Line 3: warning: exported type OrderedDict should have comment or be unexported (golint)
    • Line 8: warning: exported function NewOrderedDict should have comment or be unexported (golint)
    • Line 15: warning: exported method OrderedDict.Set should have comment or be unexported (golint)
    • Line 23: warning: exported method OrderedDict.Get should have comment or be unexported (golint)
    • Line 30: warning: exported method OrderedDict.Remove should have comment or be unexported (golint)
    • Line 41: warning: exported method OrderedDict.Iterate should have comment or be unexported (golint)
    • assistant/internal/pkg/jaeger/tracer.go
    • Line 11: warning: exported function NewConfiguration should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 36: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/else.go
    • Line 7: warning: exported type Else should have comment or be unexported (golint)
    • Line 9: warning: exported function NewElse should have comment or be unexported (golint)
    • Line 13: warning: exported method Else.Type should have comment or be unexported (golint)
    • Line 17: warning: exported method Else.Doc should have comment or be unexported (golint)
    • Line 21: warning: exported method Else.Run should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/if.go
    • Line 5: warning: exported type If should have comment or be unexported (golint)
    • Line 7: warning: exported function NewIf should have comment or be unexported (golint)
    • Line 11: warning: exported method If.Type should have comment or be unexported (golint)
    • Line 15: warning: exported method If.Doc should have comment or be unexported (golint)
    • Line 19: warning: exported method If.Run should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/lexer.go
    • Line 10: warning: exported type Lexer should have comment or be unexported (golint)
    • Line 18: warning: exported function NewLexer should have comment or be unexported (golint)
    • Line 29: warning: exported method Lexer.Advance should have comment or be unexported (golint)
    • Line 43: warning: exported method Lexer.Peek should have comment or be unexported (golint)
    • Line 47: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 52: warning: exported method Lexer.SkipWhitespace should have comment or be unexported (golint)
    • Line 58: warning: exported method Lexer.SkipComment should have comment or be unexported (golint)
    • Line 65: warning: exported method Lexer.CarriageReturn should have comment or be unexported (golint)
    • Line 69: warning: exported method Lexer.Number should have comment or be unexported (golint)
    • Line 120: warning: exported method Lexer.Message should have comment or be unexported (golint)
    • Line 137: warning: exported method Lexer.Id should have comment or be unexported (golint)
    • Line 158: warning: exported method Lexer.GetNextToken should have comment or be unexported (golint)
    • assistant/internal/app/storage/service/storage.go
    • Line 15: warning: exported type Storage should have comment or be unexported (golint)
    • Line 22: warning: exported const MaxFileSize should have comment or be unexported (golint)
    • Line 24: warning: exported function NewStorage should have comment or be unexported (golint)
    • Line 28: warning: exported method Storage.UploadFile should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/cron.go
    • Line 7: warning: exported type Cron should have comment or be unexported (golint)
    • Line 9: warning: exported function NewCron should have comment or be unexported (golint)
    • Line 13: warning: exported method Cron.Type should have comment or be unexported (golint)
    • Line 17: warning: exported method Cron.Doc should have comment or be unexported (golint)
    • Line 21: warning: exported method Cron.Run should have comment or be unexported (golint)
    • assistant/internal/app/message/app.go
    • Line 19: warning: exported type Options should have comment or be unexported (golint)
    • Line 24: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 37: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 60: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/pkg/transports/rpc/client.go
    • Line 14: warning: exported type ClientOptions should have comment or be unexported (golint)
    • Line 20: warning: exported function NewClientOptions should have comment or be unexported (golint)
    • Line 47: warning: exported type ClientOptional should have comment or be unexported (golint)
    • Line 49: warning: exported function WithTimeout should have comment or be unexported (golint)
    • Line 55: warning: exported function WithTag should have comment or be unexported (golint)
    • Line 61: warning: exported type Client should have comment or be unexported (golint)
    • Line 66: warning: exported function NewClient should have comment or be unexported (golint)
    • Line 73: warning: exported method Client.Dial should have comment or be unexported (golint)
    • assistant/internal/pkg/vendors/email/email.go
    • Line 12: warning: exported const ID should have comment (or a comment on this block) or be unexported (golint)
    • Line 19: warning: exported type Config should have comment or be unexported (golint)
    • Line 26: warning: exported function SendEmail should have comment or be unexported (golint)
    • assistant/internal/pkg/utils/collection/bloom_filter.go
    • Line 9: warning: exported type BloomFilter should have comment or be unexported (golint)
    • Line 16: warning: exported function NewBloomFilter should have comment or be unexported (golint)
    • Line 21: warning: exported method BloomFilter.Lookup should have comment or be unexported (golint)
    • Line 34: warning: exported method BloomFilter.Add should have comment or be unexported (golint)
    • assistant/internal/app/spider/rule/fun.go
    • Line 17: warning: exported function PowerfulFind should have comment or be unexported (golint)
    • Line 34: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 39: warning: exported type Fun should have comment or be unexported (golint)
    • Line 52: warning: exported method Fun.InitSelector should have comment or be unexported (golint)
    • Line 59: warning: exported method Fun.Invoke should have comment or be unexported (golint)
    • Line 107: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 112: warning: exported method Fun.Append should have comment or be unexported (golint)
    • Line 118: warning: exported function ParseFun should have comment or be unexported (golint)
    • assistant/internal/pkg/transports/rpc/server.go
    • Line 37: warning: exported type Options should have comment or be unexported (golint)
    • Line 46: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 63: warning: exported type Server should have comment or be unexported (golint)
    • Line 71: warning: exported type InitServers should have comment or be unexported (golint)
    • Line 73: warning: exported function NewServer should have comment or be unexported (golint)
    • Line 121: warning: exported method Server.Application should have comment or be unexported (golint)
    • Line 125: warning: exported method Server.Start should have comment or be unexported (golint)
    • Line 167: warning: exported method Server.Register should have comment or be unexported (golint)
    • Line 171: warning: exported method Server.Stop should have comment or be unexported (golint)
    • Line 181: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/pkg/utils/strings.go
    • Line 14: warning: exported const UrlRegex should have comment (or a comment on this block) or be unexported (golint)
    • Line 18: warning: exported function IsUrl should have comment or be unexported (golint)
    • Line 23: warning: exported function IsIPv4 should have comment or be unexported (golint)
    • assistant/internal/app/spider/app.go
    • Line 16: warning: exported type Options should have comment or be unexported (golint)
    • Line 21: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 34: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 57: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/pkg/influx/client.go
    • Line 10: warning: exported type Options should have comment or be unexported (golint)
    • Line 15: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 26: warning: exported function New should have comment or be unexported (golint)
    • Line 31: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/app/gateway/app.go
    • Line 13: warning: exported type Options should have comment or be unexported (golint)
    • Line 23: warning: exported function NewOptions should have comment or be unexported (golint)
    • Line 41: warning: exported function NewApp should have comment or be unexported (golint)
    • Line 51: warning: exported var ProviderSet should have comment or be unexported (golint)
    • assistant/internal/pkg/vendors/github/github.go
    • Line 17: warning: exported const ID should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type TokenResponse should have comment or be unexported (golint)
    • Line 299: warning: exported type Github should have comment or be unexported (golint)
    • Line 307: warning: exported function NewGithub should have comment or be unexported (golint)
    • Line 317: warning: exported method Github.AuthorizeURL should have comment or be unexported (golint)
    • Line 321: warning: exported method Github.GetAccessToken should have comment or be unexported (golint)
    • Line 339: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 344: warning: exported method Github.Redirect should have comment or be unexported (golint)
    • Line 361: warning: exported method Github.StoreAccessToken should have comment or be unexported (golint)
    • Line 404: warning: exported method Github.GetUser should have comment or be unexported (golint)
    • Line 416: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 421: warning: exported method Github.GetStarred should have comment or be unexported (golint)
    • Line 433: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 438: warning: exported method Github.GetFollowers should have comment or be unexported (golint)
    • Line 450: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 455: warning: exported method Github.CreateIssue should have comment or be unexported (golint)
    • Line 468: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 473: warning: exported method Github.GetUserProjects should have comment or be unexported (golint)
    • Line 485: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 490: warning: exported method Github.GetProjectColumns should have comment or be unexported (golint)
    • Line 502: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 507: warning: exported method Github.CreateCard should have comment or be unexported (golint)
    • Line 520: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 525: warning: exported method Github.GetRepository should have comment or be unexported (golint)
    • Line 537: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • assistant/internal/pkg/model/message.go
    • Line 10: warning: exported const MessageTypeText should have comment (or a comment on this block) or be unexported (golint)
    • Line 26: warning: exported const MessageScriptOfJavascript should have comment (or a comment on this block) or be unexported (golint)
    • Line 31: warning: exported const PlatformSlack should have comment (or a comment on this block) or be unexported (golint)
    • Line 36: warning: exported type Message should have comment or be unexported (golint)
    • Line 44: warning: exported function IsMessageOfScript should have comment or be unexported (golint)
    • Line 53: warning: exported function IsMessageOfAction should have comment or be unexported (golint)
    • Line 62: warning: exported function RemoveActionFlag should have comment or be unexported (golint)
    • Line 67: warning: exported function MessageScriptKind should have comment or be unexported (golint)
    • assistant/internal/pkg/app/app.go
    • Line 14: warning: exported type Application should have comment or be unexported (golint)
    • Line 21: warning: exported type Option should have comment or be unexported (golint)
    • Line 23: warning: exported function HTTPServerOption should have comment or be unexported (golint)
    • Line 32: warning: exported function RPCServerOption should have comment or be unexported (golint)
    • Line 41: warning: exported function New should have comment or be unexported (golint)
    • Line 56: warning: exported method Application.Start should have comment or be unexported (golint)
    • Line 72: warning: exported method Application.AwaitSignal should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/token.go
    • Line 5: warning: exported type TokenType should have comment or be unexported (golint)
    • Line 8: warning: exported const TokenPlus should have comment (or a comment on this block) or be unexported (golint)
    • Line 33: warning: exported type Token should have comment or be unexported (golint)
    • Line 44: warning: exported var ReservedKeywords should have comment or be unexported (golint)
    • assistant/internal/pkg/vendors/providers.go
    • Line 16: warning: exported var OAuthProviderApps should have comment or be unexported (golint)
    • Line 22: warning: exported var ProviderCredentialOptions should have comment or be unexported (golint)
    • Line 51: warning: exported type OAuthProvider should have comment or be unexported (golint)
    • Line 58: warning: exported function NewOAuthProvider should have comment or be unexported (golint)
    • assistant/internal/app/gateway/controllers/gateway.go
    • Line 22: warning: exported type GatewayController should have comment or be unexported (golint)
    • Line 30: warning: exported function NewGatewayController should have comment or be unexported (golint)
    • Line 35: warning: exported method GatewayController.Index should have comment or be unexported (golint)
    • Line 39: warning: exported method GatewayController.SlackEvent should have comment or be unexported (golint)
    • Line 111: warning: exported method GatewayController.TelegramEvent should have comment or be unexported (golint)
    • assistant/internal/pkg/vendors/pocket/pocket.go
    • Line 18: warning: exported const ID should have comment (or a comment on this block) or be unexported (golint)
    • Line 22: warning: exported type CodeResponse should have comment or be unexported (golint)
    • Line 27: warning: exported type TokenResponse should have comment or be unexported (golint)
    • Line 32: warning: exported type ListResponse should have comment or be unexported (golint)
    • Line 37: warning: exported type Item should have comment or be unexported (golint)
    • Line 58: warning: exported type Pocket should have comment or be unexported (golint)
    • Line 68: warning: exported function NewPocket should have comment or be unexported (golint)
    • Line 78: warning: exported method Pocket.SetRDB should have comment or be unexported (golint)
    • Line 82: warning: exported method Pocket.GetCode should have comment or be unexported (golint)
    • Line 96: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 101: warning: exported method Pocket.AuthorizeURL should have comment or be unexported (golint)
    • Line 105: warning: exported method Pocket.GetAccessToken should have comment or be unexported (golint)
    • Line 119: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 124: warning: exported method Pocket.Redirect should have comment or be unexported (golint)
    • Line 148: warning: exported method Pocket.StoreAccessToken should have comment or be unexported (golint)
    • Line 191: warning: exported method Pocket.Retrieve should have comment or be unexported (golint)
    • Line 209: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • assistant/internal/app/workflow/action/opcode/debug.go
    • Line 8: warning: exported type Debug should have comment or be unexported (golint)
    • Line 10: warning: exported function NewDebug should have comment or be unexported (golint)
    • Line 14: warning: exported method Debug.Type should have comment or be unexported (golint)
    • Line 18: warning: exported method Debug.Doc should have comment or be unexported (golint)
    • Line 22: warning: exported method Debug.Run should have comment or be unexported (golint)
    • assistant/internal/app/workflow/action/opcode/secret.go
    • Line 9: warning: exported type Secret should have comment or be unexported (golint)
    • Line 11: warning: exported function NewSecret should have comment or be unexported (golint)
    • Line 15: warning: exported method Secret.Type should have comment or be unexported (golint)
    • Line 19: warning: exported method Secret.Doc should have comment or be unexported (golint)
    • Line 23: warning: exported method Secret.Run should have comment or be unexported (golint)
    • assistant/internal/app/message/trigger/email.go
    • Line 15: warning: exported type Email should have comment or be unexported (golint)
    • Line 20: warning: exported function NewEmail should have comment or be unexported (golint)
    • Line 24: warning: exported method Email.Cond should have comment or be unexported (golint)
    • Line 44: warning: exported method Email.Handle should have comment or be unexported (golint)
    • assistant/internal/pkg/vendors/dropbox/dropbox.go
    • Line 18: warning: exported const ID should have comment (or a comment on this block) or be unexported (golint)
    • Line 23: warning: exported type TokenResponse should have comment or be unexported (golint)
    • Line 31: warning: exported type Dropbox should have comment or be unexported (golint)
    • Line 39: warning: exported function NewDropbox should have comment or be unexported (golint)
    • Line 49: warning: exported method Dropbox.AuthorizeURL should have comment or be unexported (golint)
    • Line 53: warning: exported method Dropbox.GetAccessToken should have comment or be unexported (golint)
    • Line 74: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • Line 79: warning: exported method Dropbox.Redirect should have comment or be unexported (golint)
    • Line 96: warning: exported method Dropbox.StoreAccessToken should have comment or be unexported (golint)
    • Line 139: warning: exported method Dropbox.Upload should have comment or be unexported (golint)
    • Line 163: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
    • assistant/internal/pkg/vendors/telegram/telegram.go
    • Line 10: warning: exported type IncomingRequest should have comment or be unexported (golint)
    • Line 15: warning: exported type Message should have comment or be unexported (golint)
    • Line 23: warning: exported type User should have comment or be unexported (golint)
    • Line 31: warning: exported type Chat should have comment or be unexported (golint)
    • Line 38: warning: exported type MessageResponse should have comment or be unexported (golint)
    • Line 43: warning: exported type Telegram should have comment or be unexported (golint)
    • Line 48: warning: exported function NewTelegram should have comment or be unexported (golint)
    • Line 60: warning: exported method Telegram.SendMessage should have comment or be unexported (golint)
    • Line 74: warning: if block ends with a return statement, so drop this else and outdent its block (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!