Skip to main content

normalize

Function normalize 

Source
pub fn normalize(repo_root: &Path, fs: &dyn Fs) -> Result<Normalized, LoadError>
Expand description

Read <repo_root>/OSS-RELEASE.md through the Fs port and normalize it.

§Errors

Returns LoadError when the file is missing, unreadable, or not UTF-8. A validation failure is not an error here — it is carried in the returned Normalized::problems; check Normalized::is_valid.