Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .claude/hooks/pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ WORKSPACE_ROOT="$(git rev-parse --show-toplevel)"
echo "Pre-commit: checking for placeholders in staged files..." >&2


# Preserve the reviewed upstream crate verbatim; this lint governs our code.
# The exact directory is intentional: adjacent vendor paths remain checked.
STAGED_RS="$(git diff --cached --name-only --diff-filter=ACM -- '*.rs' | grep -v '^vendor/libsql/' | grep -v '/tests/' | grep -v '_test\.rs' | grep -v 'test_' || true)"
STAGED_RS="$(git diff --cached --name-only --diff-filter=ACM -- '*.rs' | grep -v '/tests/' | grep -v '_test\.rs' | grep -v 'test_' || true)"

if [ -n "$STAGED_RS" ]; then
INTEGRITY_FAIL=false
Expand Down
2 changes: 1 addition & 1 deletion .claude/hooks/test-pre-commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ check_case() {
printf 'PASS %s\n' "$name"
}

check_case upstream vendor/libsql/src/lib.rs 'fn upstream() { todo!(); }' 0
check_case removed_vendor_exception vendor/libsql/src/lib.rs 'fn upstream() { todo!(); }' 1
check_case adjacent vendor/libsql-extra/src/lib.rs 'fn unexpected() { todo!(); }' 1
check_case first_party crates/example/src/lib.rs 'fn incomplete() { todo!(); }' 1
check_case complete crates/example/src/lib.rs 'fn complete() -> bool { true }' 0
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,6 @@ jobs:
if [ "$FOUND" = true ]; then exit 1; fi
echo "Integrity check: OK"

- name: Verify patched libSQL source
run: python3 scripts/check-vendored-libsql.py

- name: Pre-commit exclusion regression
run: bash .claude/hooks/test-pre-commit.sh

Expand Down
Loading
Loading