Skip to content

Commit 668f352

Browse files
committed
Adds spelling mistakes check
1 parent ac217a4 commit 668f352

8 files changed

+44
-7
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ CHANGELOG.md export-ignore
1616
example/ export-ignore
1717
LICENSE.md export-ignore
1818
lpv-logo.png export-ignore
19+
peck.json export-ignore
1920
phpstan.neon.dist export-ignore
2021
phpunit.xml.dist export-ignore
2122
README.md export-ignore

.github/workflows/distribute.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
fail-fast: true
2020
matrix:
2121
php:
22-
- "8.2"
22+
- "8.3"
2323

2424
steps:
2525
- name: Checkout

.github/workflows/lint.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: true
1212
matrix:
1313
php:
14-
- "8.1"
14+
- "8.3"
1515

1616
steps:
1717
- name: Checkout
@@ -30,3 +30,6 @@ jobs:
3030

3131
- name: Check leanness of package
3232
run: composer run-script lpv:validate-gitattributes
33+
34+
- name: Check for spelling mistakes of package
35+
run: sudo apt-get install aspell aspell-en && composer run-script lpv:spell-check

.github/workflows/static-analyse.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: true
1212
matrix:
1313
php:
14-
- "8.1"
14+
- "8.3"
1515

1616
steps:
1717
- name: Checkout

.github/workflows/test-windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
strategy:
1111
matrix:
1212
php:
13-
- "8.1"
13+
- "8.3"
1414

1515
steps:
1616
- name: Checkout

.github/workflows/test.yml

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
strategy:
1111
matrix:
1212
php:
13-
- "8.1"
14-
- "8.2"
1513
- "8.3"
1614
- "8.4"
1715

composer.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,13 @@
4949
"lpv:application-phar-version-guard": "php bin/application-version --verify-tag-match=phar",
5050
"lpv:static-analyse": "phpstan analyse --configuration phpstan.neon.dist",
5151
"lpv:validate-gitattributes": "bin/lean-package-validator validate",
52+
"lpv:spell-check": "./vendor/bin/peck",
5253
"lpv:pre-commit-check": [
5354
"@lpv:test",
5455
"@lpv:cs-lint",
5556
"@lpv:static-analyse",
56-
"@lpv:application-version-guard"
57+
"@lpv:application-version-guard",
58+
"@lpv:spell-check"
5759
]
5860
},
5961
"config": {
@@ -64,6 +66,7 @@
6466
"require-dev": {
6567
"friendsofphp/php-cs-fixer": "^3.0",
6668
"mockery/mockery": "^1.0",
69+
"peckphp/peck": "^0.1.2",
6770
"phlak/semver": "^4.1 || ^6.0",
6871
"php-mock/php-mock-phpunit": "^2.7||^1.1",
6972
"phpstan/phpstan": "^2.0",

peck.json

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"preset": "base",
3+
"ignore": {
4+
"words": [
5+
"php",
6+
"gitattributes",
7+
"analyser",
8+
"analyse",
9+
"windowsish",
10+
"lpv",
11+
"readme",
12+
"pathnames",
13+
"gitignore",
14+
"eol",
15+
"nosort",
16+
"nocheck",
17+
"onlydir",
18+
"noescape",
19+
"errline",
20+
"errfile",
21+
"errno",
22+
"initialise",
23+
"errstr",
24+
"delegator",
25+
"gitignored",
26+
"str",
27+
"postfix",
28+
"autoconfiguration"
29+
],
30+
"paths": []
31+
}
32+
}

0 commit comments

Comments
 (0)