We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4668734 commit ff0dea9Copy full SHA for ff0dea9
1 file changed
crates/ruff_linter/src/linter.rs
@@ -293,6 +293,10 @@ pub fn check_path(
293
}
294
295
if parsed.is_valid() {
296
+ // TODO(brent) I think this might cause duplicates when calling `diagnostics_to_messages`
297
+ // because that function chains `syntax_errors` with `diagnostics` after we've added some
298
+ // `syntax_errors` directly into `diagnostics` here. maybe `Message`s get deduplicated and
299
+ // it doesn't matter? this does not appear to be the case, though.
300
diagnostics.extend(
301
parsed
302
.syntax_errors(settings.target_version.into())
0 commit comments