Files
tuliprox/shared/src/lib.rs
T

36 lines
2.4 KiB
Rust
Raw Normal View History

2026-08-27 18:36:23 +05:00
// Shared clippy policy: see [workspace.lints.clippy] in the root Cargo.toml.
//
2026-08-31 01:20:31 +02:00
// Machine-applicable fixes have already been applied. The remaining allowances
// document established DTO, serde, and parser APIs that need deliberate changes
// rather than mechanical rewrites. They are local to this crate; other workspace
// crates inherit the strict policy without this list.
2026-08-27 18:36:23 +05:00
#![allow(clippy::cast_possible_truncation)] // bounded lengths/ids in wire DTOs
#![allow(clippy::cast_possible_wrap)] // bounded lengths/ids in wire DTOs
#![allow(clippy::cast_precision_loss)] // integer -> f64 for display/ratio maths
#![allow(clippy::cast_sign_loss)] // bounded non-negative values
#![allow(clippy::trivially_copy_pass_by_ref)] // `&T` predicates required by serde `skip_serializing_if`
#![allow(clippy::ref_option)] // `&Option<T>` required by serde `skip_serializing_if`
#![allow(clippy::unreadable_literal)] // checked-in table constants
#![allow(clippy::match_same_arms)] // arms kept separate to mirror the DTO variant order
#![allow(clippy::struct_excessive_bools)] // config DTOs mirror the user-facing YAML shape
#![allow(clippy::missing_panics_doc)] // legacy infallible helpers still expose panic contracts
#![allow(clippy::unnecessary_wraps)] // signatures kept uniform across DTO conversions
#![allow(clippy::manual_let_else)] // existing parser branches mirror input grammar
#![allow(clippy::too_many_lines)] // large serde model conversion tables
#![allow(clippy::format_collect)] // formatting iterators directly keeps DTO rendering local
#![allow(clippy::assigning_clones)] // DTO updates intentionally retain their source values
#![allow(clippy::unused_self)] // trait-compatible DTO helper methods
#![allow(clippy::similar_names)] // domain vocabulary contains intentionally similar field names
#![allow(clippy::needless_continue)] // parser loops keep exceptional branches explicit
#![allow(clippy::float_cmp)] // exact sentinel and round-trip comparisons
#![allow(clippy::needless_pass_by_value)] // serde and conversion APIs own their inputs
#![allow(clippy::missing_fields_in_debug)] // redacted DTO debug output omits sensitive fields
#![allow(clippy::implicit_hasher)] // public collection helpers preserve their established API
#![allow(clippy::default_trait_access)] // explicit defaults identify the constructed DTO type
2026-07-08 11:52:22 +02:00
pub mod defaults;
2025-06-19 16:37:37 +02:00
pub mod error;
pub mod foundation;
pub mod model;
2025-06-24 01:06:25 +02:00
pub mod utils;