chore: Add clippy lints (#529)

Lints are added (deny) at crate level.

In each offending file, the failing lints are explicitly allowed.
Each file will be fixed in subsequent PRs.

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2025-12-23 15:59:34 -06:00
committed by GitHub
parent 604591a0f7
commit 249dcd0b43
121 changed files with 703 additions and 23 deletions
+12
View File
@@ -1,6 +1,18 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#![allow(
clippy::panic,
clippy::unwrap_used,
clippy::expect_used,
clippy::indexing_slicing,
clippy::shadow_unrelated,
clippy::semicolon_if_nothing_returned,
clippy::pattern_type_mismatch,
clippy::assertions_on_result_states,
clippy::as_conversions
)] // schema suite tests panic/unwrap to assert specific error shapes
use super::super::*;
use crate::{format, vec};
use serde_json::json;