Skip to content

Commit 59b343e

Browse files
authored
[5.4] GitHub action typos (joomla#45705)
Added GitHub action 'typos' and configures exceptions (exclusions) from the check
1 parent 08da081 commit 59b343e

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,14 @@ jobs:
264264
POSTGRES_USER: root
265265
POSTGRES_PASSWORD: joomla_ut
266266
POSTGRES_DB: test_joomla
267+
268+
typos:
269+
name: Check for typos
270+
runs-on: ubuntu-latest
271+
steps:
272+
- name: Checkout Actions Repository
273+
uses: actions/checkout@v4
274+
- name: Spell Check Repository
275+
uses: crate-ci/[email protected]
276+
with:
277+
config: .github/workflows/typos.toml

.github/workflows/typos.toml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Custom configuration file for the typos action
2+
# Excludes some folders with non-english language content
3+
# Excludes certain words as false-positives - mainly in js or
4+
# that can't be changed for b/c
5+
6+
[files]
7+
extend-exclude = [
8+
"/templates/system/*.html",
9+
"/administrator/components/com_admin/sql/*",
10+
"/build/media_source/vendor/tinymce/langs/*",
11+
"/installation/language/*",
12+
"includes/*.html",
13+
"/plugins/sampledata/testing/*",
14+
]
15+
16+
[default.extend-words]
17+
cachable="cachable"
18+
linke="linke"
19+
exept="exept"
20+
hilight="hilight"
21+
Querys="Querys"
22+
childs="childs"
23+
assigments="assigments"
24+
ue="ue"
25+
hel="hel"
26+
fof="fof"
27+
discernable="discernable"
28+
requestor="requestor"
29+
credate="credate"
30+
rgba="rgba"
31+
occurence="occurence"
32+
shepard="shepard"
33+
chck="chck"
34+
datas="datas"
35+
deactive="deactive"
36+
ba="ba"
37+
crypted="crypted"
38+
cose="cose"
39+
accordian="accordian"
40+
wheres="wheres"
41+
supercedes="supercedes"
42+
vertexes="vertexes"
43+
Formater="Formater"
44+
ot="ot"
45+
cript="cript"
46+
mis="mis"
47+
cll="cll"
48+
identicals="identicals"
49+
# deprecated strings
50+
configurated="configurated"

0 commit comments

Comments
 (0)