Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .claude/hooks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Automatically runs `cargo fmt --all` after any Edit or Write operation on Rust f

### Prerequisites

The hook configured in `../.claude/settings.json` currently uses PowerShell:
The hook configured in `../.claude/settings.json` currently uses Bash:

- **Windows PowerShell**: Built into Windows (default configuration)
- Verify: `powershell --version`
Expand Down Expand Up @@ -43,12 +43,12 @@ For bash (Unix/macOS/Git Bash on Windows):
}
```

Current configuration (Windows PowerShell):
Current configuration (Bash for Linux):

```json
{
"type": "command",
"command": "powershell -File .claude/hooks/format-rust.ps1",
"command": "bash .claude/hooks/format-rust.sh",
"timeout": 120
}
```
Expand Down
Empty file modified .claude/hooks/format-rust.sh
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion .claude/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"hooks": [
{
"type": "command",
"command": "powershell -File .claude/hooks/format-rust.ps1",
"command": "bash .claude/hooks/format-rust.sh",

Copilot AI Jan 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changing from PowerShell to Bash may break the hook for Windows users who don't have Git Bash or WSL. Consider using a platform-agnostic approach or documenting the platform requirement clearly.

Suggested change
"command": "bash .claude/hooks/format-rust.sh",
"command": "cargo fmt",

Copilot uses AI. Check for mistakes.

Copilot AI Jan 17, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The command was changed from PowerShell to Bash, but the PR description mentions this is a testing framework feature and doesn't explain this unrelated configuration change. This change should either be in a separate PR or explained in the PR description as it affects Windows development environments.

Suggested change
"command": "bash .claude/hooks/format-rust.sh",
"command": ".claude/hooks/format-rust.sh",

Copilot uses AI. Check for mistakes.
"timeout": 120
}
]
Expand Down
10 changes: 7 additions & 3 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,15 @@ Source Code → Lexer → Parser → Analyzer → Type Checker → Interpreter
- `wfl --configCheck` / `wfl --configFix`: Check/fix configuration.
- `wfl --dump-env`: Dump environment for troubleshooting.
- `wfl --analyze <file>`: Run static analysis.
- `wfl --test <file>`: Run file in test mode (executes describe/test blocks).

## Key Language Features
- **Natural Language Syntax**: `store name as "value"`, `check if x is greater than 5`.
- **Type Safety**: Static typing with intelligent type inference.
- **Async Support**: Built-in async/await using Tokio runtime.
- **Pattern Matching**: Regex-like engine with Unicode support.
- **Container System**: OOP with containers.
- **Testing Framework**: Built-in testing with `describe`, `test`, and natural language assertions.
- **Security**: WFLHASH custom crypto, secure subprocess spawning.

## Coding Style & Naming
Expand All @@ -98,9 +100,11 @@ Source Code → Lexer → Parser → Analyzer → Type Checker → Interpreter
## Testing Guidelines
- **TDD is mandatory**: Write failing tests FIRST for any feature or bug fix.
- **Locations**:
- Unit/Integration: `tests/`
- End-to-End: `TestPrograms/` (must pass with release build)
- **Conventions**: feature‑oriented names (`*_test.rs`), keep perf benches under `benches/`.
- Rust Unit/Integration: `tests/`
- WFL End-to-End: `TestPrograms/` (must pass with release build)
- WFL Test Framework: Use `describe`/`test` blocks, run with `wfl --test <file>`
- **Conventions**: feature‑oriented names (`*_test.rs`, `*.test.wfl`), keep perf benches under `benches/`.
- **Testing Guide**: See `Docs/guides/testing-guide.md` for WFL testing framework documentation.

## Commit & Pull Request Guidelines
- **Conventional Commits**: `feat:`, `fix:`, `docs:`, `test:`, `refactor:`.
Expand Down
Loading