diff options
-rw-r--r-- | tui/keys.go | 1 | ||||
-rw-r--r-- | tui/mouse.go | 1 | ||||
-rw-r--r-- | tui/show.go | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/tui/keys.go b/tui/keys.go index c28ceb5..5891ba2 100644 --- a/tui/keys.go +++ b/tui/keys.go @@ -200,6 +200,7 @@ func (ui *UI) handleFiltering(key *tcell.EventKey) *tcell.EventKey { return key } +// nolint: funlen // Why: there's a lot of options to handle func (ui *UI) handleMainActions(key *tcell.EventKey) *tcell.EventKey { switch key.Rune() { case 'd': diff --git a/tui/mouse.go b/tui/mouse.go index 991c62e..75f8f1d 100644 --- a/tui/mouse.go +++ b/tui/mouse.go @@ -19,6 +19,7 @@ func (ui *UI) onMouse(event *tcell.EventMouse, action tview.MouseAction) (*tcell return nil, action } + // nolint: exhaustive // Why: we don't need to handle all mouse events switch action { case tview.MouseLeftDoubleClick: row, column := ui.table.GetSelection() diff --git a/tui/show.go b/tui/show.go index b8709fd..f8b1026 100644 --- a/tui/show.go +++ b/tui/show.go @@ -42,6 +42,7 @@ Sort by (twice toggles asc/desc): [::b]C [white:black:-]Sort by file count (asc/desc) [::b]M [white:black:-]Sort by mtime (asc/desc)` +// nolint: funlen // Why: complex function func (ui *UI) showDir() { var ( totalUsage int64 |