Skip to content

Commit

Permalink
idk
Browse files Browse the repository at this point in the history
  • Loading branch information
ameknite committed Nov 17, 2023
1 parent 9bc32d5 commit d3d4163
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions tools/ci/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ bitflags! {
}
}

// const CLIPPY_FLAGS: [&str; 6] = [
// "-Wclippy::doc_markdown",
// "-Wclippy::redundant_else",
// "-Wclippy::match_same_arms",
// "-Wclippy::semicolon_if_nothing_returned",
// "-Wclippy::map_flatten",
// "-Dwarnings",
// ];
const CLIPPY_FLAGS: [&str; 6] = [
"-Wclippy::doc_markdown",
"-Wclippy::redundant_else",
"-Wclippy::match_same_arms",
"-Wclippy::semicolon_if_nothing_returned",
"-Wclippy::map_flatten",
"-Dwarnings",
];

fn main() {
// When run locally, results may differ from actual CI runs triggered by
Expand Down Expand Up @@ -78,9 +78,12 @@ fn main() {
if what_to_run.contains(Check::CLIPPY) {
// See if clippy has any complaints.
// - Type complexity must be ignored because we use huge templates for queries
cmd!(sh, "cargo clippy -- -D clippy::result_large_err")
.run()
.expect("Please fix clippy errors in output above.");
cmd!(
sh,
"cargo clippy --workspace --all-targets --all-features -- {CLIPPY_FLAGS...}"
)
.run()
.expect("Please fix clippy errors in output above.");
}

if what_to_run.contains(Check::COMPILE_FAIL) {
Expand Down

0 comments on commit d3d4163

Please sign in to comment.