Skip to content
Snippets Groups Projects
Commit 45eacd24 authored by jurgenhaas's avatar jurgenhaas
Browse files

Fix path for PHPStan

Remove css file extension for PHPCS test ahoy command
Add new command phpcsmodule to test ahoy commands
parent ba053b35
No related branches found
No related tags found
1 merge request!5Merging develop into main
Pipeline #733715 passed
......@@ -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:
......
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment