pub fn lint(dir: &Path, target: Option<&str>) -> Result<LintReport, CliError>
With no target, every file’s own rules and every entry point’s types; with one, those of each file it reaches and the interval a render of it reads.