-
Notifications
You must be signed in to change notification settings - Fork 5
Capture and log unknown fields from config file #130
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
Capture and log unknown fields from config file #130
Conversation
58e2923 to
2bf7e6e
Compare
2e59830 to
74498f2
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.
Needs changelog entry
4fd2a32 to
bd568da
Compare
bd568da to
e47e02c
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.
@me-cr Reminder that rebases on main, rather than merges from main, are preferred here
| if let Some(file_watch) = FileWatch::new(ctx) { | ||
| if params.changes.iter().any(|c| file_watch.is_relevant(c)) { | ||
| ctx.update_compilation_info(&out); | ||
| ctx.update_linter_config(&out); |
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.
@JonatanWaern We were considering adding linting config file to FileWatch, but I found that an effort was being made in this PR: #122. Are you planning on working on this?
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.
Yes, eventually I will take a second(third?) look at making file watching work properly. ATM it is entirely non-functional and my previous attempts didn't result in a clear cause. It is not a high priority atm, though.
Capture unknown fields using Serde’s flatten attribute. This approach allows us to accept valid input, ignore unknown fields during normal operation, and log them as needed, instead of rejecting them and using default configuration values.
@jvsqzj
@alecalvop