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 and SA1208 does not play nice when global:: prefix is used #1818

Closed
dmitriyse opened this issue Nov 23, 2015 · 5 comments
Closed

SA1210 and SA1208 does not play nice when global:: prefix is used #1818

dmitriyse opened this issue Nov 23, 2015 · 5 comments
Assignees
Milestone

Comments

@dmitriyse
Copy link

image

@sharwell
Copy link
Member

This is a duplicate of #1092.

@dmitriyse
Copy link
Author

Please think not only about pure VS users, but also about R# users + StyleCop Plugin.
Possibly some options should be introduced to satisfy all useres.

@sharwell
Copy link
Member

An option might make sense. For the default behavior, it makes sense to adhere to Visual Studio defaults as they are the majority of users.

Fortunately this particular situation is quite rare simply because the usability problems caused by a System namespace anywhere other than at the top level are immediately obvious to users, which makes them tend to avoid it early.

@sharwell
Copy link
Member

@dmitriyse Is there a reason you are using the StyleCop Plugin for ReSharper, as opposed to the code fixes which are provided by this project?

I invited you to our Gitter chat room if you'd like to discuss it with us there.

@sharwell sharwell removed the duplicate label Dec 3, 2015
@sharwell sharwell reopened this Dec 3, 2015
@sharwell
Copy link
Member

sharwell commented Dec 3, 2015

@dmitriyse Reported that there is no ordering of the directives shown above which does not report either SA1208 or SA1210.

@sharwell sharwell added this to the 1.0.0 milestone Dec 3, 2015
sharwell added a commit to sharwell/StyleCopAnalyzers that referenced this issue Dec 4, 2015
sharwell added a commit to sharwell/StyleCopAnalyzers that referenced this issue Dec 4, 2015
@sharwell sharwell modified the milestones: 1.0.0 RC 2, 1.0.0 Dec 4, 2015
@sharwell sharwell self-assigned this Dec 4, 2015
@sharwell sharwell closed this as completed Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants