Skip to content

Commit bdfb3ae

Browse files
authored
Merge pull request #3 from qstraza/patch-1
Added support for DrupalSecure
2 parents 64411c1 + b337507 commit bdfb3ae

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,17 @@ RUN apk add --no-cache \
1616
php7-zlib \
1717
curl \
1818
patch \
19+
git \
1920
&& ln -s /usr/bin/php7 /usr/bin/php \
2021
&& curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/bin \
2122
&& composer global require drupal/coder \
2223
&& ln -s /root/.composer/vendor/squizlabs/php_codesniffer/scripts/phpcs /usr/bin/phpcs \
2324
&& ln -s /root/.composer/vendor/squizlabs/php_codesniffer/scripts/phpcbf /usr/bin/phpcbf \
2425
&& ln -s /root/.composer/vendor/drupal/coder/coder_sniffer/Drupal /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/Drupal \
25-
&& ln -s /root/.composer/vendor/drupal/coder/coder_sniffer/DrupalPractice /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/DrupalPractice
26+
&& ln -s /root/.composer/vendor/drupal/coder/coder_sniffer/DrupalPractice /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/DrupalPractice \
27+
&& git clone --branch master https://git.drupal.org/sandbox/coltrane/1921926.git /root/drupalsecure_code_sniffs \
28+
&& cd /root/drupalsecure_code_sniffs && curl https://www.drupal.org/files/issues/parenthesis_closer_notice-2320623-2.patch | git apply && cd \
29+
&& ln -s /root/drupalsecure_code_sniffs/DrupalSecure /root/.composer/vendor/squizlabs/php_codesniffer/CodeSniffer/Standards/DrupalSecure
2630

2731
VOLUME /work
2832
WORKDIR /work

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ To call phpcbf you need to override default command
1717
docker run --rm -v $(pwd):/work skilldlabs/docker-phpcs-drupal phpcbf --standard=Drupal .
1818
```
1919

20+
To call DrupalSecure check (https://www.drupal.org/sandbox/coltrane/1921926)
21+
```
22+
docker run --rm -v $(pwd):/work skilldlabs/docker-phpcs-drupal phpcs --standard=DrupalSecure .
23+
```
24+
2025
## Shortening of container name
2126

2227
```

0 commit comments

Comments
 (0)