Skip to content

Commit

Permalink
Adds spelling mistakes check
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelstolt committed Feb 4, 2025
1 parent ac217a4 commit cfabaf3
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ CHANGELOG.md export-ignore
example/ export-ignore
LICENSE.md export-ignore
lpv-logo.png export-ignore
peck.json export-ignore
phpstan.neon.dist export-ignore
phpunit.xml.dist export-ignore
README.md export-ignore
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ jobs:

- name: Check leanness of package
run: composer run-script lpv:validate-gitattributes

- name: Check for spelling mistakes of package
run: sudo apt-get install aspell aspell-en && composer run-script lpv:spell-check
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,13 @@
"lpv:application-phar-version-guard": "php bin/application-version --verify-tag-match=phar",
"lpv:static-analyse": "phpstan analyse --configuration phpstan.neon.dist",
"lpv:validate-gitattributes": "bin/lean-package-validator validate",
"lpv:spell-check": "./vendor/bin/peck",
"lpv:pre-commit-check": [
"@lpv:test",
"@lpv:cs-lint",
"@lpv:static-analyse",
"@lpv:application-version-guard"
"@lpv:application-version-guard",
"@lpv:spell-check"
]
},
"config": {
Expand All @@ -64,6 +66,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"mockery/mockery": "^1.0",
"peckphp/peck": "^0.1.2",
"phlak/semver": "^4.1 || ^6.0",
"php-mock/php-mock-phpunit": "^2.7||^1.1",
"phpstan/phpstan": "^2.0",
Expand Down
32 changes: 32 additions & 0 deletions peck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"preset": "base",
"ignore": {
"words": [
"php",
"gitattributes",
"analyser",
"analyse",
"windowsish",
"lpv",
"readme",
"pathnames",
"gitignore",
"eol",
"nosort",
"nocheck",
"onlydir",
"noescape",
"errline",
"errfile",
"errno",
"initialise",
"errstr",
"delegator",
"gitignored",
"str",
"postfix",
"autoconfiguration"
],
"paths": []
}
}

0 comments on commit cfabaf3

Please sign in to comment.