Add PHP Mess Detector

This commit is contained in:
Vincent Letourneau
2018-03-29 10:05:40 +02:00
parent ec4a2c48c2
commit bc685cf587
4 changed files with 21 additions and 5 deletions

View File

@@ -237,6 +237,7 @@ When developing, you can use [Makefile](https://en.wikipedia.org/wiki/Make_(soft
| logs | Follow log output |
| mysql-dump | Create backup of whole database |
| mysql-restore | Restore backup from whole database |
| phpmd | Analyse the API with PHP Mess Detector |
| test | Test application with phpunit |
### Examples
@@ -287,6 +288,12 @@ sudo docker-compose exec -T php ./app/vendor/bin/phpunit --colors=always --confi
sudo docker-compose exec -T php ./app/vendor/bin/phpcs -v --standard=PSR2 ./app/src
```
### Analyzing source code with [PHP Mess Detector](https://phpmd.org/)
```sh
sudo docker-compose exec -T php ./app/vendor/bin/phpmd ./app/src text cleancode,codesize,controversial,design,naming,unusedcode
```
### Checking installed PHP extensions
```sh