pub struct ScanConfig<'a> {
pub skip_changes: bool,
pub should_add_coverage: bool,
pub coverage_dir_override: Option<&'a Path>,
pub current_dir: &'a Path,
pub project_dir: Option<&'a Path>,
pub ignore_paths: Vec<PathBuf>,
pub ownership_only: bool,
pub include_skipped_dirs: bool,
}Expand description
Configuration options for scanning features
Fields§
§skip_changes: boolWhether to include git history (changes, commits, stats)
should_add_coverage: boolWhether to add coverage information to features
coverage_dir_override: Option<&'a Path>Optional override for coverage directory location If None, will search in multiple default locations
current_dir: &'a PathCurrent working directory (used for finding coverage)
project_dir: Option<&'a Path>Optional project directory (used for finding coverage)
ignore_paths: Vec<PathBuf>Paths to ignore (and all their subfolders) when scanning for features
ownership_only: boolOnly resolve feature ownership (name, owner, path, nested features). Skips git history, stats, decisions, metadata, dependencies and coverage.
include_skipped_dirs: boolScan folders that are skipped by default (see skip_dirs::SKIPPED_DIRS)
Implementations§
Source§impl<'a> ScanConfig<'a>
impl<'a> ScanConfig<'a>
Sourcepub fn new(current_dir: &'a Path) -> Self
pub fn new(current_dir: &'a Path) -> Self
Create a new ScanConfig with minimal required parameters
Sourcepub fn skip_changes(self, skip: bool) -> Self
pub fn skip_changes(self, skip: bool) -> Self
Set whether to skip git history
Sourcepub fn with_coverage(self, should_add: bool) -> Self
pub fn with_coverage(self, should_add: bool) -> Self
Set whether to add coverage information
Sourcepub fn coverage_dir(self, dir: &'a Path) -> Self
pub fn coverage_dir(self, dir: &'a Path) -> Self
Set a specific coverage directory to use
Sourcepub fn project_dir(self, dir: &'a Path) -> Self
pub fn project_dir(self, dir: &'a Path) -> Self
Set the project directory for finding coverage
Sourcepub fn ignore_paths(self, paths: Vec<PathBuf>) -> Self
pub fn ignore_paths(self, paths: Vec<PathBuf>) -> Self
Set the paths to ignore (and all their subfolders) when scanning for features
Sourcepub fn ownership_only(self, ownership_only: bool) -> Self
pub fn ownership_only(self, ownership_only: bool) -> Self
Set whether to only resolve feature ownership (e.g. for CODEOWNERS generation)
Sourcepub fn include_skipped_dirs(self, include_skipped_dirs: bool) -> Self
pub fn include_skipped_dirs(self, include_skipped_dirs: bool) -> Self
Set whether to scan folders that are skipped by default