You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
star lint shell passes when it finds no scripts #1208
star lint shell passes when it finds no scripts. lint-shell.star calls succeed("No shell files found"), and the lint provider's Shell, in cmd/star/provider/lint/provider.go, returns Passed: true for an empty file list. A gap in discovery, like the one in #1206, then reads as a clean check, not a failure.
To make it happen: run star lint shell on a directory that holds no scripts. It succeeds. It should fail, saying it found no scripts.
Open: whether star lint all then skips the shell check, rather than failing, in a repository that has no scripts. The lint provider's Markdown and Starlark return a pass for an empty list the same way; they are not in this issue.
Split from #672, its plan's step 3, on 2026-11-06.
Evidence of completion
Before this issue closes, a comment on it links a test in which star lint shell on a directory with no scripts fails, and one in which the lint provider's Shell fails for an empty file list.
Activity