Skip to content

Commit ac3f887

Browse files
committed
build: add new composer script to generate the sniffs markdown docs.
1 parent 7e99618 commit ac3f887

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

composer.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,10 @@
5454
"@test"
5555
],
5656
"list-tokens": "@php ./vendor/bin/phpcs --standard=PHPCSDebug ./test_utils/TestFile.php",
57-
"check-completeness": "@php ./vendor/bin/phpcs-check-feature-completeness ./yCodeTech"
57+
"check-completeness": "@php ./vendor/bin/phpcs-check-feature-completeness ./yCodeTech",
58+
"generate-docs": [
59+
"@php ./vendor/bin/phpcs --sniffs=yCodeTech.Commenting.DocblockFormat,yCodeTech.Commenting.FunctionComment,yCodeTech.Types.DisallowTypeLongNames --generator=markdown > docs.md"
60+
]
5861
},
5962
"scripts-descriptions": {
6063
"lint": "Run PHP Parallel Lint to check for syntax errors in PHP files.",

0 commit comments

Comments
 (0)