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
26 changes: 26 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Normalise line endings to LF on commit, regardless of the contributor's
# platform. Eliminates the noisy "LF will be replaced by CRLF" warnings
# we accumulated while developing on Windows.

* text=auto eol=lf

# Binary files: leave them alone.
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.wasm binary
*.pdf binary

# Rust / TOML / YAML / Markdown explicitly LF.
*.rs text eol=lf
*.toml text eol=lf
*.yml text eol=lf
*.yaml text eol=lf
*.md text eol=lf
*.json text eol=lf

# Windows-only scripts keep CRLF endings so cmd.exe still runs them.
*.bat text eol=crlf
*.cmd text eol=crlf
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,16 @@ jobs:
with:
workspaces: "tools/ai-review -> tools/ai-review/target"
- run: cargo test --workspace --all-features --no-fail-fast

msrv:
name: MSRV check (Rust 1.88)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: "1.88.0"
- uses: Swatinem/rust-cache@v2
with:
workspaces: "tools/ai-review -> tools/ai-review/target"
- run: cargo check --workspace --all-features --all-targets
6 changes: 6 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
edition = "2021"
max_width = 100
use_small_heuristics = "Default"
# imports_granularity and group_imports require nightly; uncomment if using nightly toolchain.
# imports_granularity = "Crate"
# group_imports = "StdExternalCrate"