Skip to content

Commit

Permalink
exclude node_modules/ and assets/ from find command to check php syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jan 6, 2025
1 parent 0884c96 commit 7d996d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"make-pot": "wp i18n make-pot . languages/mailchimp-for-wp.pot --exclude=assets/js",
"test": "phpunit tests/",
"codestyle": "phpcs -n -s",
"check-syntax": "find . -name '*.php' -not -path './vendor/*' -not -path './var/cache/*' -print0 | xargs -0 -n1 php -l"
"check-syntax": "find . -name '*.php' -not -path './vendor/*' -not -path './node_modules/*' -not -path './assets/*' -print0 | xargs -0 -n1 php -l"
},
"config": {
"allow-plugins": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
));
} catch( \MC4WP_API_Exception $e ) {
// an error occured
// you can handle it here by inspecting the expection object and removing the line bwlo
// you can handle it here by inspecting the expection object and removing the line below
throw $e;
}

0 comments on commit 7d996d4

Please sign in to comment.