Skip to content

star hook pre-commit fails at its first check: it passes path= to lint.go, lint.shell and lint.markdown, and none of them takes it #1207

Open

Description

@David-Noble-at-work

Area

Product

What happens

star hook pre-commit fails at its first check. #672 recorded the error:

lint.go: unexpected keyword argument "path" (did you mean paths?)

hook-pre-commit.star calls lint.go(path="./...", ...), lint.shell(path=".", ...) and lint.markdown(path=".", ...). On develop at be7042d6 the lint provider takes paths for Go, and files for Shell and Markdown. The Go check fails first, so the shell and Markdown checks never run. #672 named the Go and shell calls; the Markdown call has the same fault.

Renaming the arguments is not the whole fix. Shell and Markdown take a list of files, not a directory, so the hook has to find the files first, as star lint shell and star lint markdown do.

To make it happen: run star hook pre-commit in devlore-cli. It should run the Go, shell and Markdown checks and report each.

Split from #672, its plan's steps 1 and 2, on 2026-11-06.

Evidence of completion

Before this issue closes, a comment on it links a run of star hook pre-commit that runs all three checks, and a test that runs the hook, so a wrong argument name fails CI.

Plan and design documents

Kind Document
Plan docs/plans/shell-lint-via-star.md, #672's plan, steps 1 and 2
Related #672; #1209, the hook passing when a tool is missing, which waits on this

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