From 36262858461711bcb104896007a513691113fee8 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Tue, 23 Jun 2026 21:13:26 -0400 Subject: feat(languages): add bash/shell bundle Shell-heavy projects had no bundle that fit. archangel and archsetup are bash repos, and installing elisp or python gave them the wrong language rules. I added languages/bash on the go bundle's shape. The bundle ships bash.md and bash-testing.md rules, a PostToolUse hook that runs shellcheck on edited shell files and blocks on a violation, a shellcheck pre-commit githook, settings.json wiring, gitignore-add.txt, and a "Bash/shell project" CLAUDE.md. The hook covers .sh, .bash, and extensionless files with a shell shebang, since the CLI tools that fill a shell repo carry no extension. shellcheck is the gate. shfmt stays out of the blocking path because shell has no canonical formatting style, and forcing tabs-vs-spaces would impose a contested choice. Both the hook and the githook are shellcheck-clean against their own rule. I extended the Makefile test target to discover languages/*/tests/*.bats, so the bundle's 8 hook tests run with the rest of the suite. The README bundle table was stale, listing elisp only. I corrected it to the five bundles now shipping. --- README.org | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'README.org') diff --git a/README.org b/README.org index 067a2a1..f445c26 100644 --- a/README.org +++ b/README.org @@ -80,9 +80,18 @@ re-encrypt. See [[file:mcp/README.org][mcp/README.org]] for the full pipeline. * Available languages -| Language | Path | Notes | -|----------+------------------+----------------------------------------------| -| elisp | =languages/elisp/= | Emacs Lisp — ERT, check-parens, byte-compile | +| Language | Path | Notes | +|------------+-------------------------+-----------------------------------------------| +| bash | =languages/bash/= | Shell, shellcheck validate hook, bats tests | +|------------+-------------------------+-----------------------------------------------| +| elisp | =languages/elisp/= | Emacs Lisp, ERT, check-parens, byte-compile | +|------------+-------------------------+-----------------------------------------------| +| go | =languages/go/= | Go, gofmt + go vet hook, table-driven tests | +|------------+-------------------------+-----------------------------------------------| +| python | =languages/python/= | Python, pytest, coverage-summary | +|------------+-------------------------+-----------------------------------------------| +| typescript | =languages/typescript/= | TypeScript, coverage-summary | +|------------+-------------------------+-----------------------------------------------| Add more by creating =languages//= with the same structure. -- cgit v1.2.3