-
Notifications
You must be signed in to change notification settings - Fork 1k
Suppress IDE0031 #13260
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
Suppress IDE0031 #13260
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13260 +/- ##
====================================================
+ Coverage 39.78342% 61.78286% +21.99944%
====================================================
Files 1018 1552 +534
Lines 96407 158947 +62540
Branches 13451 14802 +1351
====================================================
+ Hits 38354 98202 +59848
- Misses 57654 60029 +2375
- Partials 399 716 +317
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
@NikolaMilosavljevic - this analyzer is already enabled as a warning - Line 186 in b5bb513
I suppose Roslyn and analyzers have been updated to preview4 in the unified build and you now support ? in L-values feature? But then I don't understand why these 2 are the only spots that broke your build? When I bump up SDK to P4, I get 51 errors. I would prefer disabling this analyzer conditionally on the unified build in the corresponding project files, as I prefer applying the new syntax - pceltFetched?[0] = 0; eventually when we get the P4 SDK to pragmas in the source code.
|
Yeah, once I disabled these 3 initial errors, I got 51 more errors, which is odd. I agree that we could probably disable this error per project, based on if we are building in VMR. Eventually new syntax could be applied once this repo moves to P4 SDK/compiler. I'll update the PR. |
5501985
to
4c40c45
Compare
src/System.Private.Windows.Core/src/System.Private.Windows.Core.csproj
Outdated
Show resolved
Hide resolved
…e.csproj Co-authored-by: Tanya Solyanik <tanyaso@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
IDE0031 warnings were turned into errors in VMR build, with the latest SDK and compiler - dotnet/sdk#48226
Microsoft Reviewers: Open in CodeFlow