-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add StyleCop.Analyzers package #13963
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
Conversation
This comment has been minimized.
This comment has been minimized.
|
@iSazonov What do you think about adding |
|
We could set |
|
I think we could do the same as we do for analyzers. Only my concern is increasing time of the build so we could consider to move this (Roslyn analyzers and StyleCop.Analyzers) to separate GitHub check. |
86e6e2c to
82d11a8
Compare
We should monitor build times, but there is value in running analyzers as part of each build rather then a separate check. One reason is conditionals in the pre-processor, we would need to run the analyzers for each combination of symbols, |
Running analyzers during local build also allows contributors to fix issues before submitting a PR. |
We use only UNIX and WINDOWS. |
|
@iSazonov Once this PR is merged I can move forward with SAXXXX drafts PRs. If the changes cause issues with build time we can deal with this in the first instance. |
|
@xtqqczze How much are we slowing down the build? |
|
@iSazonov It appears build time is quite variable, and having analyzers enabled does not measurably slow the build. In this PR (161ccea) build time was 9m 1s The measurement I have used is the total for |
Originally posted by @xtqqczze in #14136 (comment) |
|
🎉 Handy links: |
Add Roslyn analyzers
StyleCop.Analyzersto build and live analysis.All rules have been disabled except for
SA1518.