-
-
Notifications
You must be signed in to change notification settings - Fork 749
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
Collection expressions (IDE0300) #6726
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #6726 +/- ##
==========================================
+ Coverage 70.16% 70.20% +0.04%
==========================================
Files 2485 2485
Lines 125521 125521
==========================================
+ Hits 88067 88118 +51
+ Misses 37454 37403 -51
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
b9212c6
to
192f5ea
Compare
Superseded by #6845. |
Summary of the changes (Less than 80 chars)
IDE0300
to use collection expressions.This handles all but 2 cases of
IDE0300
. The handled cases should be non-controversial (?). The remaining 2 cases are more subjective – do you have a preference for keeping the explicit types in the examples below?The pros of updating them:
IDE0300
can be fully enforced without exceptions.The cons:
Since I could only find 2 examples within the entire codebase, it might make sense to just update these as well, and then enable the analyzer (and consider also using
EnforceCodeStyleInBuild
).