Skip to content
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ RUN apk --update add \
php7-pcntl \
php7-phar \
php7-sockets \
curl && \
curl \
git && \
rm /var/cache/apk/* && \
ln -s /usr/bin/php7 /usr/bin/php

Expand All @@ -29,7 +30,7 @@ RUN curl -sS https://getcomposer.org/installer | php && \

RUN /usr/src/app/vendor/bin/phpcs --config-set \
installed_paths \
"/usr/src/app/vendor/drupal/coder/coder_sniffer,/usr/src/app/vendor/wp-coding-standards/wpcs,/usr/src/app/vendor/yiisoft/yii2-coding-standards"
"/usr/src/app/vendor/drupal/coder/coder_sniffer,/usr/src/app/vendor/wp-coding-standards/wpcs,/usr/src/app/vendor/yiisoft/yii2-coding-standards,/usr/src/app/vendor/magento/marketplace-eqp"

VOLUME /code

Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@ a relative path to a custom phpcs ruleset.xml file.

### Supported Coding Standards

In addition to standards provided by [default](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage#printing-a-list-of-installed-coding-standards) with PHP_CodeSniffer, the [Drupal](https://github.com/klausi/coder), [WordPress](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards), and [Yii2](https://github.com/yiisoft/yii2-coding-standards) coding standards are supported. Here is the full list:
In addition to standards provided by [default](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Usage#printing-a-list-of-installed-coding-standards) with PHP_CodeSniffer, the [Drupal](https://github.com/klausi/coder), [WordPress](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards), [Yii2](https://github.com/yiisoft/yii2-coding-standards), and [Magento Extension](https://github.com/magento/marketplace-eqp) coding standards are supported. Here is the full list:

* Drupal
* DrupalPractice
* MEQP1
* MEQP2
* MySource
* PEAR
* PHPCS
Expand Down
19 changes: 18 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
{
"repositories": {
"magento": {
"type": "package",
"package": {
"name": "magento/marketplace-eqp",
"version": "1.0.4",
"description": "A set of PHP_CodeSniffer rules and sniffs.",
"license": "MIT",
"source": {
"url": "https://github.com/magento/marketplace-eqp.git",
"type": "git",
"reference": "1.0.4"
}
}
}
},
"require": {
"squizlabs/php_codesniffer": "^2.6",
"barracudanetworks/forkdaemon-php": "^1.0",
"danielstjules/stringy": "^2.3",
"drupal/coder": "^8.2",
"wp-coding-standards/wpcs": "^0.10.0",
"yiisoft/yii2-coding-standards": "^2.0"
"yiisoft/yii2-coding-standards": "^2.0",
"magento/marketplace-eqp": "^1.0"
}
}
33 changes: 23 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.