This is a docker container for the phan static analyser.
Just start the container, mount your code somehow, then run phan
however you want inside it. In contrast to all
other containers for this tool this one doesn't try to insult your intelligence by limiting how you use the tool.
These examples assume you have a .phan/config.php
file in your project's root directory.
phan:
image: nordsoftware/phan
script:
- phan
node {
stage('Run static analysis') {
docker.image('nordsoftware/phan').inside {
sh 'phan'
}
}
}
Each version is tagged with the version of phan it ships.
Credits to mre/docker-php-phan for the installation instructions.