You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S1128 does not raise an issue for unused usings inside a file scoped namespace.
Repro steps
using System;
namespace MyNamespace0;
using MySysAlias = System;
using System.Linq; // Noncompliant {{Remove this unnecessary 'using'.}}
using System.Collections; // Noncompliant
using System.Globalization; // Noncompliant
using System.Collections.Generic;
using static System.Console;
class C
{
MySysAlias.StringComparer x;
void M(IEnumerable<string> myEnumerable)
{
WriteLine("");
MySysAlias.Console.WriteLine("");
}
}
Expected behavior
An issue should be raised.
Actual behavior
No issues are raised.
Known workarounds
None
Related information
C#/VB.NET Plugins version: 8.43.0.51858
The text was updated successfully, but these errors were encountered:
Description
S1128 does not raise an issue for unused usings inside a file scoped namespace.
Repro steps
Expected behavior
An issue should be raised.
Actual behavior
No issues are raised.
Known workarounds
None
Related information
The text was updated successfully, but these errors were encountered: