diff options
author | Alex Pott <alex.a.pott@googlemail.com> | 2022-05-19 10:02:00 +0100 |
---|---|---|
committer | Alex Pott <alex.a.pott@googlemail.com> | 2022-05-19 10:02:00 +0100 |
commit | bb0fa10798b6a0e33bdef748bccb9fbb0ce52f44 (patch) | |
tree | 23b3f8ebe30dfc08e4be9065e51a671b8ad7cc1c /core/scripts/dev/commit-code-check.sh | |
parent | 4a59d52232ae4f48bae9a2e2b4d21771a855d5bb (diff) | |
download | drupal-bb0fa10798b6a0e33bdef748bccb9fbb0ce52f44.tar.gz drupal-bb0fa10798b6a0e33bdef748bccb9fbb0ce52f44.zip |
Issue #3262874 by Spokje, longwave, ankithashetty, catch, andypost: Update Coder to 8.3.15
Diffstat (limited to 'core/scripts/dev/commit-code-check.sh')
-rwxr-xr-x | core/scripts/dev/commit-code-check.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/scripts/dev/commit-code-check.sh b/core/scripts/dev/commit-code-check.sh index 3563ed7c59fc..5b44e04d53c8 100755 --- a/core/scripts/dev/commit-code-check.sh +++ b/core/scripts/dev/commit-code-check.sh @@ -243,7 +243,7 @@ printf "\n" # When the file core/phpcs.xml.dist has been changed, then PHPCS must check all files. if [[ $PHPCS_XML_DIST_FILE_CHANGED == "1" ]]; then # Test all files with phpcs rules. - vendor/bin/phpcs -ps --runtime-set installed_paths "$TOP_LEVEL/vendor/drupal/coder/coder_sniffer" --standard="$TOP_LEVEL/core/phpcs.xml.dist" + vendor/bin/phpcs -ps --standard="$TOP_LEVEL/core/phpcs.xml.dist" PHPCS=$? if [ "$PHPCS" -ne "0" ]; then # If there are failures set the status to a number other than 0. @@ -354,7 +354,7 @@ for FILE in $FILES; do ############################################################################ if [[ -f "$TOP_LEVEL/$FILE" ]] && [[ $FILE =~ \.(inc|install|module|php|profile|test|theme|yml)$ ]] && [[ $PHPCS_XML_DIST_FILE_CHANGED == "0" ]]; then # Test files with phpcs rules. - vendor/bin/phpcs "$TOP_LEVEL/$FILE" --runtime-set installed_paths "$TOP_LEVEL/vendor/drupal/coder/coder_sniffer" --standard="$TOP_LEVEL/core/phpcs.xml.dist" + vendor/bin/phpcs "$TOP_LEVEL/$FILE" --standard="$TOP_LEVEL/core/phpcs.xml.dist" PHPCS=$? if [ "$PHPCS" -ne "0" ]; then # If there are failures set the status to a number other than 0. |