-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
csharp_using_directive_placement = inside_namespace don't warn about using outside namespace #43
Comments
Are you using the latest version of VS? There were breaking changes are called out in #42. |
This is my VS Version (About dialog) Microsoft Visual Studio Professional 2019 Version 16.8.2 |
I tried it and you're correct. The EditorConfig VS extension is complaining that According to dotnet/roslyn#39827 this change should have gone out already. dotnet/roslyn#48580 suggests that there were further changes to go out in 16.9. |
I've requested some clarification in dotnet/roslyn#44201. |
I have same problem with Visual Studio Code using Omnisharp. it had Roslyn updated to 3.8.0 2 days ago and it doesn't take into account any rules missing severity either. |
#43 may be the cause of this issue. |
Ran into the same thing today. I have to explicitly set the severity for it to behave correctly:
Otherwise these settings are not picked up at all. |
@RehanSaeed What fix do you exactly mean? |
I think 2.0.0 breaking changes were released way ahead of their time. Current syntax isn't deprecated yet, the #44201 issue isn't closed, it's just a backlog not even planned for 16.9. PR Make the ':severity' suffix in editorconfig code style value optional milestoned for 16.9 Preview 2 that released yesterday just makes the current syntax optional. |
@Xeevis You may be right. My initial understanding was that 16.8 would bring in the breaking changes. It seems to work too but not for some settings. I'll get #43 fixed and if that doesn't resolve the issue we should revert PR dotnet/roslyn#44201. |
version 1.6.1 had
csharp_using_directive_placement = inside_namespace:warning
Since version 2.0.0 removed the
:warning
I dont get the warnings and Quick Action don't suggest to move usings inside namespaceThe text was updated successfully, but these errors were encountered: