-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blocklist 2 #579
base: main
Are you sure you want to change the base?
Blocklist 2 #579
Conversation
…s, added blacklist check for dirs without vcs
TODO:
Testing:
|
TODO:
Test:
|
) { | ||
let mut candidates: Vec<PathBuf> = vec![path.clone()]; | ||
let mut candidates: Vec<PathBuf> = vec![crate::files_correction::canonical_path(&path.to_string_lossy().to_string())]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I think to_pathbuf_normalize
needs to be used because canonical_path
does not handle well Windows normalization, we still need to merge this to methods in the future, but for now we should use to_pathbuf_normalize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm I see canonical_path is also used a lot over the place, perhaps it's time to merge it with to_pathbuf_normalize (like to put logic of to_pathbuf_normalize into canonical_path)
# | ||
|
||
blocklist: | ||
- "*/dist/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be the same as the default list compiled in rust?
vcs_folders.push(checkme.clone()); | ||
let indexing_yaml_path = checkme.join(".refact").join("indexing.yaml"); | ||
if indexing_yaml_path.exists() { | ||
match crate::files_blocklist::load_indexing_yaml(&indexing_yaml_path, Some(&checkme)).await { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't reload indexing if needed be used here to not load the yaml multiple times while listing files?
No description provided.