Skip to content

star lint shell passes when it finds no scripts #1208

Open

Description

@David-Noble-at-work

Area

Product

What happens

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.

Plan and design documents

Kind Document
Plan docs/plans/shell-lint-via-star.md, #672's plan, step 3
Related #1206, discovery by extension only; #837, the lint provider

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions