pub(crate) struct AtlasMapConfig {Show 24 fields
pub(crate) root: PathBuf,
pub(crate) map_path: PathBuf,
pub(crate) nonsource_files_path: PathBuf,
purpose_filename: String,
source_extensions: BTreeSet<String>,
exclude_dir_names: BTreeSet<String>,
exclude_dir_suffixes: BTreeSet<String>,
exclude_path_prefixes: BTreeSet<String>,
non_source_path_prefixes: BTreeSet<String>,
language_overrides: BTreeMap<String, String>,
allowed_untracked_filenames: BTreeSet<String>,
untracked_allowlist_dir_prefixes: BTreeSet<String>,
untracked_allowlist_files: BTreeSet<String>,
asset_allowed_prefixes: BTreeSet<String>,
asset_extensions: BTreeSet<String>,
db_path: PathBuf,
max_scan_lines: usize,
text_index_max_bytes: u64,
summary_max_length: usize,
summary_ascii_only: bool,
summary_no_commas: bool,
purpose_styles: BTreeMap<String, String>,
purpose_default_style: String,
line_comment_prefixes: Vec<String>,
}Expand description
Normalized atlas map configuration.
Fields§
§root: PathBufRepository root.
map_path: PathBufGenerated TOON map path.
nonsource_files_path: PathBufNon-source file summary path.
purpose_filename: StringPurpose filename.
source_extensions: BTreeSet<String>Source extensions that require purpose headers.
exclude_dir_names: BTreeSet<String>Excluded directory names.
exclude_dir_suffixes: BTreeSet<String>Excluded directory suffixes.
exclude_path_prefixes: BTreeSet<String>Excluded repository-relative prefixes.
non_source_path_prefixes: BTreeSet<String>Prefixes treated as non-source even when extensions match.
language_overrides: BTreeMap<String, String>Validated exact-filename or extension language overrides.
allowed_untracked_filenames: BTreeSet<String>Allowed untracked filenames.
untracked_allowlist_dir_prefixes: BTreeSet<String>Allowed untracked directory prefixes.
untracked_allowlist_files: BTreeSet<String>Allowed untracked files.
asset_allowed_prefixes: BTreeSet<String>Allowed asset root prefixes.
asset_extensions: BTreeSet<String>Asset extensions.
db_path: PathBufDurable SQLite index path.
max_scan_lines: usizeMaximum lines to scan for purpose headers.
text_index_max_bytes: u64Maximum UTF-8 file size persisted into SQLite text search.
summary_max_length: usizeMaximum purpose summary length.
summary_ascii_only: boolWhether summaries must be ASCII.
summary_no_commas: boolWhether summaries may contain commas.
purpose_styles: BTreeMap<String, String>Per-extension purpose styles.
purpose_default_style: StringDefault purpose style.
line_comment_prefixes: Vec<String>Supported line-comment prefixes.
Implementations§
Source§impl AtlasMapConfig
impl AtlasMapConfig
Sourcepub(crate) fn with_database_path(self, database_path: &Path) -> Self
pub(crate) fn with_database_path(self, database_path: &Path) -> Self
Bind database-backed map and lint work to the selected runtime database.
Sourcepub(crate) fn scan_options(&self) -> ScanOptions
pub(crate) fn scan_options(&self) -> ScanOptions
Return scanner options derived from the normalized project config.
Sourcepub(crate) fn text_index_max_bytes(&self) -> u64
pub(crate) fn text_index_max_bytes(&self) -> u64
Return the configured maximum UTF-8 file size for SQLite text search.
Sourcepub(crate) fn purpose_filename(&self) -> &str
pub(crate) fn purpose_filename(&self) -> &str
Return the configured legacy folder-purpose filename.
Trait Implementations§
Source§impl Clone for AtlasMapConfig
impl Clone for AtlasMapConfig
Source§fn clone(&self) -> AtlasMapConfig
fn clone(&self) -> AtlasMapConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for AtlasMapConfig
impl RefUnwindSafe for AtlasMapConfig
impl Send for AtlasMapConfig
impl Sync for AtlasMapConfig
impl Unpin for AtlasMapConfig
impl UnwindSafe for AtlasMapConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more