Remove unnecessary pragma warnings, commas, and use PascalCase with enumerators
MODIFY
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreenViewModel.cs
WalletWasabi.Gui/Controls/LockScreen/SlideLockScreenViewModel.cs
@@ -14,7 +14,7 @@ namespace WalletWasabi.Gui.Controls.LockScreen
{
Idle,
UserIsDragging,
- UserDragPassedThreshold,
+ UserDragPassedThreshold
}
private SlideLockState _state = SlideLockState.Idle;

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/CoinJoinTabViewModel.cs
@@ -301,10 +301,7 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
}
}
-#pragma warning disable CS0618 // Type or member is obsolete
-
private void UpdateRequiredBtcLabel(CcjClientRound registrableRound)
-#pragma warning restore CS0618 // Type or member is obsolete
{
if (Global.WalletService is null)
{

MODIFY
WalletWasabi.Gui/Models/LockScreenType.cs
WalletWasabi.Gui/Models/LockScreenType.cs
@@ -7,6 +7,6 @@ namespace WalletWasabi.Gui.Models
public enum LockScreenType
{
SlideLock,
- PinLock,
+ PinLock
}
}

MODIFY
WalletWasabi/Helpers/HttpRequestUriBuilder.cs
WalletWasabi/Helpers/HttpRequestUriBuilder.cs
@@ -26,14 +26,14 @@ namespace System.Net.Http
Host = h;
Scheme = uriScheme.ToString().ToLowerInvariant();
- if (uriScheme == UriScheme.http)
+ if (uriScheme == UriScheme.Http)
{
// https://tools.ietf.org/html/rfc7230#section-2.7.1
// [http] If the port subcomponent is empty or not given, TCP port 80(the reserved port
// for WWW services) is the default.
Port = 80;
}
- else if (uriScheme == UriScheme.https)
+ else if (uriScheme == UriScheme.Https)
{
// https://tools.ietf.org/html/rfc7230#section-2.7.2
// [https] TCP port 443 is the default if the port subcomponent is empty or not given

MODIFY
WalletWasabi/Http/Models/UriScheme.cs
WalletWasabi/Http/Models/UriScheme.cs
@@ -3,13 +3,9 @@ namespace WalletWasabi.Http.Models
// https://tools.ietf.org/html/rfc7230#section-2.7.3
// The scheme and host are case-insensitive and normally provided in lowercase;
// all other components are compared in a case-sensitive manner.
-#pragma warning disable IDE1006 // Naming Styles
-
public enum UriScheme
{
- http,
- https
+ Http,
+ Https
}
-
-#pragma warning restore IDE1006 // Naming Styles
}

Remove unnecessary pragma warnings, commas, and use PascalCase with enumerators