Skip to content

Commit

Permalink
Forward arguments from bevy lint to cargo check (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 authored Sep 13, 2024
1 parent b310679 commit 6cd10c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bevy_lint/src/bin/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ fn main() -> anyhow::Result<()> {
// Run `cargo check`.
let status = Command::new("cargo")
.arg("check")
// Forward all arguments to `cargo check` except for the first, which is the path to the
// current executable.
.args(std::env::args().skip(1))
// This instructs `rustc` to call `bevy_lint_driver` instead of its default routine.
// This lets us register custom lints.
.env("RUSTC_WORKSPACE_WRAPPER", driver_path)
Expand Down

0 comments on commit 6cd10c4

Please sign in to comment.