cargo-darwin 0.3.0

Darwin mutates your code, if your code still passes check tests, then your code isn't enough tested.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::path::PathBuf;

pub(crate) mod analyze;
pub(crate) mod clean;
pub(crate) mod generate;
pub(crate) mod reporting;
pub(crate) mod verify;

pub(crate) fn get_project_walker(project_path: &PathBuf) -> eyre::Result<Vec<globwalk::DirEntry>> {
    let project_path = std::fs::canonicalize(project_path)?;
    let entries =
        globwalk::GlobWalkerBuilder::from_patterns(&project_path, &["*", "*/**", "!target"])
            .build()?
            .into_iter()
            .filter_map(Result::ok)
            .collect::<Vec<globwalk::DirEntry>>();
    Ok(entries)
}