Investigate adding a lint or some automated check which detects when a serde default is defined on a config setting which is of type Option<T>
.
#16756
Labels
domain: config
Anything related to configuring Vector
meta: idea
Anything in the idea phase. Needs further discussion and consensus before work can begin.
type: tech debt
A code change that does not add user value.
As part of the postmortem to #16630 , one long(er) term idea was to automate the detection of for example
, since that shouldn't be an
Option<T>
at this point. It should just be a the type itself.This is a code smell and can lead to the issues like in the aforementioned bug.
It looks like we are doing that in a few places already:
The text was updated successfully, but these errors were encountered: