Skip to content

Commit 4e69452

Browse files
authored
Enable CA2022: Avoid inexact read with 'Stream.Read' (PowerShell#25814)
1 parent 7ec0111 commit 4e69452

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.globalconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,10 @@ dotnet_diagnostic.CA2016.severity = suggestion
574574
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2021
575575
dotnet_diagnostic.CA2021.severity = warning
576576

577+
# CA2022: Avoid inexact read with 'Stream.Read'
578+
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2022
579+
dotnet_diagnostic.CA2022.severity = warning
580+
577581
# CA2100: Review SQL queries for security vulnerabilities
578582
# https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2100
579583
dotnet_diagnostic.CA2100.severity = none

0 commit comments

Comments
 (0)