Skip to content

Commit 4c3ca25

Browse files
committed
ADD TO: basic QA / add spellcheck / WIP
1 parent 30d6063 commit 4c3ca25

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

.cspell.yml

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

.github/workflows/basic-qa.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,18 @@ jobs:
2323
uses: PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main
2424
with:
2525
strict: true
26+
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"

.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)