-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: onur-ozkan <work@onurozkan.dev>
- Loading branch information
1 parent
b6e4299
commit 05b8bd6
Showing
6 changed files
with
74 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
use crate::core::builder::Builder; | ||
use std::path::PathBuf; | ||
|
||
pub fn lint(build: &Builder<'_>, paths: &[PathBuf]) { | ||
if build.config.dry_run() { | ||
return; | ||
} | ||
|
||
let compiler = build.compiler(0, build.config.build); | ||
|
||
for path in paths { | ||
let mut clippy = build.cargo_clippy_cmd(compiler); | ||
clippy.current_dir(path); | ||
|
||
clippy.env("RUSTC_BOOTSTRAP", "1"); | ||
clippy.args(["--all-targets", "--all-features", "--", "--D", "warnings"]); | ||
build.run(&mut clippy); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters