tui/keys.go

Summary

Maintainability
A
2 hrs
Test Coverage

Method UI.handleMainActions has 63 lines of code (exceeds 50 allowed). Consider refactoring.
Open

func (ui *UI) handleMainActions(key *tcell.EventKey) *tcell.EventKey {
    switch key.Rune() {
    case 'd':
        ui.handleDelete(false)
    case 'e':
Severity: Minor
Found in tui/keys.go - About 1 hr to fix

    Method UI.keyPressed has 14 return statements (exceeds 4 allowed).
    Open

    func (ui *UI) keyPressed(key *tcell.EventKey) *tcell.EventKey {
        if ui.handleCtrlZ(key) == nil {
            return nil
        }
    
    
    Severity: Major
    Found in tui/keys.go - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status