Closed TheCodingWombat closed 1 year ago
Implementing enable_singlepass_benchmarks lint using ripgrep. Catches patterns like #[cfg(feature="runtime-benchmarks")] #[cfg(any(feature="runtime-benchmarks", other_stuff="other_stuff"))] and suggests to also compile during test.
ripgrep
#[cfg(feature="runtime-benchmarks")]
#[cfg(any(feature="runtime-benchmarks", other_stuff="other_stuff"))]
test
Includes tests.
Does not include auto-fix.
Closes #11
Problem: Current suggestions overwrite other cfg attributes with test attribute.
Problem fixed.
Implementing enable_singlepass_benchmarks lint using
ripgrep
. Catches patterns like#[cfg(feature="runtime-benchmarks")]
#[cfg(any(feature="runtime-benchmarks", other_stuff="other_stuff"))]
and suggests to also compile duringtest
.Includes tests.
Does not include auto-fix.
Closes #11