Skip to content

Commit

Permalink
Add new warnings to NoWarn list that were being flagged
Browse files Browse the repository at this point in the history
  • Loading branch information
caaavik-msft committed Apr 9, 2024
1 parent 3d92fd2 commit 160272d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,18 @@

<!--CA1861 : Prefer 'static readonly' fields over constant array arguments if the called method is called repeatedly and is not mutating the passed array -->
<NoWarn>$(NoWarn);CA1861</NoWarn>

<!-- Use concrete types when possible for improved performance -->
<NoWarn>$(NoWarn);CA1859</NoWarn>

<!-- Prefer generic overload when type is known -->
<NoWarn>$(NoWarn);CA2263</NoWarn>

<!-- Prefer 'Convert.ToHexString' and 'Convert.ToHexStringLower' over call chains based on 'BitConverter.ToString' -->
<NoWarn>$(NoWarn);CA1872</NoWarn>

<!-- Avoid inexact read with 'System.IO.Stream.Read(byte[], int, int) -->
<NoWarn>$(NoWarn);CA2022</NoWarn>

</PropertyGroup>

Expand Down

0 comments on commit 160272d

Please sign in to comment.