1
0
Fork 0
mirror of synced 2024-04-28 17:42:26 +12:00

Add more default excluded items

This commit is contained in:
Rafał Mikrut 2020-12-23 22:17:04 +01:00
parent afaa402b31
commit 05c8153b1a

View file

@ -32,8 +32,12 @@ impl ExcludedItems {
continue;
}
if expression == "DEFAULT" {
// TODO add more files by default
checked_expressions.push("*/.git/*".to_string());
if cfg!(target_family = "unix") {
checked_expressions.push("*/.git/*,*/node_modules/*,*/lost+found/*,*/Trash/*,*/.Trash-*/*,*/snap/*".to_string());
}
if cfg!(target_family = "windows") {
checked_expressions.push("*/.git/*,*/node_modules/*,*/lost+found/*,*:/windows/*".to_string());
}
continue;
}
if !expression.contains('*') {