fn filter_diagnostics( diagnostics: Vec<Diagnostic>, lint: &LintConfiguration, path: &Path, ) -> Vec<Diagnostic>