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
Use StyleCop to maintain coding standards #1035
Comments
Here's a different view of the violations in master (as of 11066d7), with counts on the left. In some cases, the description of a rule will differ, for example, if you look above, you see SA1202 has several incarnations, all about how member visibility affects ordering. Below, all violations of the same type have been lumped together.
I've been playing a bit in https://github.com/blairconrad/AutoFixture/tree/stylecop (not rebased on to the new merge, and missing some changes I've made at home) and drastically reduced the number of violations, either fixing the easy things or suppressing warnings that I think you'd want suppressed, such as the bits about putting usings inside namespaces. (And omitting braces.) I imagine that within a week, I could finish things up enough to send a rough PR, and you can either reject it outright or wrangle about which rules you wanted fixed or ignored. |
Sorry, this is totally unsolicited, but @moodmosaic and I were chatting about it a bit, and I figured I'd not pollute #1025 any more.
If you just plug StyleCop into the build, with no configuration at all, there are only 4506 errors. Here's a uniquified list. Roughly. I probably made some errors de-duplicating.
It probably wouldn't be too bad to initially turn most rules off and then turn the ones you care about on in small batches, transforming the code as one went. This could be merged in one or multiple PRs.
I shouldn't say it out loud, but it's the kind of work that I enjoy. If there was interest, and the owners agreed on an initial set of rules, I'd noodle away at hooking stuff up and resolving violations.
The text was updated successfully, but these errors were encountered: