evalphobia/bobo-experiment

View on GitHub
experiment/google/example_command_room.go

Summary

Maintainability
A
35 mins
Test Coverage

Method RoomCommand.runRoom has 5 return statements (exceeds 4 allowed).
Open

func (a *RoomCommand) runRoom(d command.CommandData) command.Command {
    c := command.Command{}

    _, err := getGoogleCalendarClient()
    if err != nil {
Severity: Major
Found in experiment/google/example_command_room.go - About 35 mins to fix

    exported type RoomEvents should have comment or be unexported
    Open

    type RoomEvents []RoomEvent

    exported method RoomCommand.HasHelp should have comment or be unexported
    Open

    func (RoomCommand) HasHelp() bool {

    exported method RoomCommand.GetRegexp should have comment or be unexported
    Open

    func (RoomCommand) GetRegexp() *regexp.Regexp {

    exported method RoomCommand.GetMentionCommand should have comment or be unexported
    Open

    func (RoomCommand) GetMentionCommand() string {

    exported method RoomCommand.GetHelp should have comment or be unexported
    Open

    func (RoomCommand) GetHelp() string {

    exported type RoomCommand should have comment or be unexported
    Open

    type RoomCommand struct {

    exported type RoomEvent should have comment or be unexported
    Open

    type RoomEvent struct {

    exported method RoomCommand.Exec should have comment or be unexported
    Open

    func (a *RoomCommand) Exec(d command.CommandData) {

    There are no issues that match your filters.

    Category
    Status