diff --git a/ahoy.test.yml b/ahoy.test.yml index 0c879ec419e99cd4dc093abf111bcd7613d9b439..f0e5db94935b55b15853299b2a7e0f3232354bd4 100644 --- a/ahoy.test.yml +++ b/ahoy.test.yml @@ -5,18 +5,20 @@ 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,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 + ahoy d4d exec mkdir -p /tmp/logs + ahoy d4d exec vendor/bin/phpcs --report-full=/tmp/logs/codesniffer_results.txt --report-checkstyle=/tmp/logs/checkstyle.xml --report-diff=/tmp/logs/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 /tmp/logs/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 + ahoy d4d exec mkdir -p /tmp/logs + ahoy d4d exec vendor/bin/phpcs --report-full=/tmp/logs/codesniffer_results.txt --report-checkstyle=/tmp/logs/checkstyle.xml --report-diff=/tmp/logs/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 /tmp/logs/codesniffer_results.txt usage: PHP coding standards phpcs-fix: - cmd: ahoy d4d exec patch -p0 -ui /var/www/html/tests/codesniffer_fixes.patch + cmd: ahoy d4d exec patch -p0 -ui /tmp/logs/codesniffer_fixes.patch usage: Apply fixes from previous PHP coding standards run phploc: cmd: ahoy d4d exec vendor/bin/phploc "$@" diff --git a/composer.json b/composer.json index a1dd2480d00342d3a75eafe7bd3bc74f55c5837b..3b9984ad0402465f406021bee75f3aaad1c3248c 100644 --- a/composer.json +++ b/composer.json @@ -35,6 +35,12 @@ "source": "https://gitlab.lakedrops.com/composer/plugin/drupal-development-environment/tree/main", "docs": "https://devops-tools.docs.lakedrops.com/composer/plugin/drupal-dev-environment/" }, + "repositories": [ + { + "type": "composer", + "url": "https://packages.drupal.org/8" + } + ], "require": { "php": ">=7.4", "composer-plugin-api": "^1||^2",