-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Do not compare Span<T> with null #98958
Conversation
Tagging subscribers to this area: @dotnet/area-meta Issue DetailsFix warnings found with Do not compare Span To null analyzer that @CollinAlpert is implementing. The analyzer is not merged yet, but when it is merged and when the build flows to runtime it would fail the build as the analyzer severity is Also there is 20 hits better to be solved with dedicated PR than codeflow PRs, and needs better review Learn more form the issue
|
.../Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.SecKeyRef.macOS.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.Linux.cs
Outdated
Show resolved
Hide resolved
…ystemWatcher.Linux.cs
src/libraries/System.Net.Primitives/src/System/Net/IPAddress.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.IO.Packaging/src/System/IO/Packaging/ContentType.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Primitives/src/System/Net/IPAddress.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Primitives/src/System/Net/IPAddressParser.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Sockets/src/System/Net/Sockets/SocketPal.Unix.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Globalization/TimeSpanFormat.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Number.Formatting.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/Number.Formatting.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/HashProviderCng.cs
Show resolved
Hide resolved
...m.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/X500NameEncoder.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Stephen Toub <[email protected]>
src/libraries/System.IO.Packaging/src/System/IO/Packaging/ContentType.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Stephen Toub <[email protected]>
.../Common/src/Interop/OSX/System.Security.Cryptography.Native.Apple/Interop.SecKeyRef.macOS.cs
Outdated
Show resolved
Hide resolved
…phy.Native.Apple/Interop.SecKeyRef.macOS.cs Co-authored-by: Kevin Jones <[email protected]>
I believe all feedback addressed here, please take another look. |
src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.Linux.cs
Outdated
Show resolved
Hide resolved
…ystemWatcher.Linux.cs Co-authored-by: Jan Kotas <[email protected]>
Fix warnings found with Do not compare Span To null analyzer that @CollinAlpert is implementing.
The analyzer is not merged yet, but when it is merged and when the build flows to runtime it would fail the build as the analyzer severity is
Warning
by default. Better to be fixed before it flows to runtime.Also there is 20 hits better to be solved with dedicated PR than codeflow PRs, and needs better review
Learn more form the issue