Browse Source
Merge pull request #9162 from workgroupengineering/features/NetAnalyzers/CA1802
fix: CA1802
pull/9184/head
Max Katz
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
3 deletions
-
.editorconfig
-
src/Windows/Avalonia.Win32/Win32Platform.cs
|
|
|
@ -137,7 +137,9 @@ space_within_single_line_array_initializer_braces = true |
|
|
|
#Net Analyzer |
|
|
|
dotnet_analyzer_diagnostic.category-Performance.severity = none #error - Uncomment when all violations are fixed. |
|
|
|
|
|
|
|
#CA1825: Avoid zero-length array allocations |
|
|
|
# CA1802: Use literals where appropriate |
|
|
|
dotnet_diagnostic.CA1802.severity = warning |
|
|
|
# CA1825: Avoid zero-length array allocations |
|
|
|
dotnet_diagnostic.CA1825.severity = warning |
|
|
|
|
|
|
|
# Wrapping preferences |
|
|
|
|
|
|
|
@ -241,8 +241,8 @@ namespace Avalonia.Win32 |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
private static readonly int SignalW = unchecked((int) 0xdeadbeaf); |
|
|
|
private static readonly int SignalL = unchecked((int)0x12345678); |
|
|
|
private const int SignalW = unchecked((int)0xdeadbeaf); |
|
|
|
private const int SignalL = unchecked((int)0x12345678); |
|
|
|
|
|
|
|
public void Signal(DispatcherPriority prio) |
|
|
|
{ |
|
|
|
|