Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA1210 : CSharp.Ordering : Wrong warning wiith static using #73

Open
haison8x opened this issue Apr 28, 2016 · 0 comments
Open

SA1210 : CSharp.Ordering : Wrong warning wiith static using #73

haison8x opened this issue Apr 28, 2016 · 0 comments

Comments

@haison8x
Copy link

haison8x commented Apr 28, 2016

I have a static class ClassC


namespace ClassLibrary1Level2
{
    public static class ClassC
    {
        public static void DoTest()
        {
        }
    }
}

and following code

using System.IO;
using static ClassLibrary1Level2.ClassC;
using static System.Console;

namespace ConsoleApplication1
{
    public class Program
    {
        public static void Main(string[] args)
        {
            var text = Path.GetTempPath();
            WriteLine(text);

            DoTest();
        }
    }
}

Then I use function Organize Usings => Remove And Sort Usings. However, stylecop shows following error

Severity Code Description Project File Line Suppression State
Warning SA1210 : CSharp.Ordering : Using directives must be sorted alphabetically by the namespaces. ConsoleApplication1 D:\Temp\Delete\ClassLibrary1\ClassLibrary1\ConsoleApplication1\Program.cs 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant