otiai10/amesh-bot

View on GitHub
commands/image.go

Summary

Maintainability
A
3 hrs
Test Coverage

Method ImageCommand.Execute has 89 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (cmd ImageCommand) Execute(ctx context.Context, client service.ISlackClient, event slackevents.AppMentionEvent) (err error) {

    help := bytes.NewBuffer(nil)
    unsafe := false
    verbose := false
Severity: Major
Found in commands/image.go - About 2 hrs to fix

    Method ImageCommand.Execute has 7 return statements (exceeds 4 allowed).
    Open

    func (cmd ImageCommand) Execute(ctx context.Context, client service.ISlackClient, event slackevents.AppMentionEvent) (err error) {
    
        help := bytes.NewBuffer(nil)
        unsafe := false
        verbose := false
    Severity: Major
    Found in commands/image.go - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status