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

#15 Change PHPCS standard from...

#15 Change PHPCS standard from DrupalPractice to Drupal
parent d11a05cf
No related branches found
No related tags found
1 merge request!9Merging develop into main
Pipeline #944222 passed
......@@ -6,7 +6,7 @@ commands:
phpcs:
cmd: |
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=DrupalPractice --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 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:
......@@ -14,7 +14,7 @@ commands:
module=$1
shift
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=DrupalPractice --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 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:
......
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