-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lint): Add checked files to JsonLintReporter #26936
feat(lint): Add checked files to JsonLintReporter #26936
Conversation
3ac7ae4
to
91f6ec5
Compare
bd4b10b
to
7ac14bf
Compare
45431b0
to
02767b3
Compare
02767b3
to
57d952c
Compare
57d952c
to
25cf21d
Compare
cli/tools/lint/reporters.rs
Outdated
if !self.checked_files.contains(&d.specifier.to_string()) { | ||
self.checked_files.push(d.specifier.to_string()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To have the consistent format this should probably do d.specifier.to_file_path()
@@ -175,6 +175,7 @@ struct JsonLintReporter { | |||
version: u8, | |||
diagnostics: Vec<JsonLintDiagnostic>, | |||
errors: Vec<LintError>, | |||
checked_files: Vec<String>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking this should be sorted just like diagnostics, you can do it in close()
method
63fb28c
to
305a7bf
Compare
305a7bf
to
b8d6cf5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Fixes #26930