Skip to content

devlore-cli's pre-commit hook runs star lint shell, and shell-lint.sh is deleted #672

Open

Description

@David-Noble-at-work

Area

Engineering

Problem

devlore-cli checks its shell scripts two ways. CI and make shell-lint run star lint shell ., while the pre-commit hook, .githooks/pre-commit, runs .github/scripts/shell-lint.sh. Two checks can disagree, and they do today: the script checks scripts without an extension, and star lint shell does not (#1206).

Solution, if known

.githooks/pre-commit calls make shell-lint in place of the script, and .github/scripts/shell-lint.sh is deleted. make shell-lint already runs $(STAR) lint shell ., its plan's step 6, done before this split.

This waits on #1206. Until star lint shell checks scripts without an extension, the swap would drop .githooks/pre-commit itself from every check. The plan, docs/plans/shell-lint-via-star.md, is rewritten to this scope when the work starts.

Outstanding questions

  • Does the hook run make shell-lint on every commit, or only when a shell script is staged? make shell-lint needs a built star, and the hook builds only when Go files are staged.

Evidence of completion

Before this issue closes, a comment on it shows:

  • .githooks/pre-commit calling make shell-lint, and .github/scripts/shell-lint.sh deleted, with nothing on develop calling it but past plans; and
  • a commit that the hook stops for a bad shell script.

Split, 2026-11-06

This issue held four star defects and this devlore-cli chore. The defects are now bugs under the Star epic, #1065:

Bug Feature Was
#1206 star lint shell finds scripts by file extension only #1077, star lint shell steps 4, 5 and 9
#1208 star lint shell passes when it finds no scripts #1077, star lint shell step 3
#1207 star hook pre-commit fails at its first check #1070, star hook pre-commit steps 1 and 2
#1209 star hook pre-commit passes when a lint tool isn't installed #1070, star hook pre-commit found in the split

Related: #670, CI as a strict superset of the local checks; #863, the shell gate follows Declare-BashScript

Plan and design documents

Kind Document
Plan docs/plans/shell-lint-via-star.md

Activity

  1. changed the title [-]Shell lint runs on every check-in, through star[/-] [+]devlore-cli's pre-commit hook runs star lint shell, and shell-lint.sh is deleted[/+] on Nov 7, 2026
  2. David-Noble-at-work commented on Nov 7, 2026

    @David-Noble-at-work
    ContributorAuthor

    Split on 2026-11-06, in the Area review of NobleFactor/noblefactor-engprod#452. This issue held four star defects and one devlore-cli chore. The defects are bugs now, under the Star epic #1065: #1206 and #1208 under star lint shell (#1077), #1207 and #1209 under star hook pre-commit (#1070). This issue keeps the chore: the pre-commit hook runs make shell-lint, and .github/scripts/shell-lint.sh is deleted. Area Engineering; it waits on #1206.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions