View Dockerfile on GitHub.
Tiny Alpine-based multistage-builld dockerized version of phpmd.
The working directory inside the Docker container is /app/
and should be mounted locally to
the root of your project.
$ docker run --rm -v $(pwd):/app paillechat/docker-phpmd:8-2.13 src text cleancode
/app/src/Foo/Bar/OfferSync.php:47 UndefinedVariable Avoid using undefined variables such as '$parameters' which will lead to PHP notices.
/app/src/Foo/Bar/OfferSync.php:104 StaticAccess Avoid using static access to class '\App\Boo\Bar' in method 'updateVariantLogisticClassMetadata'.