[Analyzers] Resolve StyleCop issues: SA1516 and SA1616 (#34853)

* [Analyzers][AdvancedPaste] Apply fix for SA1516

* [Analyzers][EnvironmentVariables] Apply fix for SA1516

* [Analyzers][RegistryPreview] Apply fix for SA1516

* [Analyzers][Peek] Apply fix for SA1516

* [Analyzers][PreviewPane] Apply fix for SA1516

* [Analyzers][FancyZones] Apply fix for SA1516

* [Analyzers][PT Run][Plugins] Apply fix for SA1516

* [Analyzers][PT Run] Apply fix for SA1516

* [Analyzers][PT Run][Wox] Apply fix for SA1516

* [Analyzers][Common] Apply fix for SA1516

* [Analyzers][ImageResizer] Apply fix for SA1516

* [Analyzers][ColorPicker] Apply fix for SA1516

* [Analyzers][MouseUtils] Apply fix for SA1516

* [Analyzers][DSC Schema Generator] Apply fix for SA1516

* [Analyzers][FileLocksmith] Apply fix for SA1516

* [Analyzers][Hosts] Apply fix for SA1516

* [Analyzers][MeasureTool] Apply fix for SA1516

* [Analyzers][MouseWithoutBorders] Apply fix for SA1516

* [Analyzers][TextExtractor] Apply fix for SA1516

* [Analyzers][Workspaces] Apply fix for SA1516

* [Analyzers][Awake] Apply fix for SA1516

* [Analyzers][PowerAccent] Apply fix for SA1516

* [Analyzers][RegistryPreview] Apply fix for SA1516

* [Analyzers][Settings] Apply fix for SA1516

* [Analyzers][MouseWithoutBorders] Apply fix for SA1616
This commit is contained in:
Jeremy Sinclair
2024-09-16 16:09:43 -04:00
committed by GitHub
parent 0f16951f23
commit 37f2154c86
635 changed files with 690 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ using System;
using System.ComponentModel.Composition;
using System.Threading;
using System.Windows;
using ColorPicker.Mouse;
using ManagedCommon;

View File

@@ -5,6 +5,7 @@
using System;
using System.Windows;
using System.Windows.Media.Animation;
using Microsoft.Xaml.Behaviors;
namespace ColorPicker.Behaviors

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System.Windows;
using ColorPicker.Helpers;
using ColorPicker.Mouse;
using ManagedCommon;

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System.Windows;
using ColorPicker.Helpers;
using Microsoft.Xaml.Behaviors;

View File

@@ -9,6 +9,7 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using ColorPicker.Models;
using Microsoft.Xaml.Behaviors;

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System.Windows;
using Microsoft.Xaml.Behaviors;
namespace ColorPicker.Behaviors

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System.Windows;
using ColorPicker.Shaders;
using Microsoft.Xaml.Behaviors;

View File

@@ -5,6 +5,7 @@
using System;
using System.Windows;
using System.Windows.Media.Animation;
using Microsoft.Xaml.Behaviors;
namespace ColorPicker.Behaviors

View File

@@ -4,6 +4,7 @@
using System;
using System.Windows;
using ColorPicker.Helpers;
using Common.UI;
using Wpf.Ui.Controls;

View File

@@ -10,6 +10,7 @@ using System.Windows.Automation.Peers;
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows.Media.Animation;
using ColorPicker.Helpers;
using ColorPicker.Models;

View File

@@ -11,9 +11,11 @@ using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using ColorPicker.Helpers;
using ManagedCommon;
using Wpf.Ui.Controls;
using static System.Net.Mime.MediaTypeNames;
namespace ColorPicker.Controls

View File

@@ -6,10 +6,12 @@ using System;
using System.ComponentModel.Composition;
using System.Windows;
using System.Windows.Interop;
using ColorPicker.Settings;
using ColorPicker.ViewModelContracts;
using Common.UI;
using Microsoft.PowerToys.Settings.UI.Library.Enumerations;
using static ColorPicker.Helpers.NativeMethodsHelper;
namespace ColorPicker.Helpers

View File

@@ -5,7 +5,9 @@
using System.Runtime.InteropServices;
using System.Text;
using System.Windows;
using ManagedCommon;
using static ColorPicker.NativeMethods;
namespace ColorPicker.Helpers

View File

@@ -5,6 +5,7 @@
using System;
using System.Drawing;
using System.Globalization;
using ColorPicker.Properties;
using ManagedCommon;

View File

@@ -9,6 +9,7 @@ using System.Linq;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Media;
using static ColorPicker.NativeMethods;
namespace ColorPicker.Helpers

View File

@@ -10,6 +10,7 @@ using System.Linq;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Windows.Media;
using ColorPicker.Models;
namespace ColorPicker.Helpers

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System;
using ColorPicker.Telemetry;
using ManagedCommon;
using Microsoft.PowerToys.Settings.UI.Library.Enumerations;

View File

@@ -8,6 +8,7 @@ using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Windows.Media.Imaging;
using ColorPicker.ViewModelContracts;
namespace ColorPicker.Helpers

View File

@@ -6,6 +6,7 @@ using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Runtime.InteropServices;
using static ColorPicker.NativeMethods;
namespace ColorPicker.Keyboard

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System.ComponentModel;
using static ColorPicker.NativeMethods;
namespace ColorPicker.Keyboard

View File

@@ -6,9 +6,11 @@ using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.Windows.Input;
using ColorPicker.Helpers;
using ColorPicker.Settings;
using Microsoft.PowerToys.Settings.UI.Library.Utilities;
using static ColorPicker.NativeMethods;
namespace ColorPicker.Keyboard

View File

@@ -5,6 +5,7 @@
using System.ComponentModel.Composition;
using System.Windows;
using System.Windows.Interop;
using ColorPicker.ViewModelContracts;
using Wpf.Ui.Controls;

View File

@@ -4,6 +4,7 @@
using System;
using System.Windows.Media;
using ColorPicker.Helpers;
using ManagedCommon;

View File

@@ -4,6 +4,7 @@
using System;
using System.IO.Abstractions;
using ManagedCommon;
using Microsoft.Win32;

View File

@@ -6,8 +6,10 @@ using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Windows.Input;
using ColorPicker.Helpers;
using ManagedCommon;
using static ColorPicker.NativeMethods;
namespace ColorPicker.Mouse

View File

@@ -9,8 +9,10 @@ using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Input;
using System.Windows.Threading;
using ColorPicker.Helpers;
using ColorPicker.Settings;
using static ColorPicker.NativeMethods;
namespace ColorPicker.Mouse

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System;
using ColorPicker.Helpers;
using ColorPicker.Mouse;
using ColorPickerUI;

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System.Collections.ObjectModel;
using ColorPicker.Common;
using Microsoft.PowerToys.Settings.UI.Library.Enumerations;

View File

@@ -10,6 +10,7 @@ using System.IO;
using System.IO.Abstractions;
using System.Text.Json;
using System.Threading;
using ColorPicker.Common;
using ManagedCommon;
using Microsoft.PowerToys.Settings.UI.Library;

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System.Diagnostics.Tracing;
using Microsoft.PowerToys.Telemetry;
using Microsoft.PowerToys.Telemetry.Events;

View File

@@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.Diagnostics.Tracing;
using Microsoft.PowerToys.Telemetry;
using Microsoft.PowerToys.Telemetry.Events;

View File

@@ -6,6 +6,7 @@ using System;
using System.Collections.ObjectModel;
using System.Windows.Input;
using System.Windows.Media;
using ColorPicker.Models;
namespace ColorPicker.ViewModelContracts

View File

@@ -12,6 +12,7 @@ using System.IO;
using System.Linq;
using System.Windows.Input;
using System.Windows.Media;
using ColorPicker.Common;
using ColorPicker.Helpers;
using ColorPicker.Models;

View File

@@ -7,6 +7,7 @@ using System.ComponentModel.Composition;
using System.Threading;
using System.Windows;
using System.Windows.Media;
using ColorPicker.Common;
using ColorPicker.Helpers;
using ColorPicker.Keyboard;

View File

@@ -4,6 +4,7 @@
using System.ComponentModel.Composition;
using System.Windows.Media.Imaging;
using ColorPicker.Common;
using ColorPicker.ViewModelContracts;

View File

@@ -6,6 +6,7 @@ using System.ComponentModel;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
using ColorPicker.Helpers;
using ColorPicker.ViewModels;

View File

@@ -5,6 +5,7 @@
using System;
using System.Drawing;
using System.Globalization;
using ManagedCommon;
using Microsoft.VisualStudio.TestTools.UnitTesting;

View File

@@ -3,6 +3,7 @@
// See the LICENSE file in the project root for more information.
using System.Drawing;
using ColorPicker.Helpers;
using ManagedCommon;
using Microsoft.VisualStudio.TestTools.UnitTesting;