Skip to content

Commit cfabaf3

Browse files
committed
Adds spelling mistakes check
1 parent ac217a4 commit cfabaf3

File tree

4 files changed

+40
-1
lines changed

4 files changed

+40
-1
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
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/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

composer.json

Lines changed: 4 additions & 1 deletion
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

Lines changed: 32 additions & 0 deletions
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)