Skip to content
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
merged 23 commits into from
Jul 31, 2024

Conversation

robertohuertasm
Copy link
Member

@robertohuertasm robertohuertasm commented Jul 28, 2024

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 the ide 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

@robertohuertasm robertohuertasm requested review from a team as code owners July 28, 2024 19:50
@robertohuertasm robertohuertasm requested a review from jacobotb July 28, 2024 19:51
@robertohuertasm 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 robertohuertasm marked this pull request as draft July 29, 2024 19:50
@robertohuertasm robertohuertasm marked this pull request as ready for review July 29, 2024 20:01
@robertohuertasm robertohuertasm force-pushed the rob/feat/preserve-comments branch 2 times, most recently from e68729c to 43e9bcf Compare July 30, 2024 13:50
Copy link

@m-paternostro m-paternostro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! 👏

Copy link
Contributor

@jacobotb jacobotb left a 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.

@robertohuertasm robertohuertasm force-pushed the rob/feat/preserve-comments branch from c699c3e to b61e46c Compare July 31, 2024 12:15
LICENSE-3rdparty.csv Outdated Show resolved Hide resolved
Co-authored-by: Jacobo Tarrío <158186053+jacobotb@users.noreply.github.com>
@robertohuertasm robertohuertasm merged commit e039616 into main Jul 31, 2024
61 of 64 checks passed
@robertohuertasm robertohuertasm deleted the rob/feat/preserve-comments branch July 31, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants