diff options
author | Daniel Milde <daniel@milde.cz> | 2024-04-30 16:22:00 +0200 |
---|---|---|
committer | Daniel Milde <daniel@milde.cz> | 2024-04-30 16:22:00 +0200 |
commit | 11c7345d885108156e42cfc4e38a7e8bea0e2919 (patch) | |
tree | 030222cf6e69809c145ee07941d380cdae1a09f3 | |
parent | 3a607e4b8730022c2888a45c84a1c8604eb85aa2 (diff) |
chore: nolints
-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 |