Skip to content

Commit

Permalink
compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonyCorbett committed Nov 19, 2024
1 parent e933b95 commit eb01ab9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ dotnet_naming_symbols.constant_fields.required_modifiers = const
dotnet_style_operator_placement_when_wrapping = beginning_of_line
tab_width = 4
end_of_line = crlf
dotnet_style_prefer_simplified_boolean_expressions = true:suggestion

###############################
# C# Coding Conventions #
Expand Down Expand Up @@ -317,3 +318,5 @@ csharp_style_expression_bodied_local_functions = false:silent

# CA2201: Do not raise reserved exception types
dotnet_diagnostic.CA2201.severity = none
csharp_style_prefer_primary_constructors = true:suggestion
dotnet_diagnostic.SA1010.severity = suggestion
1 change: 0 additions & 1 deletion OnlyM.Core/Services/Monitors/MonitorsService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Windows.Forms;
using OnlyM.Core.Models;
Expand Down
2 changes: 2 additions & 0 deletions OnlyM/AutoUpdates/VersionDetection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ internal static class VersionDetection

try
{
#pragma warning disable U2U1025
using var client = new HttpClient();
#pragma warning restore U2U1025

var response = client.GetAsync(LatestReleaseUrl).Result;
if (response.IsSuccessStatusCode)
Expand Down
2 changes: 2 additions & 0 deletions OnlyMSlideManager/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@

namespace OnlyMSlideManager
{
#pragma warning disable CA1001
public partial class App : Application
#pragma warning restore CA1001
{
private readonly string _appString = "OnlyMSlideManagerTool";
private Mutex? _appMutex;
Expand Down

0 comments on commit eb01ab9

Please sign in to comment.