diff --git a/bin/run-tests.sh b/bin/run-tests.sh new file mode 100755 index 0000000..d2ffa98 --- /dev/null +++ b/bin/run-tests.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set -e + +symfony php vendor/bin/phpcs -n \ + --standard="Drupal,DrupalPractice" \ + --extensions="php,module,inc,install,test,profile,theme" \ + --ignore=*/tests/* \ + --exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.FunctionComment" \ + web/modules/custom + +# symfony php vendor/bin/phpcs -ns \ +# --standard="Drupal,DrupalPractice" \ +# --extensions="php,module,inc,install,test,profile,theme" \ +# --exclude="Drupal.Commenting.ClassComment,Drupal.Commenting.DocComment,Drupal.Commenting.FunctionComment,Drupal.NamingConventions.ValidFunctionName" \ +# web/modules/custom/**/tests + +vendor/bin/phpstan analyze