forked from mikeshiyan/linux-drupal-dev-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path400-phpcs
More file actions
executable file
·17 lines (13 loc) · 836 Bytes
/
Copy path400-phpcs
File metadata and controls
executable file
·17 lines (13 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
source "$(dirname "$0")/000-common"
source "$(dirname "$0")/000-config"
# For future updates see https://www.drupal.org/node/1419988
cgr -o --prefer-source drupal/coder:dev-8.x-2.x
sudo git clone --branch master http://git.drupal.org/sandbox/coltrane/1921926.git /usr/local/src/drupalsecure
phpcs --config-set installed_paths $CGR_BASE_DIR/drupal/coder/vendor/drupal/coder/coder_sniffer,/usr/local/src/drupalsecure
if ! grep -q "drupalcs" ~/.bashrc
then
echo "" >> ~/.bashrc
echo "alias drupalcs='phpcs --standard=Drupal,DrupalPractice,DrupalSecure --extensions=php,module,inc,install,test,profile,theme,js,css,md,info,txt,yml'" >> ~/.bashrc
echo "alias drupalcbf='phpcbf --standard=Drupal,DrupalPractice,DrupalSecure --extensions=php,module,inc,install,test,profile,theme,js,css,md,info,txt,yml'" >> ~/.bashrc
fi