1
0
Fork 0
mirror of synced 2024-05-13 00:43:00 +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; continue;
} }
if expression == "DEFAULT" { if expression == "DEFAULT" {
// TODO add more files by default if cfg!(target_family = "unix") {
checked_expressions.push("*/.git/*".to_string()); 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; continue;
} }
if !expression.contains('*') { if !expression.contains('*') {