mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-06-07 01:08:18 +08:00
Fixing policheck flags
This commit is contained in:
parent
27d8beb0cb
commit
0e41684cf0
1
.github/actions/spell-check/expect.txt
vendored
1
.github/actions/spell-check/expect.txt
vendored
@ -88,7 +88,6 @@ ARPPRODUCTICON
|
||||
ARRAYSIZE
|
||||
arsinh
|
||||
artanh
|
||||
Artsakh
|
||||
asdf
|
||||
AShortcut
|
||||
ASingle
|
||||
|
@ -32,7 +32,7 @@ A minimum entry for the `TimeZone.json` looks like:
|
||||
```json
|
||||
{
|
||||
"Offset": "11:55",
|
||||
"Name": "My crazy time zone",
|
||||
"Name": "My unique time zone",
|
||||
}
|
||||
```
|
||||
|
||||
@ -41,26 +41,26 @@ A full entry for the `TimeZone.json` looks like:
|
||||
```json
|
||||
{
|
||||
"Offset": "11:55",
|
||||
"Name": "My crazy time zone",
|
||||
"Name": "My unique time zone",
|
||||
"Shortcut" : "MYTZ",
|
||||
"MilitaryName" : "Order Time Zone",
|
||||
"TimeNamesStandard": [
|
||||
"My crazy standard time"
|
||||
"My unique standard time"
|
||||
],
|
||||
"ShortcutsStandard": [
|
||||
"MCST"
|
||||
],
|
||||
"TimeNamesDaylight": [
|
||||
"My crazy daylight time"
|
||||
"My unique daylight time"
|
||||
],
|
||||
"ShortcutsDaylight": [
|
||||
"MCDT"
|
||||
],
|
||||
"CountriesStandard": [
|
||||
"Crazy Land East"
|
||||
"unique Land East"
|
||||
],
|
||||
"CountriesDaylight": [
|
||||
"Crazy Land West"
|
||||
"Unique Land West"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
@ -37,8 +37,8 @@ namespace JsonUtils
|
||||
for (uint32_t i = 0; i < size; ++i)
|
||||
{
|
||||
json::JsonObject zoneJson = zonesJson.GetObjectAt(i);
|
||||
const int x = static_cast<int>(zoneJson.GetNamedNumber(NonLocalizable::CustomLayoutsIds::XID));
|
||||
const int y = static_cast<int>(zoneJson.GetNamedNumber(NonLocalizable::CustomLayoutsIds::YID));
|
||||
const int x = static_cast<int>(zoneJson.GetNamedNumber(NonLocalizable::CustomLayoutsIds::XAxisID));
|
||||
const int y = static_cast<int>(zoneJson.GetNamedNumber(NonLocalizable::CustomLayoutsIds::YAxisID));
|
||||
const int width = static_cast<int>(zoneJson.GetNamedNumber(NonLocalizable::CustomLayoutsIds::WidthID));
|
||||
const int height = static_cast<int>(zoneJson.GetNamedNumber(NonLocalizable::CustomLayoutsIds::HeightID));
|
||||
FancyZonesDataTypes::CanvasLayoutInfo::Rect zone{ x, y, width, height };
|
||||
|
@ -30,8 +30,8 @@ namespace NonLocalizable
|
||||
const static wchar_t* RefHeightID = L"ref-height";
|
||||
const static wchar_t* RefWidthID = L"ref-width";
|
||||
const static wchar_t* ZonesID = L"zones";
|
||||
const static wchar_t* XID = L"X";
|
||||
const static wchar_t* YID = L"Y";
|
||||
const static wchar_t* XAxisID = L"X";
|
||||
const static wchar_t* YAxisID = L"Y";
|
||||
const static wchar_t* WidthID = L"width";
|
||||
const static wchar_t* HeightID = L"height";
|
||||
|
||||
|
@ -32,16 +32,16 @@ namespace FancyZonesUnitTests
|
||||
json::JsonArray zonesArray{};
|
||||
{
|
||||
json::JsonObject zone{};
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::XID, json::value(0));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::YID, json::value(0));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::XAxisID, json::value(0));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::YAxisID, json::value(0));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::WidthID, json::value(1140));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::HeightID, json::value(1040));
|
||||
zonesArray.Append(zone);
|
||||
}
|
||||
{
|
||||
json::JsonObject zone{};
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::XID, json::value(1140));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::YID, json::value(649));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::XAxisID, json::value(1140));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::YAxisID, json::value(649));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::WidthID, json::value(780));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::HeightID, json::value(391));
|
||||
zonesArray.Append(zone);
|
||||
|
@ -65,8 +65,8 @@ namespace FancyZonesUnitTests
|
||||
for (const auto& zoneRect : zones)
|
||||
{
|
||||
json::JsonObject zone{};
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::XID, json::value(zoneRect.left));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::YID, json::value(zoneRect.top));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::XAxisID, json::value(zoneRect.left));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::YAxisID, json::value(zoneRect.top));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::WidthID, json::value(zoneRect.right - zoneRect.left));
|
||||
zone.SetNamedValue(NonLocalizable::CustomLayoutsIds::HeightID, json::value(zoneRect.bottom - zoneRect.top));
|
||||
zonesArray.Append(zone);
|
||||
|
@ -19,7 +19,7 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
@ -411,15 +411,6 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Artsakh.
|
||||
/// </summary>
|
||||
internal static string Artsakh {
|
||||
get {
|
||||
return ResourceManager.GetString("Artsakh", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Aruba.
|
||||
/// </summary>
|
||||
@ -1032,6 +1023,15 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cabo Verde.
|
||||
/// </summary>
|
||||
internal static string Cabo_Verde {
|
||||
get {
|
||||
return ResourceManager.GetString("Cabo Verde", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Caiguna (Australia).
|
||||
/// </summary>
|
||||
@ -1077,15 +1077,6 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cape Verde.
|
||||
/// </summary>
|
||||
internal static string Cape_Verde {
|
||||
get {
|
||||
return ResourceManager.GetString("Cape Verde", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Cape Verde Time.
|
||||
/// </summary>
|
||||
@ -1779,15 +1770,6 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to East Timor.
|
||||
/// </summary>
|
||||
internal static string East_Timor {
|
||||
get {
|
||||
return ResourceManager.GetString("East Timor", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Easter Island (Chile).
|
||||
/// </summary>
|
||||
@ -2796,15 +2778,6 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Ivory Coast.
|
||||
/// </summary>
|
||||
internal static string Ivory_Coast {
|
||||
get {
|
||||
return ResourceManager.GetString("Ivory Coast", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Jamaica.
|
||||
/// </summary>
|
||||
@ -3355,11 +3328,11 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Macau.
|
||||
/// Looks up a localized string similar to Macao SAR.
|
||||
/// </summary>
|
||||
internal static string Macau {
|
||||
internal static string Macao_SAR {
|
||||
get {
|
||||
return ResourceManager.GetString("Macau", resourceCulture);
|
||||
return ResourceManager.GetString("Macao SAR", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
@ -4263,15 +4236,6 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Northern Cyprus.
|
||||
/// </summary>
|
||||
internal static string Northern_Cyprus {
|
||||
get {
|
||||
return ResourceManager.GetString("Northern Cyprus", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Northern Mariana Islands.
|
||||
/// </summary>
|
||||
@ -4552,11 +4516,11 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Palestine.
|
||||
/// Looks up a localized string similar to Palestine Authority.
|
||||
/// </summary>
|
||||
internal static string Palestine {
|
||||
internal static string Palestine_Authority {
|
||||
get {
|
||||
return ResourceManager.GetString("Palestine", resourceCulture);
|
||||
return ResourceManager.GetString("Palestine Authority", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
@ -5667,15 +5631,6 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Sverdlovsk (Russia).
|
||||
/// </summary>
|
||||
internal static string Sverdlovsk__Russia_ {
|
||||
get {
|
||||
return ResourceManager.GetString("Sverdlovsk (Russia)", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Sweden.
|
||||
/// </summary>
|
||||
@ -5865,6 +5820,15 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Timor-Leste.
|
||||
/// </summary>
|
||||
internal static string Timor_Leste {
|
||||
get {
|
||||
return ResourceManager.GetString("Timor-Leste", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Timor Leste Time.
|
||||
/// </summary>
|
||||
@ -6576,6 +6540,15 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Yekaterinburg.
|
||||
/// </summary>
|
||||
internal static string Yekaterinburg {
|
||||
get {
|
||||
return ResourceManager.GetString("Yekaterinburg", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Yekaterinburg Time.
|
||||
/// </summary>
|
||||
|
@ -235,9 +235,6 @@
|
||||
<data name="Armenia Time" xml:space="preserve">
|
||||
<value>Armenia Time</value>
|
||||
</data>
|
||||
<data name="Artsakh" xml:space="preserve">
|
||||
<value>Artsakh</value>
|
||||
</data>
|
||||
<data name="Aruba" xml:space="preserve">
|
||||
<value>Aruba</value>
|
||||
</data>
|
||||
@ -458,8 +455,8 @@
|
||||
<data name="Canary Islands" xml:space="preserve">
|
||||
<value>Canary Islands</value>
|
||||
</data>
|
||||
<data name="Cape Verde" xml:space="preserve">
|
||||
<value>Cape Verde</value>
|
||||
<data name="Cabo Verde" xml:space="preserve">
|
||||
<value>Cabo Verde</value>
|
||||
</data>
|
||||
<data name="Cape Verde Time" xml:space="preserve">
|
||||
<value>Cape Verde Time</value>
|
||||
@ -695,8 +692,8 @@
|
||||
<data name="East Nusa Tenggara (Indonesia)" xml:space="preserve">
|
||||
<value>East Nusa Tenggara (Indonesia)</value>
|
||||
</data>
|
||||
<data name="East Timor" xml:space="preserve">
|
||||
<value>East Timor</value>
|
||||
<data name="Timor-Leste" xml:space="preserve">
|
||||
<value>Timor-Leste</value>
|
||||
</data>
|
||||
<data name="Easter Island (Chile)" xml:space="preserve">
|
||||
<value>Easter Island (Chile)</value>
|
||||
@ -1036,8 +1033,8 @@
|
||||
<data name="Ittoqqortoormiit (Greenland)" xml:space="preserve">
|
||||
<value>Ittoqqortoormiit (Greenland)</value>
|
||||
</data>
|
||||
<data name="Ivory Coast" xml:space="preserve">
|
||||
<value>Ivory Coast</value>
|
||||
<data name="Côte d’Ivoire" xml:space="preserve">
|
||||
<value>Côte d’Ivoire</value>
|
||||
</data>
|
||||
<data name="Jamaica" xml:space="preserve">
|
||||
<value>Jamaica</value>
|
||||
@ -1224,8 +1221,8 @@
|
||||
<data name="Luxembourg" xml:space="preserve">
|
||||
<value>Luxembourg</value>
|
||||
</data>
|
||||
<data name="Macau" xml:space="preserve">
|
||||
<value>Macau</value>
|
||||
<data name="Macao SAR" xml:space="preserve">
|
||||
<value>Macao SAR</value>
|
||||
</data>
|
||||
<data name="Macquarie Island Station Time" xml:space="preserve">
|
||||
<value>Macquarie Island Station Time</value>
|
||||
@ -1528,9 +1525,6 @@
|
||||
<data name="North Maluku (Indonesia)" xml:space="preserve">
|
||||
<value>North Maluku (Indonesia)</value>
|
||||
</data>
|
||||
<data name="Northern Cyprus" xml:space="preserve">
|
||||
<value>Northern Cyprus</value>
|
||||
</data>
|
||||
<data name="Northern Mariana Islands" xml:space="preserve">
|
||||
<value>Northern Mariana Islands</value>
|
||||
</data>
|
||||
@ -1626,8 +1620,8 @@
|
||||
<data name="Palau Time" xml:space="preserve">
|
||||
<value>Palau Time</value>
|
||||
</data>
|
||||
<data name="Palestine" xml:space="preserve">
|
||||
<value>Palestine</value>
|
||||
<data name="Palestine Authority" xml:space="preserve">
|
||||
<value>Palestine Authority</value>
|
||||
</data>
|
||||
<data name="Palmyra Atoll" xml:space="preserve">
|
||||
<value>Palmyra Atoll</value>
|
||||
@ -2003,8 +1997,8 @@
|
||||
<data name="Suriname Time" xml:space="preserve">
|
||||
<value>Suriname Time</value>
|
||||
</data>
|
||||
<data name="Sverdlovsk (Russia)" xml:space="preserve">
|
||||
<value>Sverdlovsk (Russia)</value>
|
||||
<data name="Yekaterinburg" xml:space="preserve">
|
||||
<value>Yekaterinburg</value>
|
||||
</data>
|
||||
<data name="Sweden" xml:space="preserve">
|
||||
<value>Sweden</value>
|
||||
|
@ -514,7 +514,7 @@
|
||||
"EGST"
|
||||
],
|
||||
"CountriesStandard": [
|
||||
"Cape Verde"
|
||||
"Cabo Verde"
|
||||
],
|
||||
"CountriesDaylight": [
|
||||
"Ittoqqortoormiit (Greenland)",
|
||||
@ -553,7 +553,7 @@
|
||||
"Guinea-Bissau",
|
||||
"Guinea",
|
||||
"Iceland",
|
||||
"Ivory Coast",
|
||||
"Côte d’Ivoire",
|
||||
"Liberia",
|
||||
"Mali",
|
||||
"Mauritania",
|
||||
@ -716,8 +716,7 @@
|
||||
"Lebanon",
|
||||
"Lithuania",
|
||||
"Moldova",
|
||||
"Northern Cyprus",
|
||||
"Palestine",
|
||||
"Palestine Authority",
|
||||
"Romania",
|
||||
"Transnistria",
|
||||
"Syria"
|
||||
@ -820,7 +819,6 @@
|
||||
],
|
||||
"CountriesDaylight": [
|
||||
"Armenia",
|
||||
"Artsakh",
|
||||
"Azerbaijan",
|
||||
"Crozet Islands (French Southern and Antarctic Lands)",
|
||||
"Georgia",
|
||||
@ -896,7 +894,7 @@
|
||||
"Kurgan (Russia)",
|
||||
"Orenburg (Russia)",
|
||||
"Perm (Russia)",
|
||||
"Sverdlovsk (Russia)",
|
||||
"Yekaterinburg",
|
||||
"Tyumen (Russia)",
|
||||
"Yamalia (Russia)",
|
||||
"Tajikistan",
|
||||
@ -1081,7 +1079,7 @@
|
||||
"South Kalimantan (Indonesia)",
|
||||
"Sulawesi (Indonesia)",
|
||||
"West Nusa Tenggara (Indonesia)",
|
||||
"Macau",
|
||||
"Macao SAR",
|
||||
"Malaysia",
|
||||
"Mongolia (most)",
|
||||
"Philippines",
|
||||
@ -1132,7 +1130,7 @@
|
||||
"YAKT"
|
||||
],
|
||||
"CountriesStandard": [
|
||||
"East Timor",
|
||||
"Timor-Leste",
|
||||
"Maluku (Indonesia)",
|
||||
"North Maluku (Indonesia)",
|
||||
"Papua (Indonesia)",
|
||||
|
@ -91,23 +91,23 @@ namespace Wox.Infrastructure.Exception
|
||||
|
||||
// GlobalAssemblyCache - .NET Core and .NET 5 and later: false in all cases.
|
||||
// Source https://learn.microsoft.com/dotnet/api/system.reflection.assembly.globalassemblycache?view=net-6.0
|
||||
foreach (var ass in AppDomain.CurrentDomain.GetAssemblies())
|
||||
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
|
||||
{
|
||||
sb.Append("* ");
|
||||
sb.Append(ass.FullName);
|
||||
sb.Append(assembly.FullName);
|
||||
sb.Append(" (");
|
||||
|
||||
if (ass.IsDynamic)
|
||||
if (assembly.IsDynamic)
|
||||
{
|
||||
sb.Append("dynamic assembly doesn't has location");
|
||||
}
|
||||
else if (string.IsNullOrEmpty(ass.Location))
|
||||
else if (string.IsNullOrEmpty(assembly.Location))
|
||||
{
|
||||
sb.Append("location is null or empty");
|
||||
}
|
||||
else
|
||||
{
|
||||
sb.Append(ass.Location);
|
||||
sb.Append(assembly.Location);
|
||||
}
|
||||
|
||||
sb.AppendLine(")");
|
||||
|
@ -53,7 +53,7 @@ namespace PowerAccent.Core
|
||||
Language.CUR => GetDefaultLetterKeyCUR(letter), // Currency
|
||||
Language.CY => GetDefaultLetterKeyCY(letter), // Welsh
|
||||
Language.CZ => GetDefaultLetterKeyCZ(letter), // Czech
|
||||
Language.GA => GetDefaultLetterKeyGA(letter), // Gaeilge (Irish Gaelic)
|
||||
Language.GA => GetDefaultLetterKeyGA(letter), // Gaeilge (Irish)
|
||||
Language.GD => GetDefaultLetterKeyGD(letter), // Gàidhlig (Scottish Gaelic)
|
||||
Language.DE => GetDefaultLetterKeyDE(letter), // German
|
||||
Language.EST => GetDefaultLetterKeyEST(letter), // Estonian
|
||||
|
Loading…
Reference in New Issue
Block a user