pub fn load_codeowners(
root: &Path,
config: &ResolvedConfig,
) -> Result<Option<CodeOwners>, String>Expand description
Load the project CODEOWNERS file: the configured codeowners path when
set, else the first of the standard locations.
Returns Ok(None) when no path is configured and no standard location
holds a file that parses, so the brief omits the section.
ยงErrors
Returns the reason when a configured codeowners path cannot be read or
does not parse. The caller reports it, because the user asked for that
file.