mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Rust: only accept options.yml in QL tests
This commit is contained in:
@@ -62,13 +62,7 @@ impl Config {
|
|||||||
.ancestors()
|
.ancestors()
|
||||||
// only travel up while we're within the test pack
|
// only travel up while we're within the test pack
|
||||||
.take_while_inclusive(|p| !p.join("qlpack.yml").exists())
|
.take_while_inclusive(|p| !p.join("qlpack.yml").exists())
|
||||||
.flat_map(|p| {
|
.map(|p| p.join("options.yml"))
|
||||||
[
|
|
||||||
p.join("options"),
|
|
||||||
p.join("options.yml"),
|
|
||||||
p.join("options.yaml"),
|
|
||||||
]
|
|
||||||
})
|
|
||||||
.filter(|p| p.exists())
|
.filter(|p| p.exists())
|
||||||
.collect_vec();
|
.collect_vec();
|
||||||
option_files.reverse();
|
option_files.reverse();
|
||||||
|
|||||||
Reference in New Issue
Block a user