Skip to content

Commit 662d847

Browse files
Add phpcbf and phpcs tools
1 parent 9b3e4aa commit 662d847

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ RUN composer global require \
5151
ergebnis/composer-normalize \
5252
roave/security-advisories:dev-latest
5353

54+
# Install phpcs
55+
RUN sudo wget https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar && \
56+
sudo chmod +x phpcs.phar && \
57+
sudo mv phpcs.phar /usr/local/bin/phpcs
58+
59+
# Install phpcbf
60+
RUN sudo wget https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar && \
61+
sudo chmod +x phpcbf.phar && \
62+
sudo mv phpcbf.phar /usr/local/bin/phpcbf
63+
5464
# Install ddev
5565
RUN brew update && brew install drud/ddev/ddev && mkcert -install
5666

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[![Open in Gitpod](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/theodorosploumis/gitpod-drupal-workspace)
22

33
# Gitpod Drupal workspace
4-
An opinionated Docker image you can use with [Gitpod.io](https://www.gitpod.io/).
4+
An opinionated Docker image you can use with [Gitpod.io](https://www.gitpod.io/).
55
Focused on **Drupal** 8+ development.
66

77
## Docker image
@@ -23,6 +23,7 @@ image: tplcom/gitpod-drupal-workspace
2323
- [drush-launcher](https://github.com/drush-ops/drush-launcher)
2424
- [deployer](https://deployer.org)
2525
- [robo](https://robo.li)
26+
- [phpcbf.phar, phpcs.phar](https://github.com/squizlabs/PHP_CodeSniffer)
2627
- [drupalorg-cli](https://github.com/mglaman/drupalorg-cli)
2728
- [scm_breeze](https://github.com/scmbreeze/scm_breeze)
2829
- [husky](https://github.com/typicode/husky)

0 commit comments

Comments
 (0)