diff --git a/src/include_rules.rs b/src/include_rules.rs index 421b19a..50bd457 100644 --- a/src/include_rules.rs +++ b/src/include_rules.rs @@ -218,7 +218,7 @@ pub fn resolve( } if !patterns.is_empty() { println!( - "Applying {} project include rule(s) from Corgea: {}.", + "\n\nApplying {} project include rule(s) from Corgea: {}.", patterns.len(), patterns.join(", ") ); diff --git a/src/scanners/blast.rs b/src/scanners/blast.rs index e162552..7ad40b9 100644 --- a/src/scanners/blast.rs +++ b/src/scanners/blast.rs @@ -418,7 +418,7 @@ fn start_new_scan( // default excludes (which cover `**/*.env` among others), so whoever // reads the log needs to see what actually went into the archive. println!( - "Force-including {} file(s) Corgea would otherwise skip:", + "\nForce-including {} file(s) Corgea would otherwise skip:", force_included.len() ); for path in force_included.iter().take(FORCE_INCLUDE_PREVIEW) { diff --git a/src/utils/generic.rs b/src/utils/generic.rs index 829ca0b..291a0a0 100644 --- a/src/utils/generic.rs +++ b/src/utils/generic.rs @@ -43,7 +43,6 @@ const DEFAULT_EXCLUDE_GLOBS: &[&str] = &[ "**/specs/**", "**/node_modules/**", "**/tmp/**", - "**/migrations/**", "**/python*/site-packages/**", "**/*.mmdb", "**/*.css", @@ -1134,6 +1133,8 @@ mod tests { assert!(set.is_match(Path::new("/tmp/proj/app.py"))); assert!(!set.is_match(Path::new("app.py"))); assert!(!set.is_match(Path::new("src/app.py"))); + assert!(!set.is_match(Path::new("migrations/0001_initial.py"))); + assert!(!set.is_match(Path::new("app/migrations/0001_initial.py"))); } #[test]