Skip to content

Commit

Permalink
Added PHPMD
Browse files Browse the repository at this point in the history
  • Loading branch information
a-menshchikov committed Jul 22, 2021
1 parent ee4787a commit cfdd744
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ RUN set -ex; \
\
composer install --working-dir=/tools/php-cs-fixer --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/phpcs --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/phpmd --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/phpmnd --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/phpstan --prefer-dist --no-scripts --no-progress; \
composer install --working-dir=/tools/psalm --prefer-dist --no-scripts --no-progress

ENV PATH /composer/vendor/bin:/tools/php-cs-fixer/vendor/bin:/tools/phpcs/vendor/bin:/tools/phpmnd/vendor/bin:/tools/psalm/vendor/bin:/tools/phpstan/vendor/bin:$PATH
ENV PATH /composer/vendor/bin:/tools/php-cs-fixer/vendor/bin:/tools/phpcs/vendor/bin:/tools/phpmd/vendor/bin:/tools/phpmnd/vendor/bin:/tools/psalm/vendor/bin:/tools/phpstan/vendor/bin:$PATH

ENTRYPOINT [ "docker-entrypoint" ]
CMD [ "grumphp", "run" ]
6 changes: 6 additions & 0 deletions tools/phpmd/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"require-dev": {
"phpmd/phpmd": "^2.10.2",
"roave/security-advisories": "dev-latest"
}
}

0 comments on commit cfdd744

Please sign in to comment.