Upgrade check-spelling to 0.0.17-alpha (#10173)

* spelling: snapped

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

* spelling: split

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

* ci: update to Spell check to 0.0.17a

In the past, plurals `foo`+`s` and past tenses `foo`+`ed` were
automatically tolerated. This turned out to be a bad design choice on my
part.

The basic example is that `potatos` would sometimes be treated as a
mistake and sometimes not (depending on the presence of `potato`).

You can see in this PR, that this logic resulted in `SNAPED` being
accepted as a word along with `actioned` -- there's nothing
intrinsically wrong w/ the latter, but unfortunately in order to screen
out the former, my shortcut just couldn't stick around. This means that
the `expect` files will grow perhaps by a tiny bit, but as
you can see, not really by much.

When GitHub initially introduced GitHub Actions, the event for
`pull_request` was created without enough permission for a tool like
this to work properly. I worked around that by using the `schedule`
event. In 2020, they introduced a replacement event
`pull_request_target` which has enough permission. This means that I can
stop relying on the `schedule` event.
This commit is contained in:
Josh Soref
2021-03-17 14:27:30 -04:00
committed by GitHub
parent 535cd1f9ac
commit 72d92413a2
6 changed files with 88 additions and 138 deletions

View File

@@ -68,7 +68,7 @@ namespace Wox.Plugin
private ReadOnlyCollection<string> _terms;
/// <summary>
/// Gets the raw query splited into a string array.
/// Gets the raw query split into a string array.
/// </summary>
public ReadOnlyCollection<string> Terms
{
@@ -89,7 +89,7 @@ namespace Wox.Plugin
}
/// <summary>
/// Query can be splited into multiple terms by whitespace
/// Query can be split into multiple terms by whitespace
/// </summary>
public const string TermSeparator = " ";

View File

@@ -32,12 +32,12 @@ namespace
UNKNOWN,
MINIMIZED,
MAXIMIZED,
SNAPED_TOP_LEFT,
SNAPED_LEFT,
SNAPED_BOTTOM_LEFT,
SNAPED_TOP_RIGHT,
SNAPED_RIGHT,
SNAPED_BOTTOM_RIGHT,
SNAPPED_TOP_LEFT,
SNAPPED_LEFT,
SNAPPED_BOTTOM_LEFT,
SNAPPED_TOP_RIGHT,
SNAPPED_RIGHT,
SNAPPED_BOTTOM_RIGHT,
RESTORED
};
@@ -78,17 +78,17 @@ namespace
bool bottom_right = monitor.rcWork.bottom == rect.bottom && monitor.rcWork.right == rect.right;
if (top_left && bottom_left)
return SNAPED_LEFT;
return SNAPPED_LEFT;
if (top_left)
return SNAPED_TOP_LEFT;
return SNAPPED_TOP_LEFT;
if (bottom_left)
return SNAPED_BOTTOM_LEFT;
return SNAPPED_BOTTOM_LEFT;
if (top_right && bottom_right)
return SNAPED_RIGHT;
return SNAPPED_RIGHT;
if (top_right)
return SNAPED_TOP_RIGHT;
return SNAPPED_TOP_RIGHT;
if (bottom_right)
return SNAPED_BOTTOM_RIGHT;
return SNAPPED_BOTTOM_RIGHT;
return RESTORED;
}
@@ -900,37 +900,37 @@ void D2DOverlayWindow::render(ID2D1DeviceContext5* d2d_dc)
up_disabled = true;
down = GET_RESOURCE_STRING(IDS_RESTORE);
break;
case SNAPED_TOP_LEFT:
case SNAPPED_TOP_LEFT:
left = GET_RESOURCE_STRING(IDS_SNAP_UPPER_RIGHT);
right = GET_RESOURCE_STRING(IDS_SNAP_UPPER_RIGHT);
up = GET_RESOURCE_STRING(IDS_MAXIMIZE);
down = GET_RESOURCE_STRING(IDS_SNAP_LEFT);
break;
case SNAPED_LEFT:
case SNAPPED_LEFT:
left = GET_RESOURCE_STRING(IDS_SNAP_RIGHT);
right = GET_RESOURCE_STRING(IDS_RESTORE);
up = GET_RESOURCE_STRING(IDS_SNAP_UPPER_LEFT);
down = GET_RESOURCE_STRING(IDS_SNAP_LOWER_LEFT);
break;
case SNAPED_BOTTOM_LEFT:
case SNAPPED_BOTTOM_LEFT:
left = GET_RESOURCE_STRING(IDS_SNAP_LOWER_RIGHT);
right = GET_RESOURCE_STRING(IDS_SNAP_LOWER_RIGHT);
up = GET_RESOURCE_STRING(IDS_SNAP_LEFT);
down = GET_RESOURCE_STRING(IDS_MINIMIZE);
break;
case SNAPED_TOP_RIGHT:
case SNAPPED_TOP_RIGHT:
left = GET_RESOURCE_STRING(IDS_SNAP_UPPER_LEFT);
right = GET_RESOURCE_STRING(IDS_SNAP_UPPER_LEFT);
up = GET_RESOURCE_STRING(IDS_MAXIMIZE);
down = GET_RESOURCE_STRING(IDS_SNAP_RIGHT);
break;
case SNAPED_RIGHT:
case SNAPPED_RIGHT:
left = GET_RESOURCE_STRING(IDS_RESTORE);
right = GET_RESOURCE_STRING(IDS_SNAP_LEFT);
up = GET_RESOURCE_STRING(IDS_SNAP_UPPER_RIGHT);
down = GET_RESOURCE_STRING(IDS_SNAP_LOWER_RIGHT);
break;
case SNAPED_BOTTOM_RIGHT:
case SNAPPED_BOTTOM_RIGHT:
left = GET_RESOURCE_STRING(IDS_SNAP_LOWER_LEFT);
right = GET_RESOURCE_STRING(IDS_SNAP_LOWER_LEFT);
up = GET_RESOURCE_STRING(IDS_SNAP_RIGHT);