amantinband / clean-architecture

The ultimate clean architecture template for .NET applications 💪
MIT License
1.4k stars 221 forks source link

Errors about Order Usings #2

Closed XuanPH closed 7 months ago

XuanPH commented 7 months ago

Hello Amichai,

Thanks for amazing project, that template I always looking for.

I have an issue about "Order usings directive."

image

The error is: Using directives should be ordered alphabetically by the namespaces (https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1210.md)

I'm using Rider, do you have any idea to fix this, Currently I'm fixing it manually.

amantinband commented 7 months ago

Are you getting these errors on a clean template created using dotnet new clean-arch..? If yes, are you getting the same error when building via dotnet build in the CLI? If yes, make sure you didn't delete your .editorconfig file in the root directory.

In any case, you can suppress the error in your .editorconfig by adding the following suppression:

# SA1210: Using directives should be ordered alphabetically by the namespaces 
dotnet_diagnostic. SA1210.severity = none
XuanPH commented 7 months ago

Are you getting these errors on a clean template created using dotnet new clean-arch..? If yes, are you getting the same error when building via dotnet build in the CLI? If yes, make sure you didn't delete your .editorconfig file in the root directory.

In any case, you can suppress the error in your .editorconfig by adding the following suppression:

# SA1210: Using directives should be ordered alphabetically by the namespaces 
dotnet_diagnostic. SA1210.severity = none

Thanks a lot, it's works for me.