mirror of
https://github.com/github/codeql.git
synced 2026-04-22 15:25:18 +02:00
Rust: ignore target in qltest
The target file created by `cargo check` was causing problems in language tests. We might want to also ignore `target` by default in the production indexing, but I'll leave that for further discussion.
This commit is contained in:
@@ -54,6 +54,7 @@ path = "main.rs"
|
||||
fn set_sources(config: &mut Config) -> anyhow::Result<()> {
|
||||
let path_iterator = glob("**/*.rs").context("globbing test sources")?;
|
||||
config.inputs = path_iterator
|
||||
.filter(|f| f.is_err() || !f.as_ref().unwrap().starts_with("target"))
|
||||
.collect::<Result<Vec<_>, _>>()
|
||||
.context("fetching test sources")?;
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user