-
Notifications
You must be signed in to change notification settings - Fork 509
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
SA1636, SA1641 place too heavy a burden on a developer #1366
Comments
@penartur thanks for providing feedback Disabling SA1636 and SA1641 when there is no settings file sounds like a good idea to me. I verified that it is consistent with the legacy StyleCop behavior. I would also suggest that we rename our settings file to @sharwell If there is agreement with the proposed changes, assign it to me please. |
I'd prefer to change SA1633 to DisabledByDefault. If all the rules are enabled, users will expect them to find violations. The VisualStudio.gitignore file is a disaster (meaning no one should ever use it because it has so many bad rules). I'm fond of the original filename; what about a warning when we install the NuGet package or an analyzer to report a misconfigured .gitignore? Corrections to the original post:
You only need to list rules that you change the behavior of. In this case, you could use a ruleset that has only SA1633 listed, and all other rules will use their default behavior.
Actually, the correct way to restore proper behavior would be removing the line you linked to. |
stylecop.json
(otherwise the comparison will always fail), so the user migrating from old VS versions is forced not only to normalize their file headers, but to createstylecop.json
as well.stylecop.json
is ignored by default VS gitignore on github, so the user, if they use github-supplied gitignore, is forced to modify their.gitignore
as well (by adding an explicit!stylecop.json
line in the end), and to maintain it during github-supplied gitignore updates. What's more, it is not entirely obvious thatstylecop.json
will be ignored, so, on first attempt, user will commit changes in their project while leavingstylecop.json
behind, which means that the project will build successfully with VS 2015 on the said user PC, with VS 2013 on other users PCs, but not with VS 2015 on other users PCs!As I see it, it is not user-friendly and backwards-compatible at all. Or do I miss something?
Maybe SA1636 and SA1641 should not be checked if there is no
stylecop.json
present (as in legacy StyleCop)?The text was updated successfully, but these errors were encountered: