From 4dddb0b0e2dacef5cb4ea7f15ea9ee7087d7ea92 Mon Sep 17 00:00:00 2001 From: xiongyuanwen-byted Date: Thu, 9 Jul 2026 16:44:59 +0800 Subject: [PATCH] chore(sheets): suppress forbidigo on csv-put stdin pipe detection os.Stdin.Stat is intentional here - pipe detection needs the real process fd; IOStreams.In is a plain io.Reader without Stat. Clears the lint failure left by the stdin-fallback commit. --- shortcuts/sheets/lark_sheet_write_cells.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcuts/sheets/lark_sheet_write_cells.go b/shortcuts/sheets/lark_sheet_write_cells.go index db9bab384..c66aaf69a 100644 --- a/shortcuts/sheets/lark_sheet_write_cells.go +++ b/shortcuts/sheets/lark_sheet_write_cells.go @@ -210,7 +210,7 @@ func cellsSetStyleInput(runtime flagView, token, sheetID, sheetName string) (map // tests. A char device is a terminal; anything else (pipe, redirect, /dev/null) // counts as piped input. var csvPutStdinIsPipe = func() bool { - fi, err := os.Stdin.Stat() + fi, err := os.Stdin.Stat() //nolint:forbidigo // pipe detection needs the real process fd; IOStreams.In is a plain io.Reader without Stat if err != nil { return false }