[ci]Upgrade to check-spelling 0.0.20alpha7 (#19127)

* spelling: added

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: and

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: another

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: color

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: file

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: github

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: not

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: occurrences

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: stamp

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: suppressions

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: the

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: up to

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: whether

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* spelling: whichdoes

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

* Upgrade check-spelling to v0.0.20-alpha7

Config based on:
a5001170a7

* Adding duplicate detection to patterns.txt
* Adding line_forbidden.patterns
* Adding reject.txt
* Updated excludes (and sorted)
* Switching to unified workflow

* moving `wil` to allow.txt to clarify that it's a term of art
  (https://github.com/microsoft/wil), whereas often it's a typo for `will`.

* Update src/runner/main.cpp

Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
Josh Soref
2022-07-01 10:09:41 -04:00
committed by GitHub
parent f4dbdbdd7a
commit 3cb0638c7e
37 changed files with 190 additions and 144 deletions

View File

@@ -287,7 +287,7 @@ namespace Microsoft.Plugin.Program.UnitTests.Programs
}
[TestMethod]
public void DedupFunctionWhenCalledMustNotRemovelnkWhichdoesNotHaveExe()
public void DedupFunctionWhenCalledMustNotRemovelnkWhichDoesNotHaveExe()
{
// Arrange
List<Win32Program> prgms = new List<Win32Program>

View File

@@ -27,7 +27,7 @@ namespace Microsoft.Plugin.Program.Storage
// Using OrdinalIgnoreCase since this is used internally with paths
if (string.IsNullOrEmpty(previousAppPath) || previousAppPath.Equals(currentAppPath, StringComparison.OrdinalIgnoreCase))
{
// To dequeue a path only if it is the first one in the queue or if the path was the same as thre previous one (to avoid trying to create apps on duplicate events)
// To dequeue a path only if it is the first one in the queue or if the path was the same as the previous one (to avoid trying to create apps on duplicate events)
previousAppPath = currentAppPath;
eventHandlingQueue.TryDequeue(out _);
}

View File

@@ -124,7 +124,7 @@ namespace Microsoft.Plugin.WindowWalker.Components
/// <param name="name">New process name.</param>
internal void UpdateProcessInfo(uint pid, uint tid, string name)
{
// TODO: Add verification as to wether the process id and thread id is valid
// TODO: Add verification as to whether the process id and thread id is valid
ProcessID = pid;
ThreadID = tid;
Name = name;

View File

@@ -4741,7 +4741,7 @@ namespace Microsoft.PowerToys.Run.Plugin.TimeZone.Properties {
}
/// <summary>
/// Looks up a localized string similar to Gets the the current time of a time zone.
/// Looks up a localized string similar to Gets the current time of a time zone.
/// </summary>
internal static string PluginDescription {
get {

View File

@@ -69,14 +69,14 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsSettings
public bool ShowAsFirstResult { get; set; }
/// <summary>
/// Gets or sets the the value with the generated area path as string.
/// Gets or sets the value with the generated area path as string.
/// This Property IS NOT PART OF THE DATA IN "WindowsSettings.json".
/// This property will be filled on runtime by "WindowsSettingsPathHelper".
/// </summary>
public string? JoinedAreaPath { get; set; }
/// <summary>
/// Gets or sets the the value with the generated full settings path (App and areas) as string.
/// Gets or sets the value with the generated full settings path (App and areas) as string.
/// This Property IS NOT PART OF THE DATA IN "WindowsSettings.json".
/// This property will be filled on runtime by "WindowsSettingsPathHelper".
/// </summary>

View File

@@ -221,9 +221,9 @@ namespace PowerLauncher.Helper
}
/// <summary>
/// Checks wether this process is running under the system user/account.
/// Checks whether this process is running under the system user/account.
/// </summary>
/// <returns>A boolean value that indicates wether this process is running under system account (true) or not (false).</returns>
/// <returns>A boolean value that indicates whether this process is running under system account (true) or not (false).</returns>
private static bool IsRunningAsSystem()
{
using (var identity = WindowsIdentity.GetCurrent())

View File

@@ -26,9 +26,9 @@ namespace PowerLauncher.Properties {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("https://aka.ms/powerToys")]
public string GithubRepo {
public string GitHubRepo {
get {
return ((string)(this["GithubRepo"]));
return ((string)(this["GitHubRepo"]));
}
}
}

View File

@@ -2,7 +2,7 @@
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="Wox.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="GithubRepo" Type="System.String" Scope="Application">
<Setting Name="GitHubRepo" Type="System.String" Scope="Application">
<Value Profile="(Default)">https://github.com/Wox-launcher/Wox</Value>
</Setting>
</Settings>

View File

@@ -389,10 +389,10 @@ namespace Wox.Plugin.Common.VirtualDesktop.Helper
/// </summary>
/// <param name="hWindow">Handle of the window.</param>
/// <param name="desktop">Optional the desktop id if known</param>
/// <returns>A value indicating if the window is cloaked by Virtual Desktop Manager, because it is moved to an other desktop.</returns>
/// <returns>A value indicating if the window is cloaked by Virtual Desktop Manager, because it is moved to another desktop.</returns>
public bool IsWindowCloakedByVirtualDesktopManager(IntPtr hWindow, Guid? desktop = null)
{
// If a window is hidden because it is moved to an other desktop, then DWM returns type "CloakedShell". If DWM returns an other type the window is not cloaked by shell or VirtualDesktopManager.
// If a window is hidden because it is moved to another desktop, then DWM returns type "CloakedShell". If DWM returns another type the window is not cloaked by shell or VirtualDesktopManager.
_ = NativeMethods.DwmGetWindowAttribute(hWindow, (int)DwmWindowAttributes.Cloaked, out int dwmCloakedState, sizeof(uint));
return GetWindowDesktopAssignmentType(hWindow, desktop) == VirtualDesktopAssignmentType.OtherDesktop && dwmCloakedState == (int)DwmWindowCloakStates.CloakedShell;
}
@@ -414,7 +414,7 @@ namespace Wox.Plugin.Common.VirtualDesktop.Helper
int hr = _virtualDesktopManager.MoveWindowToDesktop(hWindow, desktopId);
if (hr != (int)HRESULT.S_OK)
{
Log.Exception($"VirtualDesktopHelper.MoveWindowToDesktop() failed: An exception was thrown when moving the window ({hWindow}) to an other desktop ({desktopId}).", Marshal.GetExceptionForHR(hr), typeof(VirtualDesktopHelper));
Log.Exception($"VirtualDesktopHelper.MoveWindowToDesktop() failed: An exception was thrown when moving the window ({hWindow}) to another desktop ({desktopId}).", Marshal.GetExceptionForHR(hr), typeof(VirtualDesktopHelper));
return false;
}