Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/include_rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(", ")
);
Expand Down
2 changes: 1 addition & 1 deletion src/scanners/blast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
3 changes: 2 additions & 1 deletion src/utils/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const DEFAULT_EXCLUDE_GLOBS: &[&str] = &[
"**/specs/**",
"**/node_modules/**",
"**/tmp/**",
"**/migrations/**",
"**/python*/site-packages/**",
Comment thread
cursor[bot] marked this conversation as resolved.
"**/*.mmdb",
"**/*.css",
Expand Down Expand Up @@ -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]
Expand Down
Loading