Browse Source

fix: CA1802

pull/9162/head
Giuseppe Lippolis 3 years ago
parent
commit
85ac29c788
  1. 3
      .editorconfig
  2. 4
      src/Windows/Avalonia.Win32/Win32Platform.cs

3
.editorconfig

@ -137,6 +137,9 @@ space_within_single_line_array_initializer_braces = true
#Net Analyzer #Net Analyzer
dotnet_analyzer_diagnostic.category-Performance.severity = none #error - Uncomment when all violations are fixed. dotnet_analyzer_diagnostic.category-Performance.severity = none #error - Uncomment when all violations are fixed.
# CA1802: Use literals where appropriate
dotnet_diagnostic.CA1802.severity = warning
# Wrapping preferences # Wrapping preferences
csharp_wrap_before_ternary_opsigns = false csharp_wrap_before_ternary_opsigns = false

4
src/Windows/Avalonia.Win32/Win32Platform.cs

@ -241,8 +241,8 @@ namespace Avalonia.Win32
}); });
} }
private static readonly int SignalW = unchecked((int) 0xdeadbeaf); private const int SignalW = unchecked((int)0xdeadbeaf);
private static readonly int SignalL = unchecked((int)0x12345678); private const int SignalL = unchecked((int)0x12345678);
public void Signal(DispatcherPriority prio) public void Signal(DispatcherPriority prio)
{ {

Loading…
Cancel
Save