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

Coupling metric bug: no dependency found if the using static is the import statement #358

Open
mylinhdao opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mylinhdao
Copy link
Collaborator

mylinhdao commented May 16, 2024

Static using (C#) are not covered in the logic. So if ClassA has a static method MyMethod(), the dependency can not be resolved:

using static TestNamespace.ClassA;

namespace Programm
{
    class Program
    {
        static void Main()
        {
            MyMethod();
        }
    }
}
@mylinhdao mylinhdao added the bug Something isn't working label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant