File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 uses : dtolnay/rust-toolchain@master
2222 with :
2323 toolchain : 1.95.0
24- components : rustfmt
24+ components : rustfmt, clippy
2525
2626 - name : Check C++ formatting
2727 run : find cpp2rust tests -name '*.cpp' -o -name '*.h' -o -name '*.c' | xargs clang-format --dry-run --Werror
3131 cargo fmt --manifest-path rules/Cargo.toml -- --check
3232 cargo fmt --manifest-path rule-preprocessor/Cargo.toml -- --check
3333 cargo fmt --manifest-path libcc2rs/Cargo.toml -- --check
34+ find tests -name '*.rs' -print0 | xargs -0 -r rustfmt --check
35+
36+ - name : Check Rust lints
37+ run : |
38+ cargo clippy --manifest-path rules/Cargo.toml --all-targets -- -D warnings
39+ cargo clippy --manifest-path rule-preprocessor/Cargo.toml --all-targets -- -D warnings
40+ cargo clippy --manifest-path libcc2rs/Cargo.toml --all-targets -- -D warnings
You can’t perform that action at this time.
0 commit comments