diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml new file mode 100644 index 0000000..4e192f2 --- /dev/null +++ b/.github/workflows/style.yml @@ -0,0 +1,25 @@ +name: Style + +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] + workflow_dispatch: + +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: + exclude_file: site/java/testapidocs/script-dir/jquery-3.5.1.min.js,site/java/apidocs/script-dir/jquery-3.5.1.min.js 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 @@
hashCode in class ObjectvoidendMessage(PrintStream stream) voidformatOn(PrintStream stream)