From f545dc433513870d5faf1857bfc56edef84098b3 Mon Sep 17 00:00:00 2001 From: Aleksandr Pasechnik Date: Tue, 29 Apr 2025 15:52:51 -0400 Subject: [PATCH] chore: [SVLS-6242] adding some currently unnecessary clippy checkers for future safety --- ddcommon/clippy.toml | 4 ++++ trace-normalization/clippy.toml | 4 ++++ trace-obfuscation/clippy.toml | 4 ++++ trace-protobuf/clippy.toml | 4 ++++ trace-utils/clippy.toml | 4 ++++ 5 files changed, 20 insertions(+) create mode 100644 ddcommon/clippy.toml create mode 100644 trace-normalization/clippy.toml create mode 100644 trace-obfuscation/clippy.toml create mode 100644 trace-protobuf/clippy.toml create mode 100644 trace-utils/clippy.toml diff --git a/ddcommon/clippy.toml b/ddcommon/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/ddcommon/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +] diff --git a/trace-normalization/clippy.toml b/trace-normalization/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/trace-normalization/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +] diff --git a/trace-obfuscation/clippy.toml b/trace-obfuscation/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/trace-obfuscation/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +] diff --git a/trace-protobuf/clippy.toml b/trace-protobuf/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/trace-protobuf/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +] diff --git a/trace-utils/clippy.toml b/trace-utils/clippy.toml new file mode 100644 index 0000000000..851234080d --- /dev/null +++ b/trace-utils/clippy.toml @@ -0,0 +1,4 @@ +disallowed-methods = [ + # reqwest clients should be built with our adapter for datadog-lambda-extension bottlecap correctness + { path = "reqwest::Client::builder", reason = "prefer the FIPS-compatible adapter", replacement = "datadog_fips::reqwest_adapter::create_reqwest_client_builder" }, +]