Fix and enable the rules disabled in https://github.com/dotnet/performance/pull/4995
Fix and enable the rules disabled in #4995