Skip to content

Commit 18dcc67

Browse files
committed
ADD TO: basic QA / add spellcheck / WIP
1 parent f708874 commit 18dcc67

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

.cspell.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
$schema: https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json
2+
version: '0.2'
3+
language: en-GB
4+
5+
dictionaryDefinitions:
6+
- name: project-words
7+
path: './.phpcs.dict'
8+
addWords: true
9+
10+
dictionaries:
11+
- project-words
12+
13+
ignorePaths:
14+
- 'node_modules/**'
15+
- '/.phpcs.dict'
16+
17+
patterns:
18+
- name: markdown_code_block
19+
pattern: |
20+
/
21+
^(\s*`{3,})[a-z]+ # match the ``` with a language modifier
22+
[\s\S]*? # the block of code
23+
^\1 # end of the block
24+
/gmx
25+
- name: markdown_inline_code
26+
pattern: /(\s*`)\S{3,}`/gmx
27+
28+
languageSettings:
29+
- languageId: markdown
30+
ignoreRegExpList:
31+
- markdown_code_block
32+
- markdown_inline_code

.github/workflows/basic-qa.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,21 @@ jobs:
2424
with:
2525
strict: true
2626

27+
spellcheck:
28+
name: Spellcheck
29+
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- name: Checkout code
34+
uses: actions/checkout@v4
35+
36+
- name: Install markdown-spellcheck
37+
run: npm install -g cspell
38+
39+
- name: Spellcheck
40+
run: cspell --show-suggestions --show-context "**/*.md"
41+
2742
linkcheck:
2843
name: "Check links"
2944
runs-on: ubuntu-latest

.phpcs.dict

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
PHP_CodeSniffer
2+
phpcs
3+
phpcbf
4+
SquizLabs
5+
Squiz
6+
Joomla
7+
csslint
8+
gjslint
9+
gitblame
10+
PHPUnit

0 commit comments

Comments
 (0)