diff --git a/.golangci.yaml b/.golangci.yaml index 5ab96afc..03217be5 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -8,6 +8,11 @@ linters-settings: gosec: excludes: - G306 + forbidigo: + forbid: + - "^(fmt\\.Print(|f|ln)|print|println)$" + - p: "^tea\\.Quit$" + msg: tea.Quit may cause a memory leak linters: enable: diff --git a/internal/movie/player.go b/internal/movie/player.go index decad7d2..71779050 100644 --- a/internal/movie/player.go +++ b/internal/movie/player.go @@ -158,7 +158,7 @@ func (p Player) Update(msg tea.Msg) (tea.Model, tea.Cmd) { } p.clearTimeouts() p.zone.Close() - return p, tea.Quit + return p, tea.Quit //nolint:forbidigo case PlayerOption: p.optionViewStale = true return p, p.doPlayerOption(msg)