Preparing report...

Report for github.com/alphatroya/redmine-helper-bot

A+    Excellent!    Found 24 issues across 49 files

Tweet

gofmt100%

Gofmt formats Go programs. We run gofmt -s on your code, where -s is for the "simplify" command

No problems detected. Good job!


go_vet100%

go vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string.

No problems detected. Good job!


gocyclo100%

Gocyclo calculates cyclomatic complexities of functions in Go source code. The cyclomatic complexity of a function is calculated according to the following rules: 1 is the base complexity of a function +1 for each 'if', 'for', 'case', '&&' or '||' Go Report Card warns on functions with cyclomatic complexity > 15.

No problems detected. Good job!


golint51%

Golint is a linter for Go source code.

    • redmine-helper-bot/commands/commands_builder.go
    • Line 10: warning: exported type Builder should have comment or be unexported (golint)
    • Line 14: warning: exported type BotCommandsBuilder should have comment or be unexported (golint)
    • Line 19: warning: exported function NewBotCommandsBuilder should have comment or be unexported (golint)
    • Line 23: warning: exported method BotCommandsBuilder.Build should have comment or be unexported (golint)
    • redmine-helper-bot/commands/fill_hours_many.go
    • Line 14: warning: exported type FillHoursMany should have comment or be unexported (golint)
    • Line 20: warning: exported function NewFillHoursMany should have comment or be unexported (golint)
    • Line 24: warning: exported method FillHoursMany.Handle should have comment or be unexported (golint)
    • Line 176: warning: exported method FillHoursMany.HelpMessage should have comment or be unexported (golint)
    • Line 196: warning: exported method FillHoursMany.IsCompleted should have comment or be unexported (golint)
    • redmine-helper-bot/commands/fill_status.go
    • Line 11: warning: exported type FillStatus should have comment or be unexported (golint)
    • Line 16: warning: exported function NewFillStatus should have comment or be unexported (golint)
    • Line 20: warning: exported method FillStatus.Handle should have comment or be unexported (golint)
    • Line 54: warning: exported method FillStatus.IsCompleted should have comment or be unexported (golint)
    • redmine-helper-bot/commands/ls.go
    • Line 7: warning: exported type MyIssues should have comment or be unexported (golint)
    • Line 12: warning: exported function NewMyIssuesCommand should have comment or be unexported (golint)
    • Line 16: warning: exported method MyIssues.Handle should have comment or be unexported (golint)
    • Line 25: warning: exported method MyIssues.IsCompleted should have comment or be unexported (golint)
    • redmine-helper-bot/commands/set_token.go
    • Line 9: warning: exported type SetTokenCommand should have comment or be unexported (golint)
    • Line 14: warning: exported method SetTokenCommand.IsCompleted should have comment or be unexported (golint)
    • Line 22: warning: exported method SetTokenCommand.Handle should have comment or be unexported (golint)
    • redmine-helper-bot/commands/stop.go
    • Line 5: warning: exported type StopCommand should have comment or be unexported (golint)
    • Line 14: warning: exported method StopCommand.Handle should have comment or be unexported (golint)
    • Line 22: warning: exported method StopCommand.IsCompleted should have comment or be unexported (golint)
    • redmine-helper-bot/storage/storage.go
    • Line 18: warning: exported type Manager should have comment or be unexported (golint)
    • Line 28: warning: exported type RedisStorage should have comment or be unexported (golint)
    • Line 33: warning: exported method RedisStorage.SetActivity should have comment or be unexported (golint)
    • Line 37: warning: exported method RedisStorage.GetActivity should have comment or be unexported (golint)
    • Line 47: warning: exported method RedisStorage.ResetData should have comment or be unexported (golint)
    • Line 52: warning: exported method RedisStorage.SetToken should have comment or be unexported (golint)
    • Line 61: warning: exported method RedisStorage.GetToken should have comment or be unexported (golint)
    • Line 131: warning: exported method RedisStorage.SetHost should have comment or be unexported (golint)
    • Line 135: warning: exported method RedisStorage.GetHost should have comment or be unexported (golint)
    • Line 139: warning: exported function NewStorageInstance should have comment or be unexported (golint)
    • redmine-helper-bot/commands/set_host.go
    • Line 10: warning: exported type SetHostCommand should have comment or be unexported (golint)
    • Line 15: warning: exported method SetHostCommand.IsCompleted should have comment or be unexported (golint)
    • Line 23: warning: exported method SetHostCommand.Handle should have comment or be unexported (golint)
    • redmine-helper-bot/commands/intro.go
    • Line 3: warning: exported type IntroCommand should have comment or be unexported (golint)
    • Line 10: warning: exported method IntroCommand.Handle should have comment or be unexported (golint)
    • Line 27: warning: exported method IntroCommand.IsCompleted should have comment or be unexported (golint)
    • redmine-helper-bot/commands/unknown_command.go
    • Line 3: warning: exported type UnknownCommand should have comment or be unexported (golint)
    • Line 7: warning: exported function NewUnknownCommand should have comment or be unexported (golint)
    • Line 11: warning: exported function NewUnknownCommandWithMessage should have comment or be unexported (golint)
    • Line 17: warning: exported method UnknownCommand.Handle should have comment or be unexported (golint)
    • Line 21: warning: exported method UnknownCommand.IsCompleted should have comment or be unexported (golint)
    • redmine-helper-bot/storage/storage_mock.go
    • Line 5: warning: exported type Mock should have comment or be unexported (golint)
    • Line 11: warning: exported method Mock.SetActivity should have comment or be unexported (golint)
    • Line 15: warning: exported method Mock.GetActivity should have comment or be unexported (golint)
    • Line 23: warning: exported method Mock.ResetData should have comment or be unexported (golint)
    • Line 29: warning: exported method Mock.StorageHost should have comment or be unexported (golint)
    • Line 33: warning: exported method Mock.StorageToken should have comment or be unexported (golint)
    • Line 37: warning: exported function NewStorageMock should have comment or be unexported (golint)
    • Line 45: warning: exported method Mock.SetToken should have comment or be unexported (golint)
    • Line 49: warning: exported method Mock.GetToken should have comment or be unexported (golint)
    • Line 57: warning: exported method Mock.SetHost should have comment or be unexported (golint)
    • Line 61: warning: exported method Mock.GetHost should have comment or be unexported (golint)
    • redmine-helper-bot/redmine/activities.go
    • Line 7: warning: exported type ActivitiesRoot should have comment or be unexported (golint)
    • Line 11: warning: exported type Activities should have comment or be unexported (golint)
    • Line 16: warning: exported method ClientManager.Activities should have comment or be unexported (golint)
    • redmine-helper-bot/redmine/issues.go
    • Line 3: warning: exported type IssuesList should have comment or be unexported (golint)
    • Line 10: warning: exported type Issue should have comment or be unexported (golint)
    • Line 45: warning: exported type IssueContainer should have comment or be unexported (golint)
    • redmine-helper-bot/redmine/printer.go
    • Line 10: warning: exported type Printer should have comment or be unexported (golint)
    • Line 15: warning: exported type TablePrinter should have comment or be unexported (golint)
    • Line 18: warning: exported method TablePrinter.PrintIssues should have comment or be unexported (golint)
    • Line 40: warning: exported method TablePrinter.Print should have comment or be unexported (golint)
    • redmine-helper-bot/redmine/test_mock.go
    • Line 9: warning: exported type ClientRequestMock should have comment or be unexported (golint)
    • Line 15: warning: exported function NewClientRequestMock should have comment or be unexported (golint)
    • Line 19: warning: exported method ClientRequestMock.Do should have comment or be unexported (golint)
    • redmine-helper-bot/redmine/time_entry.go
    • Line 3: warning: exported type TimeEntryBody should have comment or be unexported (golint)
    • Line 7: warning: exported type TimeEntry should have comment or be unexported (golint)
    • Line 14: warning: exported type TimeEntryBodyResponse should have comment or be unexported (golint)
    • Line 18: warning: exported type TimeEntriesBodyResponse should have comment or be unexported (golint)
    • Line 22: warning: exported type TimeEntryResponseIssue should have comment or be unexported (golint)
    • Line 26: warning: exported type TimeEntryResponseActivity should have comment or be unexported (golint)
    • Line 31: warning: exported type TimeEntryResponse should have comment or be unexported (golint)
    • redmine-helper-bot/commands/partly_fill_hours.go
    • Line 16: warning: exported type PartlyFillHoursCommand should have comment or be unexported (golint)
    • Line 32: warning: exported method PartlyFillHoursCommand.IsCompleted should have comment or be unexported (golint)
    • Line 40: warning: exported function NewFillHoursCommand should have comment or be unexported (golint)
    • Line 63: warning: exported method PartlyFillHoursCommand.Handle should have comment or be unexported (golint)
    • Line 177: warning: exported method PartlyFillHoursCommand.HelpMessage should have comment or be unexported (golint)
    • redmine-helper-bot/commands.go
    • Line 14: warning: exported type BotSender should have comment or be unexported (golint)
    • Line 18: warning: exported type UpdateHandler should have comment or be unexported (golint)
    • Line 28: warning: exported method UpdateHandler.Handle should have comment or be unexported (golint)
    • Line 38: warning: exported method UpdateHandler.HandleMessage should have comment or be unexported (golint)
    • redmine-helper-bot/redmine/redmine_client.go
    • Line 14: warning: exported type Client should have comment or be unexported (golint)
    • Line 23: warning: exported function WrongStatusCodeError should have comment or be unexported (golint)
    • Line 27: warning: exported type ClientManager should have comment or be unexported (golint)
    • Line 33: warning: exported method ClientManager.TodayTimeEntries should have comment or be unexported (golint)
    • Line 48: warning: exported function NewClientManager should have comment or be unexported (golint)
    • Line 52: warning: exported method ClientManager.AssignedIssues should have comment or be unexported (golint)
    • Line 67: warning: exported method ClientManager.Issue should have comment or be unexported (golint)
    • Line 80: warning: exported method ClientManager.FillHoursRequest should have comment or be unexported (golint)
    • redmine-helper-bot/commands/activities.go
    • Line 14: warning: exported type Activities should have comment or be unexported (golint)
    • Line 26: warning: exported method Activities.Handle should have comment or be unexported (golint)
    • Line 74: warning: exported method Activities.IsCompleted should have comment or be unexported (golint)
    • redmine-helper-bot/commands/command.go
    • Line 3: warning: exported type Command should have comment or be unexported (golint)
    • Line 8: warning: exported type CommandResult should have comment or be unexported (golint)
    • Line 13: warning: exported method CommandResult.Buttons should have comment or be unexported (golint)
    • Line 17: warning: exported method CommandResult.Message should have comment or be unexported (golint)
    • Line 21: warning: exported method CommandResult.Messages should have comment or be unexported (golint)
    • Line 25: warning: exported function NewCommandResult should have comment or be unexported (golint)
    • Line 29: warning: exported function NewCommandResultWithMessages should have comment or be unexported (golint)
    • Line 33: warning: exported function NewCommandResultWithKeyboard should have comment or be unexported (golint)
    • Line 37: warning: exported function NewCommandResultWithMessagesAndKeyboard should have comment or be unexported (golint)
    • redmine-helper-bot/commands/messages.go
    • Line 8: warning: exported const WrongFillHoursWrongIssueIDResponse should have comment (or a comment on this block) or be unexported (golint)
    • Line 12: warning: exported function SuccessFillHoursMessageResponse 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!