chore(spelling): add codespell pre-commit hook

Fixes spelling mistakes identified by it.
This commit is contained in:
Leroy Hopson 2024-03-29 23:55:53 +13:00
parent bc15d8950f
commit 1d2898f6ab
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
14 changed files with 23 additions and 18 deletions

View file

@ -852,7 +852,7 @@ func directory_remove_batch(files, args = {}):
if dir.remove(dir.get_current_dir()) == OK:
logger.debug("Remove empty directory: %s" % dir.get_current_dir())
# Dumb method to clean empty ancestor directories
logger.debug("Removing emoty ancestor directory for %s..." % dir.get_current_dir())
logger.debug("Removing empty ancestor directory for %s..." % dir.get_current_dir())
var current_dir = dir.get_current_dir()
for i in slash_count:
current_dir = current_dir.get_base_dir()

View file

@ -1,4 +1,4 @@
# For convenient building of the library and gdnative export templates targeted at the javacript platform.
# For convenient building of the library and gdnative export templates targeted at the javascript platform.
FROM emscripten/emsdk:3.1.14
RUN apt-get update && apt-get install pkg-config python3 -y
RUN pip3 install scons==4.4.0

View file

@ -20,7 +20,7 @@ const char* Terminal::FONT_TYPES[4] = {
};
const Terminal::KeyMap Terminal::KEY_MAP = {
// Godot does not have seperate scancodes for keypad keys when NumLock is
// Godot does not have separate scancodes for keypad keys when NumLock is
// off. We can check the unicode value to determine whether it is off and
// set the appropriate scancode. Based on the patch which adds support for
// this to TextEdit/LineEdit:

View file

@ -377,7 +377,7 @@ Dictionary PTYUnix::fork(
}
}
// reenable signals
// re-enable signals
pthread_sigmask(SIG_SETMASK, &oldmask, NULL);
switch (pid) {

View file

@ -149,7 +149,7 @@ HRESULT CreateNamedPipesAndPseudoConsole(COORD size, DWORD dwFlags,
}
}
// Failed to find kernel32. This is realy unlikely - honestly no idea how
// Failed to find kernel32. This is really unlikely - honestly no idea how
// this is even possible to hit. But if it does happen, fall back to
// winpty.
return HRESULT_FROM_WIN32(GetLastError());
@ -180,7 +180,7 @@ static NAN_METHOD(PtyStartProcess) {
const bool inheritCursor = Nan::To<bool>(info[5]).FromJust();
// use environment 'Path' variable to determine location of
// the relative path that we have recieved (e.g cmd.exe)
// the relative path that we have received (e.g cmd.exe)
std::wstring shellpath;
if (::PathIsRelativeW(filename.c_str())) {
shellpath = path_util::get_shell_path(filename.c_str());

View file

@ -147,7 +147,7 @@ static NAN_METHOD(PtyStartProcess) {
}
// use environment 'Path' variable to determine location of
// the relative path that we have recieved (e.g cmd.exe)
// the relative path that we have received (e.g cmd.exe)
std::wstring shellpath;
if (::PathIsRelativeW(filename)) {
shellpath = path_util::get_shell_path(filename);

View file

@ -227,7 +227,7 @@ Array PTYUnix::fork(String p_file, int _ignored, PackedStringArray p_args,
sigaction(i, &sig_action, NULL);
}
}
// reenable signals
// re-enable signals
pthread_sigmask(SIG_SETMASK, &oldmask, NULL);
if (pid) {
@ -677,4 +677,4 @@ void PTYUnix::_bind_methods() {
void PTYUnix::_init() {}
#endif
#endif

View file

@ -313,7 +313,7 @@ Dictionary fork(
free(cwd);
}
// reenable signals
// re-enable signals
pthread_sigmask(SIG_SETMASK, &oldmask, NULL);
switch (pid) {

View file

@ -395,7 +395,7 @@ Napi::Value PtyFork(const Napi::CallbackInfo& info) {
}
}
// reenable signals
// re-enable signals
pthread_sigmask(SIG_SETMASK, &oldmask, NULL);
switch (pid) {
@ -785,4 +785,4 @@ Napi::Object init(Napi::Env env, Napi::Object exports) {
NODE_API_MODULE(NODE_GYP_MODULE_NAME, init)
#endif
#endif

View file

@ -100,7 +100,7 @@ func _set_terminal(value):
if _terminal == value:
return
# Disconect the current terminal, if any.
# Disconnect the current terminal, if any.
if _terminal != null:
disconnect("data_received", Callable(_terminal, "write"))
_terminal.disconnect("data_sent", Callable(self, "write"))