diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..50177cc --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a9b2c2..732c38f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/rustfmt.toml b/rustfmt.toml new file mode 100644 index 0000000..a19f48d --- /dev/null +++ b/rustfmt.toml @@ -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"