-
Notifications
You must be signed in to change notification settings - Fork 14
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(config): preserve comments in the static analysis configuration file - IDE-2599 #472
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
robertohuertasm
changed the title
feat(config): preserve comments in the static analysis configuration file
feat(config): preserve comments in the static analysis configuration file - IDE-2599
Jul 29, 2024
robertohuertasm
force-pushed
the
rob/feat/preserve-comments
branch
2 times, most recently
from
July 30, 2024 13:50
e68729c
to
43e9bcf
Compare
m-paternostro
approved these changes
Jul 30, 2024
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.
Looks good! 👏
jacobotb
reviewed
Jul 31, 2024
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.
A couple of high-quality, value-add comments.
...rc/bin/datadog_static_analyzer_server/ide/configuration_file/comment_preserver/reconciler.rs
Outdated
Show resolved
Hide resolved
…ails avoid map_err
robertohuertasm
force-pushed
the
rob/feat/preserve-comments
branch
from
July 31, 2024 12:15
c699c3e
to
b61e46c
Compare
jacobotb
approved these changes
Jul 31, 2024
Co-authored-by: Jacobo Tarrío <158186053+jacobotb@users.noreply.github.com>
albertvaka
reviewed
Jul 31, 2024
...rc/bin/datadog_static_analyzer_server/ide/configuration_file/comment_preserver/reconciler.rs
Show resolved
Hide resolved
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What problem are you trying to solve?
The main problem is that the comments of the configuration file are removed after modification due to the deserialization and serialization process. Some users have complained about it.
What is your solution?
Added support for comment preservation and pretty formatting.
Alternatives considered
What the reviewer should know
The last commit fixes some
clippy
warnings that were triggering when committing or pushing (via cargo-husky). I had to touch some files outside theide
folder. For some reason, we're using-D warnings
locally but not in the CI. I didn't want to modify any of this but I guess it would be nice to reconcile this difference at some point.preserving_comments_in_rust.mp4
IDE-2599