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
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI

on:
push:
branches: [main]
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- run: cargo fmt -- --check
- run: cargo clippy -- -D warnings
- run: cargo test
387 changes: 134 additions & 253 deletions CLAUDE.md

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,12 +562,21 @@ repos = ["core", "extra"]

```bash
cargo build # Build
cargo test # Run all tests (79 tests)
cargo test # Run all tests (195 tests: 103 bin + 92 lib)
cargo test <name> # Run a single test
cargo clippy # Lint
cargo fmt # Format
```

### Development Workflow Rules

1. **Feature branches** — Never work directly on `main`. Always create a branch first.
2. **Branch naming** — Use prefixed names: `feat/xxx`, `fix/xxx`, `chore/xxx`, `refactor/xxx`, `docs/xxx`.
3. **Merge** — Only merge to `main` when everything works (tests pass, clippy clean, fmt clean). Delete the branch after merge.
4. **Atomic commits** — 1 commit = 1 concept. Better 3 small focused commits than 1 giant commit.
5. **Commit message format** — `type: clear title` + bullet points for details. Types: `feat`, `fix`, `chore`, `refactor`, `docs`.
6. **Documentation** — After every significant change, update `CLAUDE.md` (implementation state, module structure, test count), then `README.md` if user-facing features changed.

## License

GPL v3 — see [LICENSE](LICENSE) for details.
1 change: 1 addition & 0 deletions src/cli/completions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ pub fn handle(args: CompletionsArgs) -> ZlResult<()> {
}

/// Print usage instructions for installing shell completions
#[allow(dead_code)]
pub fn print_instructions(shell: Shell) {
match shell {
Shell::Bash => {
Expand Down
1 change: 1 addition & 0 deletions src/cli/deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ pub fn resolve_with_deps(
})
}

#[allow(clippy::too_many_arguments)]
fn resolve_recursive(
candidate: &PackageCandidate,
explicit: bool,
Expand Down
Loading