In every test I need to add following annotations:
#[cfg(test)]
#[allow(clippy::all)]
#[allow(clippy::pedantic)]
#[allow(clippy::nursery)]
#[allow(clippy::restriction)]
If I would want to remove pedantic
in future, it will require multiple changes across all the files. Is there a way to combine them somehow or create a macros to insert all of them like #[cfg(test_setup)]
?