diff --git a/ahoy.test.yml b/ahoy.test.yml index 9e7990cdbb17be0ea804e4df4e048a8e74395f31..0c879ec419e99cd4dc093abf111bcd7613d9b439 100644 --- a/ahoy.test.yml +++ b/ahoy.test.yml @@ -5,7 +5,14 @@ commands: usage: PHP Copy and Paste Detector phpcs: cmd: | - ahoy d4d exec vendor/bin/phpcs --report-full=/var/www/html/tests/codesniffer_results.txt --report-checkstyle=/var/www/html/tests/checkstyle.xml --report-diff=/var/www/html/tests/codesniffer_fixes.patch --standard=Drupal --file-list=/var/www/html/tests/phpcs.files --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md --ignore=node_modules,*.min.css,*.min.js,$(paste -s -d, .phpcsignore 2>/dev/null) "$@" + ahoy d4d exec vendor/bin/phpcs --report-full=/var/www/html/tests/codesniffer_results.txt --report-checkstyle=/var/www/html/tests/checkstyle.xml --report-diff=/var/www/html/tests/codesniffer_fixes.patch --standard=Drupal --file-list=/var/www/html/tests/phpcs.files --extensions=php,module,inc,install,test,profile,theme,info,txt,md --ignore=node_modules,*.min.css,*.min.js,$(paste -s -d, .phpcsignore 2>/dev/null) "$@" + ahoy d4d exec cat /var/www/html/tests/codesniffer_results.txt + usage: PHP coding standards + phpcsmodule: + cmd: | + module=$1 + shift + ahoy d4d exec vendor/bin/phpcs --report-full=/var/www/html/tests/codesniffer_results.txt --report-checkstyle=/var/www/html/tests/checkstyle.xml --report-diff=/var/www/html/tests/codesniffer_fixes.patch --standard=Drupal --extensions=php,module,inc,install,test,profile,theme,info,txt,md --ignore=node_modules,*.min.css,*.min.js,$(paste -s -d, .phpcsignore 2>/dev/null) web/modules/contrib/$module "$@" ahoy d4d exec cat /var/www/html/tests/codesniffer_results.txt usage: PHP coding standards phpcs-fix: diff --git a/templates/tests/phpstan.neon b/templates/tests/phpstan.neon index d94c0d97c29769cf05b3b8ca3b5a9c142c48af04..6d658c81cd38fa848ec6e28eca7ba47e228823ea 100644 --- a/templates/tests/phpstan.neon +++ b/templates/tests/phpstan.neon @@ -11,5 +11,5 @@ parameters: ignoreErrors: - '#Plugin definitions cannot be altered.#' includes: - - /drupal/vendor/mglaman/phpstan-drupal/extension.neon - - /drupal/vendor/phpstan/phpstan-deprecation-rules/rules.neon + - /var/www/html/vendor/mglaman/phpstan-drupal/extension.neon + - /var/www/html/vendor/phpstan/phpstan-deprecation-rules/rules.neon