Skip to content

Commit 4faab44

Browse files
committed
[StyleCleanUp] Use ArgumentOutOfRangeException throw helper (CA1512)
1 parent 2a8258a commit 4faab44

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Microsoft.DotNet.Wpf/src/.editorconfig

-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ dotnet_diagnostic.CA1510.severity = suggestion
5353
# CA2211: Non-constant fields should not be visible
5454
dotnet_diagnostic.CA2211.severity = suggestion
5555

56-
# CA1512: Use ArgumentOutOfRangeException throw helper
57-
dotnet_diagnostic.CA1512.severity = suggestion
58-
5956
# CA1513: Use ObjectDisposedException throw helper
6057
dotnet_diagnostic.CA1513.severity = suggestion
6158

src/Microsoft.DotNet.Wpf/src/PresentationCore/GlobalSuppressions.cs

+4
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@
2626
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Public API", Scope = "member", Target = "~F:System.Windows.DataFormats.WaveAudio")]
2727
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Public API", Scope = "member", Target = "~F:System.Windows.DataFormats.Xaml")]
2828
[assembly: SuppressMessage("Style", "IDE1006:Naming Styles", Justification = "Public API", Scope = "member", Target = "~F:System.Windows.DataFormats.XamlPackage")]
29+
30+
// TODO: Remove these when analyzer issue is fixed (https://github.com/dotnet/roslyn-analyzers/issues/7617)
31+
[assembly: SuppressMessage("Maintainability", "CA1512:Use ArgumentOutOfRangeException throw helper", Justification = "Analyzer bug: https://github.com/dotnet/roslyn-analyzers/issues/7617", Scope = "member", Target = "~M:System.Windows.Interop.D3DImage.TryLock(System.Windows.Duration)~System.Boolean")]
32+
[assembly: SuppressMessage("Maintainability", "CA1512:Use ArgumentOutOfRangeException throw helper", Justification = "Analyzer bug, removed in: https://github.com/dotnet/wpf/pull/10544", Scope = "member", Target = "~P:System.Windows.NullRecord.NullCount")]

0 commit comments

Comments
 (0)