-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Upgrade StyleCopAnalyzers to v1.2.0-beta.312 #45779
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
|
I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label. |
|
Can we get dependabot to do this for new releases? |
|
@ViktorHofer have we considered dependabot or do we prefer more control? |
|
More control, e.g. we want to be explicit about what rules are enabled, ensure our config file is explicit and complete, etc. And we don't need to update these every day / every time there's a stylecop update. Also, keep in mind this is an external piece of code that's run on everyone's machines. |
|
From my point of view, I'm not against using dependabot as it would nicely cover cases that aren't handled by darc. |
|
@danmosemsft Can we merge this? |
|
Before merging, can someone check if this repository uses any of the following rules?
If so, you'll be affected by DotNetAnalyzers/StyleCopAnalyzers#3272 if you use the short syntax for record types (omitting |
Those rules are currently disabled in both our ruleset files runtime/eng/CodeAnalysis.ruleset Lines 360 to 368 in 4bc3232
runtime/eng/CodeAnalysis.test.ruleset Lines 359 to 367 in 4bc3232
|
|
I don't object to merging per se but why the update? Why would we not wait for the next stable release, unless we hit a blocking bug? |
There are no changes from 1.2.0-beta.304 to 1.2.0-beta.312 that seem particularly interesting for this repository. The items of note are support for records without a block body, on the condition that you aren't using the three specific rules I pointed out above.
You'll be waiting a long time. Honestly it's not a problem unless you actually are seeing a problem.
The main reasons to update are:
|
|
Thanks for that info. Given there's probably no benefit to the repo, I'm going to close this. We can consider picking up a new one when we would benefit from improved perf, a bug fix, new feature etc. @xtqqczze thanks for offering the PR though, since it helps ensure that the version wouldn't cause a regression in this repo. No harm in doing that from time to time, but it could be a draft (CI still runs) |
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/releases/tag/1.2.0-beta.312
Follow-up to #45644.