Compare commits
2 commits
0.x
...
sl-support
| Author | SHA1 | Date | |
|---|---|---|---|
| 94dd70fd5a | |||
| e69668b926 |
1 changed files with 5 additions and 0 deletions
|
|
@ -10,12 +10,17 @@ pub fn find_files(options: Options) -> Vec<String> {
|
||||||
let base_path = &fs::canonicalize(options.directory).unwrap();
|
let base_path = &fs::canonicalize(options.directory).unwrap();
|
||||||
|
|
||||||
let mut builder = WalkBuilder::new(base_path);
|
let mut builder = WalkBuilder::new(base_path);
|
||||||
|
// Search for hidden files and directories
|
||||||
builder.hidden(false);
|
builder.hidden(false);
|
||||||
|
// Don't require a git repo to use .gitignore files. We want to use the .gitignore files
|
||||||
|
// wherever we are
|
||||||
|
builder.require_git(false);
|
||||||
|
|
||||||
// TODO(ade): Remove unwraps and find a good way to get the errors into the UI. Currently there
|
// TODO(ade): Remove unwraps and find a good way to get the errors into the UI. Currently there
|
||||||
// is no way to handel errors in the rust library
|
// is no way to handel errors in the rust library
|
||||||
let mut override_builder = OverrideBuilder::new("");
|
let mut override_builder = OverrideBuilder::new("");
|
||||||
override_builder.add("!.git").unwrap();
|
override_builder.add("!.git").unwrap();
|
||||||
|
override_builder.add("!.sl").unwrap();
|
||||||
|
|
||||||
let overrides = override_builder.build().unwrap();
|
let overrides = override_builder.build().unwrap();
|
||||||
builder.overrides(overrides);
|
builder.overrides(overrides);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue