# syd's clippy configuration # please use cargo +nightly clippy if/when you can cognitive-complexity-threshold = 12 max-fn-params-bools = 0 type-complexity-threshold = 120 disallowed-macros = [ 'dbg', 'todo', 'std::unimplemented', ] disallowed-methods = [ # Use proper error handling "std::option::Option::unwrap", "std::result::Result::unwrap", "std::option::Option::expect", "std::result::Result::expect", # Use the tempdir crate instead "std::env::temp_dir", # Use `std::thread::Builder` and name the thread "std::thread::spawn", # We compile with panic = "abort" "std::panic::catch_unwind", ] disallowed-types = [ # Use the faster & simpler non-poisonable primitives in `parking_lot` instead "std::sync::Mutex", "std::sync::RwLock", "std::sync::RwLockReadGuard", "std::sync::RwLockWriteGuard", "std::sync::Condvar", "std::sync::Once", ] doc-valid-idents = [ "SydBox", "..", ]