Skip to main content

extract_codeowners

Function extract_codeowners 

Source
pub fn extract_codeowners(
    source_path: &str,
    input: &str,
) -> Result<DocumentationDocument, DocumentationExtractionError>
Expand description

Extracts precedence-preserving ownership rules from a CODEOWNERS file.

Escaped spaces and comment markers are decoded. Unsupported patterns and invalid owners are omitted rather than broadened.

ยงErrors

Returns DocumentationExtractionError::InputTooLarge or DocumentationExtractionError::SourcePathTooLong when a bound is exceeded.