- SonarAnalyzer (C#)
- csharpsquid:S1481
- According to documentation for (Unused local variables should be removed)-
using(var t = new TestTimer()) // t never used, but compliant.
{
//...
}
BUT when using c# 8 syntax without curly braces -
using var t = new TestTimer()
//...
the rule is triggered