From 64db6778ea877d0698d75bf98220edef88fb5b83 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 06:55:32 +0300 Subject: [PATCH 01/19] initial iteration --- .github/workflows/spellcheck.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/spellcheck.yml diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000..db09ac9 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,20 @@ +name: Spellcheck + +on: [push, pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + spellcheck: + name: Spelling + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + show-progress: false + - uses: codespell-project/actions-codespell@master + with: + builtin: clear,en-GB_to_en-US \ No newline at end of file From 1d19ac72fcd9600778a83955d1504914487a9eda Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:01:43 +0300 Subject: [PATCH 02/19] fix issues --- .github/workflows/spellcheck.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index db09ac9..315ddce 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,6 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - builtin: clear,en-GB_to_en-US \ No newline at end of file + builtin: clear,en-GB_to_en-US + ignore-words-list: ue + skip: site/java/apidocs/legal/COPYRIGHT \ No newline at end of file From 038ff00bf0b67cc212e400bc3302ff1f85da3089 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:04:32 +0300 Subject: [PATCH 03/19] typo fixes --- site/java/project-info.html | 2 +- site/python/weftspace/data_node.html | 2 +- site/python/weftspace/logger.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/site/java/project-info.html b/site/java/project-info.html index c859f94..db2f181 100644 --- a/site/java/project-info.html +++ b/site/java/project-info.html @@ -79,7 +79,7 @@

Overview

This document lists the dependencies that are defined through dependencyManagement. Distribution Management -This document provides informations on the distribution management of this project. +This document provides information on the distribution management of this project. About Weftspace is a Java library designed to provide the maximum possible level of support for Endless Sky datafile syntax. As well as providing read/write functionality through the DataReader and DataWriter classes, it provides support for handling the data nodes themselves. diff --git a/site/python/weftspace/data_node.html b/site/python/weftspace/data_node.html index 47f7671..87ec9c4 100644 --- a/site/python/weftspace/data_node.html +++ b/site/python/weftspace/data_node.html @@ -182,7 +182,7 @@

Classes

Multiple distinct nodes may have the same hash code, as (1) the mechanics for hash() are not controlled, (2) parents are not taken into account in this method, and - (3) nodes which have themself as a child will not have their childen considered. + (3) nodes which have themself as a child will not have their children considered. """ prime: int = 31 hash_code: int = 1 diff --git a/site/python/weftspace/logger.html b/site/python/weftspace/logger.html index ced9b6f..235441b 100644 --- a/site/python/weftspace/logger.html +++ b/site/python/weftspace/logger.html @@ -196,7 +196,7 @@

Classes

def end_message(self, stream: TextIO): """ - Ends the message, reseting formating. If this message is a fatal error, calling + Ends the message, resetting formatting. If this message is a fatal error, calling this method will also exit the program with an error code of 1. """ stream.write(Logger.RESET) From 342ea205e23d48ed9199436e7ae078dc98ccf85a Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:04:49 +0300 Subject: [PATCH 04/19] British English is legal --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 315ddce..52ca942 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,6 +17,6 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - builtin: clear,en-GB_to_en-US + builtin: clear ignore-words-list: ue skip: site/java/apidocs/legal/COPYRIGHT \ No newline at end of file From 85a3d6546e01342c7e33dcbf9f49380b7eb4379d Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:11:07 +0300 Subject: [PATCH 05/19] hmm --- .github/workflows/spellcheck.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 52ca942..b5176d2 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,6 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - builtin: clear - ignore-words-list: ue - skip: site/java/apidocs/legal/COPYRIGHT \ No newline at end of file + builtin: dictionary \ No newline at end of file From 4c9d8115fbf24416f2fe94bd7f7a250afb4416af Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:14:39 +0300 Subject: [PATCH 06/19] hmmm --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index b5176d2..cd651de 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - builtin: dictionary \ No newline at end of file + builtin: dictionary_code,dictionary_rare \ No newline at end of file From 78198187c6e423b45ae2a282ca5f671179d9d8ff Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:16:52 +0300 Subject: [PATCH 07/19] I think I know the issue --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index cd651de..fcfb54a 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - builtin: dictionary_code,dictionary_rare \ No newline at end of file + builtin: dictionary_rare \ No newline at end of file From 634281599c72cae98693a9514ece2f200ab6a821 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:18:09 +0300 Subject: [PATCH 08/19] ... --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index fcfb54a..bff88e7 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - builtin: dictionary_rare \ No newline at end of file + ignore-words-list: testtesttest \ No newline at end of file From 7c61854f3023106879933db6c609c4e61ae68e2d Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:30:25 +0300 Subject: [PATCH 09/19] one final option --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index bff88e7..b12a6c2 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - ignore-words-list: testtesttest \ No newline at end of file + builtin: clear \ No newline at end of file From 78522074093e59afdcd6dfacbb77bc5143db3f2a Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 07:36:48 +0300 Subject: [PATCH 10/19] oh wait --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index b12a6c2..8890f4e 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - builtin: clear \ No newline at end of file + builtin: dictionary_code \ No newline at end of file From e5aecd9273b5cc6c2bb8259a695f6510c107bfea Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 08:03:17 +0300 Subject: [PATCH 11/19] typo fixes --- .github/workflows/spellcheck.yml | 2 +- java/src/main/java/io/github/moctave/weftspace/DataNode.java | 2 +- java/src/main/java/io/github/moctave/weftspace/Logger.java | 2 +- python/weftspace/data_node.py | 2 +- python/weftspace/logger.py | 2 +- site/java/apidocs/index-all.html | 2 +- site/java/apidocs/io/github/moctave/weftspace/DataNode.html | 2 +- .../apidocs/io/github/moctave/weftspace/Logger.Message.html | 4 ++-- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 8890f4e..e9805d8 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - builtin: dictionary_code \ No newline at end of file + ignore_words_list: blahblahblah \ No newline at end of file diff --git a/java/src/main/java/io/github/moctave/weftspace/DataNode.java b/java/src/main/java/io/github/moctave/weftspace/DataNode.java index 1375fea..8829230 100644 --- a/java/src/main/java/io/github/moctave/weftspace/DataNode.java +++ b/java/src/main/java/io/github/moctave/weftspace/DataNode.java @@ -99,7 +99,7 @@ public DataNode() { * Multiple distinct nodes may have the same hash code, as * (1) the mechanics for name.hashCode() and flag.hashCode() are not controlled, * (2) parents are not taken into account in this method, and - * (3) nodes which have themself as a child will not have their childen considered. + * (3) nodes which have themself as a child will not have their children considered. * @return A hash code value for this node. */ @Override diff --git a/java/src/main/java/io/github/moctave/weftspace/Logger.java b/java/src/main/java/io/github/moctave/weftspace/Logger.java index 07e692c..5b58e3d 100644 --- a/java/src/main/java/io/github/moctave/weftspace/Logger.java +++ b/java/src/main/java/io/github/moctave/weftspace/Logger.java @@ -194,7 +194,7 @@ public void printPrefix(PrintStream stream) { /** - * Ends the message, reseting formating. If this message is a fatal error, calling + * Ends the message, resetting formatting. If this message is a fatal error, calling * this method will also exit the program with an error code of 1. */ public void endMessage(PrintStream stream) { diff --git a/python/weftspace/data_node.py b/python/weftspace/data_node.py index 58b3153..1942050 100644 --- a/python/weftspace/data_node.py +++ b/python/weftspace/data_node.py @@ -141,7 +141,7 @@ def __hash__(self): Multiple distinct nodes may have the same hash code, as (1) the mechanics for hash() are not controlled, (2) parents are not taken into account in this method, and - (3) nodes which have themself as a child will not have their childen considered. + (3) nodes which have themself as a child will not have their children considered. """ prime: int = 31 hash_code: int = 1 diff --git a/python/weftspace/logger.py b/python/weftspace/logger.py index 978b1a9..685d567 100644 --- a/python/weftspace/logger.py +++ b/python/weftspace/logger.py @@ -163,7 +163,7 @@ def print_prefix(self, stream: TextIO): def end_message(self, stream: TextIO): """ - Ends the message, reseting formating. If this message is a fatal error, calling + Ends the message, resetting formatting. If this message is a fatal error, calling this method will also exit the program with an error code of 1. """ stream.write(Logger.RESET) diff --git a/site/java/apidocs/index-all.html b/site/java/apidocs/index-all.html index dcb2d10..ebbac65 100644 --- a/site/java/apidocs/index-all.html +++ b/site/java/apidocs/index-all.html @@ -205,7 +205,7 @@

E

endMessage(PrintStream) - Method in class io.github.moctave.weftspace.Logger.Message
-
Ends the message, reseting formating.
+
Ends the message, resetting formatting.
equals(Object) - Method in class io.github.moctave.weftspace.DataNode
diff --git a/site/java/apidocs/io/github/moctave/weftspace/DataNode.html b/site/java/apidocs/io/github/moctave/weftspace/DataNode.html index 197dc62..8618ca9 100644 --- a/site/java/apidocs/io/github/moctave/weftspace/DataNode.html +++ b/site/java/apidocs/io/github/moctave/weftspace/DataNode.html @@ -310,7 +310,7 @@

hashCode

Multiple distinct nodes may have the same hash code, as (1) the mechanics for name.hashCode() and flag.hashCode() are not controlled, (2) parents are not taken into account in this method, and - (3) nodes which have themself as a child will not have their childen considered. + (3) nodes which have themself as a child will not have their children considered.
Overrides:
hashCode in class Object
diff --git a/site/java/apidocs/io/github/moctave/weftspace/Logger.Message.html b/site/java/apidocs/io/github/moctave/weftspace/Logger.Message.html index bdcc010..b593da4 100644 --- a/site/java/apidocs/io/github/moctave/weftspace/Logger.Message.html +++ b/site/java/apidocs/io/github/moctave/weftspace/Logger.Message.html @@ -124,7 +124,7 @@

Method Summary

void
-
Ends the message, reseting formating.
+
Ends the message, resetting formatting.
void
@@ -212,7 +212,7 @@

printPrefix

endMessage

public void endMessage(PrintStream stream)
-
Ends the message, reseting formating. If this message is a fatal error, calling +
Ends the message, resetting formatting. If this message is a fatal error, calling this method will also exit the program with an error code of 1.
From 6c27a2c9baf24ca0416f6b5259f18ee1428bc754 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 08:06:22 +0300 Subject: [PATCH 12/19] exclude all subdirectories of `site` --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index e9805d8..21d8f6f 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - ignore_words_list: blahblahblah \ No newline at end of file + exclude_file: ./site/* \ No newline at end of file From e04118d009c8ed75f87248cadee14d0d9232c5d5 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 08:07:13 +0300 Subject: [PATCH 13/19] ??? --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 21d8f6f..c922354 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - exclude_file: ./site/* \ No newline at end of file + exclude_file: site/* \ No newline at end of file From cd9665f3f810c51f78cc977fa9e1ebf978a86bdb Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 08:10:46 +0300 Subject: [PATCH 14/19] how do you do this --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index c922354..ccebcb9 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - exclude_file: site/* \ No newline at end of file + exclude_file: site/** From 16b4db9bd5c65ec47374621672ad7ac11b4fc709 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 08:11:51 +0300 Subject: [PATCH 15/19] * --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index ccebcb9..4f9708c 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - exclude_file: site/** + exclude_file: site/ From b929a7a196d0fe51323f90af423323740c539c80 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 08:14:43 +0300 Subject: [PATCH 16/19] why is it making me do this --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 4f9708c..347ee17 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - exclude_file: site/ + exclude_file: site/java/testapidocs/script-dir/jquery-3.5.1.min.js,site/java/apidocs/script-dir/jquery-3.5.1.min.js From 3e9ff1b4bc0417e9b5fa0ffc64ed11c777403ed3 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 08:16:18 +0300 Subject: [PATCH 17/19] ignore COPYRIGHT files for the sake of completeness --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 347ee17..3020eec 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - exclude_file: site/java/testapidocs/script-dir/jquery-3.5.1.min.js,site/java/apidocs/script-dir/jquery-3.5.1.min.js + exclude_file: site/java/testapidocs/script-dir/jquery-3.5.1.min.js,site/java/apidocs/script-dir/jquery-3.5.1.min.js,site/java/apidocs/legal/COPYRIGHT,site/java/testapidocs/legal/COPYRIGHT From aab968a4ccb6f6295025cde309d50d9e1af6803a Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Sun, 3 Aug 2025 08:19:44 +0300 Subject: [PATCH 18/19] oh gosh --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 3020eec..347ee17 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -17,4 +17,4 @@ jobs: show-progress: false - uses: codespell-project/actions-codespell@master with: - exclude_file: site/java/testapidocs/script-dir/jquery-3.5.1.min.js,site/java/apidocs/script-dir/jquery-3.5.1.min.js,site/java/apidocs/legal/COPYRIGHT,site/java/testapidocs/legal/COPYRIGHT + exclude_file: site/java/testapidocs/script-dir/jquery-3.5.1.min.js,site/java/apidocs/script-dir/jquery-3.5.1.min.js From 55ff80bc9d3b59b504dc0b8f7f8f84775a6ff305 Mon Sep 17 00:00:00 2001 From: Loymdayddaud <145969603+TheGiraffe3@users.noreply.github.com> Date: Mon, 4 Aug 2025 09:08:06 +0300 Subject: [PATCH 19/19] rename spellcheck.yml to style.yml and make suggested changes --- .github/workflows/{spellcheck.yml => style.yml} | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) rename .github/workflows/{spellcheck.yml => style.yml} (82%) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/style.yml similarity index 82% rename from .github/workflows/spellcheck.yml rename to .github/workflows/style.yml index 347ee17..4e192f2 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/style.yml @@ -1,6 +1,11 @@ -name: Spellcheck +name: Style -on: [push, pull_request] +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}