jkawamoto/loci

View on GitHub
command/display.go

Summary

Maintainability
A
1 hr
Test Coverage

Function NewDisplay has 6 return statements (exceeds 4 allowed).
Open

func NewDisplay(ctx context.Context, title string, maxSection int) (display *Display, nctx context.Context, err error) {

    g, err := gocui.NewGui(gocui.OutputNormal)
    if err != nil {
        return
Severity: Major
Found in command/display.go - About 40 mins to fix

    Method Display.Layout has 5 return statements (exceeds 4 allowed).
    Open

    func (d *Display) Layout(g *gocui.Gui) error {
        if d.closed {
            return fmt.Errorf("Display has been closed already")
        }
    
    
    Severity: Major
    Found in command/display.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status