Enabling FxCop on tests (#6481)

This commit is contained in:
Clint Rutkas
2020-09-09 15:33:18 -07:00
committed by GitHub
parent fb1888f01f
commit 1027b7de72
13 changed files with 215 additions and 118 deletions

View File

@@ -41,8 +41,7 @@ namespace ColorPickerUI
protected override void OnStartup(StartupEventArgs e)
{
// allow only one instance of color picker
bool createdNew;
_instanceMutex = new Mutex(true, @"Global\ColorPicker", out createdNew);
_instanceMutex = new Mutex(true, @"Global\ColorPicker", out bool createdNew);
if (!createdNew)
{
_instanceMutex = null;

View File

@@ -18,9 +18,11 @@ namespace ColorPicker.Settings
private const string ColorPickerModuleName = "ColorPicker";
private const string DefaultActivationShortcut = "Ctrl + Break";
private const int MaxNumberOfRetry = 5;
private FileSystemWatcher _watcher;
private object _loadingSettingsLock = new object();
[System.Diagnostics.CodeAnalysis.SuppressMessage("CodeQuality", "IDE0052:Remove unread private members", Justification = "Actually, call back is LoadSettingsFromJson")]
private readonly FileSystemWatcher _watcher;
private readonly object _loadingSettingsLock = new object();
[ImportingConstructor]
public UserSettings()