Skip to content

Commit 7c4646f

Browse files
authored
Merge pull request #13 from stlab/sean-parent/if-and-short-circuit
Add if/else/else-if expressions and short-circuit &&/|| operators
2 parents 7e970f5 + cc30aa2 commit 7c4646f

6 files changed

Lines changed: 1100 additions & 38 deletions

File tree

.githooks/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
if ! cargo fmt --all --check; then
3+
echo "Formatting check failed. Run 'cargo fmt --all' and re-stage the changes."
4+
exit 1
5+
fi

CLAUDE.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@
22

33
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
44

5+
## Setup
6+
7+
After cloning, activate the shared git hooks (one-time):
8+
9+
```bash
10+
git config core.hooksPath .githooks
11+
```
12+
513
## Commands
614

715
```bash
16+
# Format (required before every commit; enforced by pre-commit hook)
17+
cargo fmt --all
18+
819
# Build
920
cargo build --workspace
1021

0 commit comments

Comments
 (0)