Skip to content

Commit be492b4

Browse files
authored
feat(CI/CD): Add Codespell action (#12)
1 parent 2064135 commit be492b4

11 files changed

Lines changed: 36 additions & 11 deletions

File tree

.github/workflows/style.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Style
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
spellcheck:
16+
name: Spelling
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{ github.event.pull_request.head.sha }}
22+
show-progress: false
23+
- uses: codespell-project/actions-codespell@master
24+
with:
25+
exclude_file: site/java/testapidocs/script-dir/jquery-3.5.1.min.js,site/java/apidocs/script-dir/jquery-3.5.1.min.js

java/src/main/java/io/github/moctave/weftspace/DataNode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public DataNode() {
9999
* Multiple distinct nodes may have the same hash code, as
100100
* (1) the mechanics for name.hashCode() and flag.hashCode() are not controlled,
101101
* (2) parents are not taken into account in this method, and
102-
* (3) nodes which have themself as a child will not have their childen considered.
102+
* (3) nodes which have themself as a child will not have their children considered.
103103
* @return A hash code value for this node.
104104
*/
105105
@Override

java/src/main/java/io/github/moctave/weftspace/Logger.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public void printPrefix(PrintStream stream) {
194194

195195

196196
/**
197-
* Ends the message, reseting formating. If this message is a fatal error, calling
197+
* Ends the message, resetting formatting. If this message is a fatal error, calling
198198
* this method will also exit the program with an error code of 1.
199199
*/
200200
public void endMessage(PrintStream stream) {

python/weftspace/data_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def __hash__(self):
141141
Multiple distinct nodes may have the same hash code, as
142142
(1) the mechanics for hash() are not controlled,
143143
(2) parents are not taken into account in this method, and
144-
(3) nodes which have themself as a child will not have their childen considered.
144+
(3) nodes which have themself as a child will not have their children considered.
145145
"""
146146
prime: int = 31
147147
hash_code: int = 1

python/weftspace/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def print_prefix(self, stream: TextIO):
163163

164164
def end_message(self, stream: TextIO):
165165
"""
166-
Ends the message, reseting formating. If this message is a fatal error, calling
166+
Ends the message, resetting formatting. If this message is a fatal error, calling
167167
this method will also exit the program with an error code of 1.
168168
"""
169169
stream.write(Logger.RESET)

site/java/apidocs/index-all.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ <h2 class="title" id="I:E">E</h2>
205205
<dl class="index">
206206
<dt><a href="io/github/moctave/weftspace/Logger.Message.html#endMessage(java.io.PrintStream)" class="member-name-link">endMessage(PrintStream)</a> - Method in class io.github.moctave.weftspace.<a href="io/github/moctave/weftspace/Logger.Message.html" title="class in io.github.moctave.weftspace">Logger.Message</a></dt>
207207
<dd>
208-
<div class="block">Ends the message, reseting formating.</div>
208+
<div class="block">Ends the message, resetting formatting.</div>
209209
</dd>
210210
<dt><a href="io/github/moctave/weftspace/DataNode.html#equals(java.lang.Object)" class="member-name-link">equals(Object)</a> - Method in class io.github.moctave.weftspace.<a href="io/github/moctave/weftspace/DataNode.html" title="class in io.github.moctave.weftspace">DataNode</a></dt>
211211
<dd>

site/java/apidocs/io/github/moctave/weftspace/DataNode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ <h3>hashCode</h3>
310310
Multiple distinct nodes may have the same hash code, as
311311
(1) the mechanics for name.hashCode() and flag.hashCode() are not controlled,
312312
(2) parents are not taken into account in this method, and
313-
(3) nodes which have themself as a child will not have their childen considered.</div>
313+
(3) nodes which have themself as a child will not have their children considered.</div>
314314
<dl class="notes">
315315
<dt>Overrides:</dt>
316316
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="external-link">hashCode</a></code>&nbsp;in class&nbsp;<code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html" title="class or interface in java.lang" class="external-link">Object</a></code></dd>

site/java/apidocs/io/github/moctave/weftspace/Logger.Message.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h2>Method Summary</h2>
124124
<div class="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
125125
<div class="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#endMessage(java.io.PrintStream)" class="member-name-link">endMessage</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/PrintStream.html" title="class or interface in java.io" class="external-link">PrintStream</a>&nbsp;stream)</code></div>
126126
<div class="col-last even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4">
127-
<div class="block">Ends the message, reseting formating.</div>
127+
<div class="block">Ends the message, resetting formatting.</div>
128128
</div>
129129
<div class="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>void</code></div>
130130
<div class="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><a href="#formatOn(java.io.PrintStream)" class="member-name-link">formatOn</a><wbr>(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/PrintStream.html" title="class or interface in java.io" class="external-link">PrintStream</a>&nbsp;stream)</code></div>
@@ -212,7 +212,7 @@ <h3>printPrefix</h3>
212212
<section class="detail" id="endMessage(java.io.PrintStream)">
213213
<h3>endMessage</h3>
214214
<div class="member-signature"><span class="modifiers">public</span>&nbsp;<span class="return-type">void</span>&nbsp;<span class="element-name">endMessage</span><wbr><span class="parameters">(<a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/io/PrintStream.html" title="class or interface in java.io" class="external-link">PrintStream</a>&nbsp;stream)</span></div>
215-
<div class="block">Ends the message, reseting formating. If this message is a fatal error, calling
215+
<div class="block">Ends the message, resetting formatting. If this message is a fatal error, calling
216216
this method will also exit the program with an error code of 1.</div>
217217
</section>
218218
</li>

site/java/project-info.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ <h3><a name="Overview"></a>Overview</h3>
7979
<td align="left">This document lists the dependencies that are defined through dependencyManagement.</td></tr>
8080
<tr class="a">
8181
<td align="left"><a href="distribution-management.html">Distribution Management</a></td>
82-
<td align="left">This document provides informations on the distribution management of this project.</td></tr>
82+
<td align="left">This document provides information on the distribution management of this project.</td></tr>
8383
<tr class="b">
8484
<td align="left"><a href="index.html">About</a></td>
8585
<td align="left">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.</td></tr>

site/python/weftspace/data_node.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
182182
Multiple distinct nodes may have the same hash code, as
183183
(1) the mechanics for hash() are not controlled,
184184
(2) parents are not taken into account in this method, and
185-
(3) nodes which have themself as a child will not have their childen considered.
185+
(3) nodes which have themself as a child will not have their children considered.
186186
&#34;&#34;&#34;
187187
prime: int = 31
188188
hash_code: int = 1

0 commit comments

Comments
 (0)