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.
This commit is contained in:
xiongyuanwen-byted
2026-07-09 16:44:59 +08:00
parent 4b2fec1e5b
commit 4dddb0b0e2

View File

@@ -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
}