Skip to content

Commit a82b7b8

Browse files
ci: simplify syntax check
1 parent 6cf8e0a commit a82b7b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@static-analysis",
3838
"@test"
3939
],
40-
"check-syntax": "find . -name '*.php' -not -path './vendor/*' -not -path './node_modules/*' -print0 | xargs -0 -n1 php -l",
40+
"check-syntax": "find . -path ./vendor -prune -o -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php --define error_reporting=-1 -l -n | (! grep -v \"No syntax errors detected\" )",
4141
"check-codestyle": "vendor/bin/phpcs -sn",
4242
"check-plugin": "wp plugin check boxzilla --mode=update --ignore-warnings --ignore-codes=hidden_files,application_detected,plugin_updater_detected",
4343
"static-analysis": "vendor/bin/phpstan analyse",

0 commit comments

Comments
 (0)