@@ -37,10 +37,7 @@ static ALLOW_ENV_VAR_INTERPOLATION: OnceLock<bool> = OnceLock::new();
3737/// Sets whether environment variable interpolation is enabled for the process.
3838/// Must be called exactly once at startup before any config loading.
3939// https://github.com/vectordotdev/vector/issues/23659
40- #[ allow(
41- clippy:: missing_panics_doc,
42- reason = "Audit and document the existing panic conditions separately from lint enforcement."
43- ) ]
40+ #[ allow( clippy:: missing_panics_doc, reason = "Panic documentation deferred" ) ]
4441pub fn set_env_var_interpolation ( allow : bool ) {
4542 ALLOW_ENV_VAR_INTERPOLATION
4643 . set ( allow)
@@ -99,10 +96,7 @@ pub fn merge_path_lists(
9996/// Expand a list of paths (potentially containing glob patterns) into real
10097/// config paths, replacing it with the default paths when empty.
10198// https://github.com/vectordotdev/vector/issues/23659
102- #[ allow(
103- clippy:: missing_panics_doc,
104- reason = "Audit and document the existing panic conditions separately from lint enforcement."
105- ) ]
99+ #[ allow( clippy:: missing_panics_doc, reason = "Panic documentation deferred" ) ]
106100pub fn process_paths ( config_paths : & [ ConfigPath ] ) -> Option < Vec < ConfigPath > > {
107101 let starting_paths = if config_paths. is_empty ( ) {
108102 default_config_paths ( )
@@ -156,10 +150,7 @@ pub fn process_paths(config_paths: &[ConfigPath]) -> Option<Vec<ConfigPath>> {
156150}
157151
158152// https://github.com/vectordotdev/vector/issues/23659
159- #[ allow(
160- clippy:: missing_errors_doc,
161- reason = "Audit and document the existing error contracts separately from lint enforcement."
162- ) ]
153+ #[ allow( clippy:: missing_errors_doc, reason = "Error documentation deferred" ) ]
163154pub fn load_from_paths ( config_paths : & [ ConfigPath ] ) -> Result < Config , Vec < String > > {
164155 let builder = ConfigBuilderLoader :: default ( ) . load_from_paths ( config_paths) ?;
165156 let ( config, build_warnings) = builder. build_with_warnings ( ) ?;
@@ -175,10 +166,7 @@ pub fn load_from_paths(config_paths: &[ConfigPath]) -> Result<Config, Vec<String
175166/// in the builder, the config is used as bootstrapping for a remote source. Otherwise,
176167/// provider instantiation is skipped.
177168// https://github.com/vectordotdev/vector/issues/23659
178- #[ allow(
179- clippy:: missing_errors_doc,
180- reason = "Audit and document the existing error contracts separately from lint enforcement."
181- ) ]
169+ #[ allow( clippy:: missing_errors_doc, reason = "Error documentation deferred" ) ]
182170pub async fn load_from_paths_with_provider_and_secrets (
183171 config_paths : & [ ConfigPath ] ,
184172 signal_handler : & mut signal:: SignalHandler ,
@@ -219,10 +207,7 @@ pub(crate) async fn load_builder_from_paths_with_secrets(
219207}
220208
221209// https://github.com/vectordotdev/vector/issues/23659
222- #[ allow(
223- clippy:: missing_errors_doc,
224- reason = "Audit and document the existing error contracts separately from lint enforcement."
225- ) ]
210+ #[ allow( clippy:: missing_errors_doc, reason = "Error documentation deferred" ) ]
226211pub async fn load_from_str_with_secrets (
227212 input : & str ,
228213 format : Format ,
@@ -310,21 +295,15 @@ where
310295
311296/// Uses `SourceLoader` to process `ConfigPaths`, deserializing to a JSON object.
312297// https://github.com/vectordotdev/vector/issues/23659
313- #[ allow(
314- clippy:: missing_errors_doc,
315- reason = "Audit and document the existing error contracts separately from lint enforcement."
316- ) ]
298+ #[ allow( clippy:: missing_errors_doc, reason = "Error documentation deferred" ) ]
317299pub fn load_source_from_paths (
318300 config_paths : & [ ConfigPath ] ,
319301) -> Result < serde_json:: Map < String , serde_json:: Value > , Vec < String > > {
320302 loader_from_paths ( SourceLoader :: new ( ) , config_paths)
321303}
322304
323305// https://github.com/vectordotdev/vector/issues/23659
324- #[ allow(
325- clippy:: missing_errors_doc,
326- reason = "Audit and document the existing error contracts separately from lint enforcement."
327- ) ]
306+ #[ allow( clippy:: missing_errors_doc, reason = "Error documentation deferred" ) ]
328307pub fn load_from_str ( input : & str , format : Format ) -> Result < Config , Vec < String > > {
329308 let builder = load_from_inputs ( std:: iter:: once ( ( input. as_bytes ( ) , format) ) ) ?;
330309 let ( config, build_warnings) = builder. build_with_warnings ( ) ?;
@@ -357,10 +336,7 @@ fn load_from_inputs(
357336}
358337
359338// https://github.com/vectordotdev/vector/issues/23659
360- #[ allow(
361- clippy:: missing_errors_doc,
362- reason = "Audit and document the existing error contracts separately from lint enforcement."
363- ) ]
339+ #[ allow( clippy:: missing_errors_doc, reason = "Error documentation deferred" ) ]
364340pub fn prepare_input < R : std:: io:: Read > (
365341 mut input : R ,
366342 interpolate_env : bool ,
@@ -390,10 +366,7 @@ pub fn prepare_input<R: std::io::Read>(
390366}
391367
392368// https://github.com/vectordotdev/vector/issues/23659
393- #[ allow(
394- clippy:: missing_errors_doc,
395- reason = "Audit and document the existing error contracts separately from lint enforcement."
396- ) ]
369+ #[ allow( clippy:: missing_errors_doc, reason = "Error documentation deferred" ) ]
397370pub fn load < R : std:: io:: Read , T > ( input : R , format : Format ) -> Result < T , Vec < String > >
398371where
399372 T : serde:: de:: DeserializeOwned ,
0 commit comments