Skip to content

Commit d893075

Browse files
committed
Fix code sniffer violations
1 parent 8a2c5cc commit d893075

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/run-sut-tests.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ function dcg_drush {
4646
}
4747

4848
function dcg_phpcs {
49-
$DRUPAL_DIR/vendor/bin/phpcs -p --standard=Drupal,DrupalPractice "$@"
49+
$DRUPAL_DIR/vendor/bin/phpcs \
50+
--exclude='SlevomatCodingStandard.ControlStructures.RequireNullCoalesceOperator' \
51+
-p --standard=Drupal,DrupalPractice "$@"
5052
}
5153

5254
function dcg_phpunit {
@@ -79,7 +81,6 @@ else
7981
git clone --depth 1 --branch $DRUPAL_VERSION https://git.drupalcode.org/project/drupal.git $DRUPAL_DIR
8082
composer -d$DRUPAL_DIR install
8183
composer -d$DRUPAL_DIR require drush/drush chi-teck/web-server
82-
$DRUPAL_DIR/vendor/bin/phpcs --config-set installed_paths $DRUPAL_DIR/vendor/drupal/coder/coder_sniffer
8384
cp -R $SELF_PATH/example $DRUPAL_DIR/modules
8485
mkdir -m 777 $DRUPAL_DIR/sites/default/files
8586
dcg_drush site:install minimal --db-url=sqlite://sites/default/files/.db.sqlite --sites-subdir=default

0 commit comments

Comments
 (0)