Systematic clippy warning cleanup achieving zero warnings: - Add domain-appropriate crate-level #![allow(...)] to 20+ crate roots for pedantic lints that are noise in HFT/ML code (float_arithmetic, indexing_slicing, missing_const_for_fn, cognitive_complexity, etc.) - Fix attribute ordering in risk/src/lib.rs: move #![warn(clippy::pedantic)] before #![allow(...)] so individual allows correctly override pedantic - Remove module-level #![warn(clippy::pedantic)] from 8 trading_engine submodules that were overriding crate-level allows - Add 45+ workspace-level lint allows in Cargo.toml for common pedantic noise (mixed_attributes_style, cargo_common_metadata, etc.) - Auto-fix 67 machine-applicable warnings (redundant_closure, clone_on_copy, unnecessary_cast, etc.) via cargo clippy --fix - Fix 3 unsafe JSON indexing in risk/circuit_breaker.rs with safe .get() - Fix unused variables, unused mut, unnecessary parens in 4 files - Proto-generated code: suppress missing_const_for_fn, indexing_slicing, cognitive_complexity in ctrader-openapi and service crates 75 files changed across 20+ crates. All tests pass (3,122+ verified). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
59 lines
1.5 KiB
Rust
59 lines
1.5 KiB
Rust
//! Backtesting Service Library
|
|
//!
|
|
//! This library exposes the core functionality of the backtesting service
|
|
//! for testing purposes.
|
|
|
|
#![warn(missing_docs)]
|
|
#![deny(clippy::unwrap_used, clippy::expect_used)]
|
|
#![cfg_attr(test, allow(clippy::unwrap_used, clippy::expect_used))]
|
|
// Backtesting service domain lints: generated protobuf code and strategy engine
|
|
#![allow(clippy::mixed_attributes_style)] // Generated protobuf code uses mixed attributes
|
|
#![allow(clippy::duplicated_attributes)] // Generated protobuf code has duplicated attributes
|
|
#![allow(clippy::too_many_arguments)] // Strategy engine functions need many parameters
|
|
|
|
/// Performance analysis and metrics
|
|
pub mod performance;
|
|
|
|
/// Repository traits for data access
|
|
pub mod repositories;
|
|
|
|
/// Repository implementations
|
|
pub mod repository_impl;
|
|
|
|
/// DBN data source for real market data
|
|
pub mod dbn_data_source;
|
|
|
|
/// DBN-based repository implementation
|
|
pub mod dbn_repository;
|
|
|
|
/// gRPC service implementation
|
|
pub mod service;
|
|
|
|
/// Storage management
|
|
pub mod storage;
|
|
|
|
/// Strategy execution engine
|
|
pub mod strategy_engine;
|
|
|
|
/// ML-powered strategy engine
|
|
pub mod ml_strategy_engine;
|
|
|
|
/// Wave comparison backtesting
|
|
pub mod wave_comparison;
|
|
|
|
/// TLS configuration
|
|
pub mod tls_config;
|
|
|
|
/// Simple Prometheus metrics
|
|
pub mod simple_metrics;
|
|
|
|
/// Generated gRPC code
|
|
#[allow(missing_docs)]
|
|
pub mod foxhunt {
|
|
/// TLI protocol definitions
|
|
#[allow(missing_docs)]
|
|
pub mod tli {
|
|
tonic::include_proto!("foxhunt.tli");
|
|
}
|
|
}
|