Skip to content

Commit

Permalink
Merge branch '1.0.x' into jjroelofs-patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
jjroelofs authored Sep 25, 2024
2 parents 121c6d4 + bbd05bf commit 5d85bb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/prepare-drupal-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

if [ -z "$TARGET_DRUPAL_CORE_VERSION" ]; then
# default to target Drupal 8, you can override this by setting the secrets value on your github repo
TARGET_DRUPAL_CORE_VERSION=8
TARGET_DRUPAL_CORE_VERSION=10
fi

echo "php --version"
Expand All @@ -19,11 +19,13 @@ composer global require phpcompatibility/php-compatibility
export PATH="$PATH:$COMPOSER_HOME/vendor/bin"

composer global require dealerdirect/phpcodesniffer-composer-installer
composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true

phpcs --config-set installed_paths $COMPOSER_HOME/vendor/drupal/coder/coder_sniffer,$COMPOSER_HOME/vendor/phpcompatibility/php-compatibility

composer global show -P
phpcs -i


phpcs --config-set colors 1
# see: https://github.com/squizlabs/PHP_CodeSniffer/issues/262
# phpcs --config-set ignore_warnings_on_exit 1
Expand Down

0 comments on commit 5d85bb0

Please sign in to comment.