File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,9 @@ function dcg_drush {
4646}
4747
4848function 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
5254function dcg_phpunit {
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
You can’t perform that action at this time.
0 commit comments