mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 01:08:18 +08:00
[Awake] Enable analyzer and fix warnings (#16899)
* [Awake] Enable analyzer and fix warnings
* Suppress "CA1051:Do not declare visible instance fields" for structs
* Revert "Suppress "CA1051:Do not declare visible instance fields" for structs"
This reverts commit bea215bffa
.
* Suppress "CA1051:Do not declare visible instance fields" for structs
* spellchecker
This commit is contained in:
parent
46684966a1
commit
425346b1f2
1
.github/actions/spell-check/expect.txt
vendored
1
.github/actions/spell-check/expect.txt
vendored
@ -2052,6 +2052,7 @@ stringtable
|
||||
stringval
|
||||
Strmiids
|
||||
strsafe
|
||||
structs
|
||||
strutil
|
||||
sttngs
|
||||
Stubless
|
||||
|
@ -5,3 +5,6 @@ dotnet_diagnostic.SA1201.severity = none
|
||||
|
||||
# CA1303: Do not pass literals as localized parameters
|
||||
dotnet_diagnostic.CA1303.severity = suggestion
|
||||
|
||||
# CA1051: Do not declare visible instance fields
|
||||
dotnet_code_quality.ca1051.exclude_structs = true
|
||||
|
@ -15,6 +15,8 @@
|
||||
<Company>Microsoft Corporation</Company>
|
||||
<Version>$(Version).0</Version>
|
||||
<ApplicationIcon>Images\Awake.ico</ApplicationIcon>
|
||||
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
||||
<AnalysisMode>Recommended</AnalysisMode>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
|
@ -36,9 +36,9 @@ namespace Awake
|
||||
// the pull request is issued.
|
||||
private static readonly string BuildId = "ARBITER_01312022";
|
||||
|
||||
private static Mutex? _mutex = null;
|
||||
private static FileSystemWatcher? _watcher = null;
|
||||
private static SettingsUtils? _settingsUtils = null;
|
||||
private static Mutex? _mutex;
|
||||
private static FileSystemWatcher? _watcher;
|
||||
private static SettingsUtils? _settingsUtils;
|
||||
|
||||
public static Mutex LockMutex { get => _mutex; set => _mutex = value; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user