Skip to content

Commit

Permalink
Merge pull request #9570 from drewnoakes/suppress-warnings
Browse files Browse the repository at this point in the history
Suppress CA2022 warnings in VB code
  • Loading branch information
drewnoakes authored Oct 29, 2024
2 parents 78dcae0 + 065ae1e commit 4aab68c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Microsoft.VisualStudio.Editors/GlobalSuppressions.vb
Original file line number Diff line number Diff line change
Expand Up @@ -1295,3 +1295,6 @@ Imports System.Diagnostics.CodeAnalysis
' Bugs
<Assembly: SuppressMessage("Style", "IDE0070:Use 'System.HashCode'", Justification:="https://github.com/dotnet/roslyn/issues/45995", Scope:="member", Target:="~M:Microsoft.VisualStudio.Editors.PropertyPages.WPF.ApplicationPropPageVBWPF.StartupObject.GetHashCode~System.Int32")>

<Assembly: SuppressMessage("Reliability", "CA2022:Avoid inexact read with 'Stream.Read'", Justification:="Code has worked for decades. Source is MemoryStream, which will always provide complete result.", Scope:="member", Target:="~M:Microsoft.VisualStudio.Editors.ResourceEditor.Utility.IsWavSoundFile(System.IO.Stream)~System.Boolean")>
<Assembly: SuppressMessage("Reliability", "CA2022:Avoid inexact read with 'Stream.Read'", Justification:="Code has worked for decades. Source is MemoryStream, which will always provide complete result.", Scope:="member", Target:="~M:Microsoft.VisualStudio.Editors.ResourceEditor.ResourceTypeEditorInternalBase.SaveFileFromManifestResource(System.String,System.String)")>
<Assembly: SuppressMessage("Reliability", "CA2022:Avoid inexact read with 'Stream.Read'", Justification:="Code has worked for decades. Source is MemoryStream, which will always provide complete result.", Scope:="member", Target:="~M:Microsoft.VisualStudio.Editors.ResourceEditor.ResourceEditorView.GetFileListFromVsHDropHandle(System.IO.Stream)~Microsoft.VisualStudio.Editors.ResourceEditor.ResourceEditorView.DraggedFileInfo[]")>

0 comments on commit 4aab68c

Please sign in to comment.