Ignore symfony

This commit is contained in:
Daniil Gentili 2022-12-10 20:34:42 +01:00
parent e10f977f3b
commit 27aca6b59e

View File

@ -109,6 +109,62 @@ fn madelineproto() {
); );
} }
#[test]
fn phabel() {
test_repository(
"phabel",
"https://github.com/phabelio/phabel",
&[],
);
}
#[test]
fn psalm() {
test_repository(
"psalm",
"https://github.com/vimeo/psalm",
&[],
);
}
#[test]
fn phpstan() {
test_repository(
"phpstan",
"https://github.com/phpstan/phpstan",
&[],
);
}
#[test]
fn phpstan_src() {
test_repository(
"phpstan-src",
"https://github.com/phpstan/phpstan-src",
&[],
);
}
#[test]
fn rector() {
test_repository(
"rector",
"https://github.com/rectorphp/rector",
&[],
);
}
#[test]
fn rector_src() {
test_repository(
"rector-src",
"https://github.com/rectorphp/rector-src",
&[],
);
}
#[test] #[test]
fn composer() { fn composer() {
test_repository("composer", "https://github.com/composer/composer", &[]); test_repository("composer", "https://github.com/composer/composer", &[]);
@ -350,16 +406,17 @@ fn read_directory(root: PathBuf, directory: PathBuf, ignore: &[&str]) -> Vec<(St
continue; continue;
} }
let path = &entry
.as_path()
.strip_prefix(&root)
.unwrap()
.to_str()
.unwrap();
if entry.is_file() if entry.is_file()
&& entry.extension().unwrap_or_default() == "php" && entry.extension().unwrap_or_default() == "php"
&& !ignore.contains( && !ignore.contains(path)
&entry && !path.starts_with("vendor/symfony")
.as_path()
.strip_prefix(&root)
.unwrap()
.to_str()
.unwrap(),
)
{ {
let name_entry = entry.clone(); let name_entry = entry.clone();
let fullanme_string = name_entry.to_string_lossy(); let fullanme_string = name_entry.to_string_lossy();